
.site-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.site-chat__panel[hidden] {
  display: none;
}

.site-chat__panel {
  position: relative;
  width: min(24rem, calc(100vw - 2.5rem));
  height: min(34rem, calc(100vh - 3rem));
  background: #f4f1eb;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(32, 85, 48, 0.25);
}

.site-chat__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.site-chat__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #205530;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.site-chat__button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border: 2px solid var(--base-color-brand--green, #205530);
  border-radius: 10rem;
  background: var(--base-color-brand--green, #205530);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0.75rem 1.75rem rgba(32, 85, 48, 0.25);
}

.site-chat__button:hover {
  background: var(--base-color-brand--green-light, #8eca23);
  border-color: var(--base-color-brand--green-light, #8eca23);
  color: var(--base-color-brand--green, #205530);
}

.site-chat__button[hidden] {
  display: none;
}

@media screen and (max-width: 640px) {
  .site-chat {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }

  .site-chat__panel {
    width: 100%;
    height: min(80vh, 34rem);
  }

  .site-chat__button {
    margin-left: auto;
  }
}
