.chat-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
}
.chat-invite h3 {
  font-size: 22px;
  letter-spacing: -0.04em;
}
.faq-list .chat-invite p {
  margin-top: 4px;
  padding: 0;
  color: var(--muted);
}
#support-chat {
  position: fixed;
  inset: auto max(16px, 3vw) 24px auto;
  margin: 0;
  width: min(410px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ground);
  color: var(--ink);
  box-shadow: 0 12px 48px #0c213533;
}
#support-chat::backdrop {
  background: #0c213548;
}
.chat-panel {
  height: min(540px, calc(100dvh - 34px));
  display: flex;
  flex-direction: column;
}
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  color: #eff6ff;
  background: var(--stage);
}
.chat-header span {
  font-size: 12px;
  font-weight: 750;
}
#chat-title {
  font:
    600 22px/1.25 Manrope,
    sans-serif;
  letter-spacing: -0.045em;
}
#close-chat {
  width: 44px;
  height: 44px;
  border: 1px solid #b6cce180;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 26px;
  line-height: 1;
}
.chat-scroll {
  flex: 1;
  min-height: 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
}
.chat-empty,
#chat-status {
  font-size: 13px;
  color: var(--muted);
}
#chat-log {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
}
#chat-log li {
  justify-self: start;
  max-width: 90%;
  padding: 9px 13px;
  border-radius: 12px;
  color: var(--ink);
  background: light-dark(#e8edee, #283743);
}
#chat-log .own-message {
  justify-self: end;
  background: light-dark(#d8e7f4, #293e58);
}
#chat-log small {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 700;
}
#chat-log p {
  font-size: 15px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
#chat-form {
  flex: none;
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding: 12px 18px 16px;
}
#chat-form label[for] {
  font-size: 13px;
  font-weight: 700;
}
#chat-text {
  width: 100%;
  min-height: 50px;
  max-height: 18dvh;
  resize: vertical;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--ground);
  color: var(--ink);
}
#chat-send {
  justify-self: end;
  min-height: 44px;
  padding-block: 8px;
}
#chat-status:empty {
  display: none;
}
@media (max-width: 480px) {
  #support-chat {
    inset: auto 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    border-radius: 18px 18px 0 0;
  }
  .chat-panel {
    height: min(600px, 92dvh);
  }
  #chat-form {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}
@media (max-height: 430px) {
  .chat-panel {
    height: 95dvh;
  }
  .chat-header,
  #chat-form {
    padding-block: 6px;
  }
}
