/* SST contact widget: isolated from page sections and their scroll animation.
   Trimmed to launcher + welcome panel only ("A little help?..." -> WhatsApp);
   the question/conversation/footer views from the mock are intentionally not
   ported here - see js/redesign/chat.js. */
.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 svg { width: 24px; height: 24px; flex: 0 0 auto; }
.sst-chat button { font: inherit; cursor: pointer; }
.sst-chat button, .sst-chat a { -webkit-tap-highlight-color: transparent; }
.sst-chat a { text-decoration: none; }
.sst-chat :is(button, a):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-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; }
@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; }
}
