/* SST contact widget: isolated from page sections and their scroll animation. */
.sst-chat {
  --chat-blue: #1261df;
  --chat-ink: #112e63;
  --chat-muted: #526581;
  position: relative;
  z-index: 1200;
  font: 400 14px/1.5 Inter, Arial, sans-serif;
  color: var(--chat-ink);
}
.sst-chat *, .sst-chat *::before, .sst-chat *::after { box-sizing: border-box; }
.sst-chat [hidden] { display: none !important; }
.sst-chat svg { width: 24px; height: 24px; flex: 0 0 auto; }
.sst-chat button, .sst-chat textarea { font: inherit; }
.sst-chat button, .sst-chat a { -webkit-tap-highlight-color: transparent; }
.sst-chat button { cursor: pointer; }
.sst-chat a { color: inherit; text-decoration: none; }
.sst-chat :is(button, a, textarea):focus-visible { outline: 3px solid #ff823d; outline-offset: 4px; }
.sst-chat-launcher {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  min-width: 114px;
  padding: 0 23px 0 18px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  background: var(--chat-blue);
  color: #fff;
  box-shadow: 0 5px 18px rgb(17 46 99 / 18%);
  font-weight: 650 !important;
  font-size: 16px !important;
  transition: background 160ms ease, transform 160ms ease;
}
.sst-chat-launcher:hover { background: #084fbe; transform: translateY(-2px); }
.sst-chat-launcher:active { transform: scale(.97); }
.sst-chat-launcher .sst-chat-bubble { fill: #fff; stroke: var(--chat-blue); width: 27px; height: 27px; }
.sst-chat-panel {
  position: fixed;
  inset: auto max(24px, env(safe-area-inset-right)) calc(max(24px, env(safe-area-inset-bottom)) + 68px) auto;
  width: 378px;
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 116px);
  margin: 0;
  padding: 0;
  border: 1px solid #dce6f2;
  border-radius: 24px;
  background: #fff;
  color: var(--chat-ink);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 20px 70px rgb(17 46 99 / 18%), 0 3px 12px rgb(17 46 99 / 6%);
}
.sst-chat-panel[open] { animation: sst-chat-open 220ms cubic-bezier(.2,.75,.3,1) both; }
.sst-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px 0 24px; }
.sst-chat-header img { display: block; width: 114px; height: auto; }
.sst-chat-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f1f6fc; color: #526581; }
.sst-chat-close svg { width: 19px; height: 19px; }
.sst-chat-close:hover { background: #e4efff; color: var(--chat-ink); }
.sst-chat-content { padding: 23px 24px 20px; }
.sst-chat-greeting { position: relative; margin-bottom: 23px; }
.sst-chat-greeting h2 { position: relative; z-index: 1; margin: 0; font: 750 30px/1.16 Inter, Arial, sans-serif; letter-spacing: -.9px; color: var(--chat-ink); text-wrap: initial; }
.sst-chat-greeting p { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--chat-muted); }
.sst-chat-greeting-icon { position: absolute; top: 12px; right: 5px; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 22px 22px 6px 22px; background: #eaf3ff; transform: rotate(8deg); color: var(--chat-blue); }
.sst-chat-greeting-icon svg { width: 36px; height: 36px; transform: rotate(-8deg); }
.sst-chat-welcome { margin-top: 14px; margin-bottom: 32px; }
.sst-chat-back { display: inline-flex; align-items: center; min-height: 36px; margin: -6px 0 14px; padding: 0; border: 0; background: transparent; color: var(--chat-muted); font-size: 12px !important; text-decoration: underline; text-underline-offset: 4px; }
.sst-chat-back:hover { color: var(--chat-blue); }
.sst-chat h2[tabindex="-1"]:focus { outline: none; }
.sst-chat-form label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 600; }
.sst-chat-form textarea { display: block; width: 100%; min-height: 77px; max-height: 180px; padding: 12px 13px; border: 1px solid #d4dfed; border-radius: 12px; resize: vertical; color: var(--chat-ink); background: #fafcff; font-size: 13px; line-height: 1.55; }
.sst-chat-form textarea::placeholder { color: #687b96; opacity: 1; }
.sst-chat-question-form textarea { min-height: 120px; }
.sst-chat-form textarea[aria-invalid="true"] { border-color: #bd3545; }
.sst-chat-error { margin: 7px 0 0; color: #b0293a; font-size: 12px; }
.sst-chat-send { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 46px; margin-top: 10px; padding: 11px 14px; border: 0; border-radius: 12px; color: #fff; background: var(--chat-blue); font-weight: 600 !important; }
.sst-chat-send:hover { background: #084fbe; }
.sst-chat-conversation-title { margin: 0; font: 700 23px/1.25 Inter, Arial, sans-serif; letter-spacing: -.5px; color: var(--chat-ink); }
.sst-chat-conversation-note { margin: 10px 0 0; color: var(--chat-muted); font-size: 13px; line-height: 1.6; }
.sst-chat-messages { display: flex; flex-direction: column; gap: 14px; min-height: 120px; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; margin: 24px -4px 22px; padding: 2px 4px 10px; }
.sst-chat-message { max-width: 90%; align-self: flex-end; }
.sst-chat-message p { margin: 0; padding: 12px 15px; border-radius: 15px 15px 4px 15px; color: #fff; background: var(--chat-blue); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.sst-chat-message span { display: block; margin: 5px 2px 0; color: var(--chat-muted); font-size: 11px; text-align: right; }
.sst-chat-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; padding: 12px 20px; border-top: 1px solid #e4ecf5; background: #f6f9fd; color: var(--chat-muted); font-size: 12px; }
.sst-chat-footer p { margin: 0; text-align: center; font-size: 11px; line-height: 1.6; }
@keyframes sst-chat-open { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .sst-chat-launcher { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); height: 50px; min-width: 105px; }
  .sst-chat-panel { right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 62px); max-height: calc(100dvh - 94px); border-radius: 21px; }
  .sst-chat-content { padding: 18px 20px; }
  .sst-chat-header { padding-left: 20px; }
  .sst-chat-greeting h2 { font-size: 28px; }
  .sst-chat-greeting-icon { right: 0; width: 58px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .sst-chat-panel[open] { animation: none; }
  .sst-chat-launcher { transition: none; }
}
