/* Chat assistant window (chat.js). Colours and fonts come from the site's own variables. */
.gsc-open {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.1rem;
  font: 600 0.95rem/1 var(--sc-font-text);
  color: var(--sc-accent-ink, #fff); background: var(--sc-ink);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.18);
}
.gsc-open.is-open { display: none; }
.gsc-open:focus-visible, .gsc__close:focus-visible, .gsc__send:focus-visible, .gsc__wa:focus-visible {
  outline: 2px solid var(--sc-accent); outline-offset: 3px;
}

.gsc {
  position: fixed; right: 16px; bottom: 16px; z-index: 95;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 32px));
  display: flex; flex-direction: column;
  background: var(--sc-canvas); color: var(--sc-ink);
  border: 1px solid var(--sc-hairline); border-radius: 14px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.22);
  overflow: hidden;
}
.gsc[hidden] { display: none; }
.gsc__head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.75rem 0.9rem; background: var(--sc-ink); color: #fff;
  font: 600 0.95rem/1.2 var(--sc-font-text);
}
.gsc__close {
  width: 36px; height: 36px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: #fff; font: 400 1.6rem/1 var(--sc-font-text);
}
.gsc__log { flex: 1 1 auto; overflow-y: auto; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; }
.gsc__msg {
  margin: 0; padding: 0.6rem 0.8rem; max-width: 88%;
  font-size: 0.93rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere;
  border-radius: 12px;
}
.gsc__msg--bot { align-self: flex-start; background: var(--sc-surface); }
.gsc__msg--user { align-self: flex-end; background: var(--sc-ink); color: #fff; }
.gsc__msg--wait { opacity: 0.6; font-style: italic; }
.gsc__form { display: flex; gap: 0.5rem; padding: 0.6rem 0.9rem; border-top: 1px solid var(--sc-hairline); }
.gsc__input {
  flex: 1 1 auto; resize: none; min-height: 44px;
  padding: 0.55rem 0.7rem; font: 400 16px/1.35 var(--sc-font-text);   /* 16px: phones do not zoom in */
  color: var(--sc-ink); background: #fff;
  border: 1px solid var(--sc-hairline-strong); border-radius: 10px;
}
.gsc__send {
  flex: 0 0 auto; padding: 0 0.9rem; min-height: 44px; cursor: pointer;
  font: 600 0.9rem/1 var(--sc-font-text); color: #fff; background: var(--sc-ink);
  border: 0; border-radius: 10px;
}
.gsc__send:disabled { opacity: 0.5; cursor: default; }
.gsc__foot { padding: 0 0.9rem 0.75rem; }
.gsc__wa {
  display: flex; align-items: center; justify-content: center; min-height: 40px;
  font: 600 0.9rem/1 var(--sc-font-text); color: #fff !important; text-decoration: none;
  background: #1f8f4e; border-radius: 10px;
}
.gsc__note { margin: 0.45rem 0 0; font-size: 0.78rem; color: var(--sc-ink-soft); text-align: center; }
@media (max-width: 480px) {
  .gsc { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .gsc-open { right: 12px; bottom: 12px; }
}
