/* Support chat: fixed to the right, clear of the top navigation. The shell does not catch clicks. */
.support-chat{
  position:fixed;
  right:max(16px, env(safe-area-inset-right, 0px));
  bottom:max(16px, env(safe-area-inset-bottom, 0px));
  z-index:30;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  width:max-content;
  max-width:calc(100vw - 32px);
  pointer-events:none;
}
body:has(.support-chat){padding-bottom:calc(88px + env(safe-area-inset-bottom, 0px))}
.support-chat-details{display:flex;flex-direction:column;align-items:flex-end;gap:10px;width:max-content;max-width:100%;pointer-events:none}
.support-chat-launcher,.support-chat-panel{pointer-events:auto}
.support-chat-launcher{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-width:56px;min-height:56px;padding:0 18px;border-radius:999px;
  background:#0f5c6e;color:#fff;font-weight:700;font-size:15px;line-height:1;letter-spacing:0;
  border:2px solid #ffd166;box-shadow:0 8px 24px #0a334033;cursor:pointer;list-style:none;
}
.support-chat-launcher::-webkit-details-marker{display:none}
.support-chat-launcher:focus-visible{outline:3px solid #ffd166;outline-offset:3px}
.support-chat-details:not([open]) .support-chat-panel{display:none}
.support-chat-panel{
  order:-1;display:flex;flex-direction:column;width:min(380px, calc(100vw - 32px));
  max-height:min(520px, calc(100dvh - 180px));background:#fff;color:#15343e;
  border:1px solid #0f5c6e;border-radius:16px;box-shadow:0 16px 40px #0a334029;overflow:hidden;
}
.support-chat-head{display:flex;align-items:flex-start;gap:12px;padding:14px 14px 12px;background:#0f5c6e;color:#fff;border-top:4px solid #ffd166}
.support-chat .support-chat-title{margin:0;color:#fff;font-size:18px;font-weight:750;letter-spacing:-.03em;line-height:1.2}
.support-chat .support-chat-disclosure{margin:2px 0 0;color:#e7f2f5;font-size:13px;line-height:1.4}
.support-chat-head-copy{flex:1;min-width:0}
.support-chat-close{
  min-width:44px;min-height:44px;border-radius:8px;background:transparent;color:#fff;font-size:24px;line-height:1;
}
.support-chat-close:focus-visible{outline:3px solid #ffd166;outline-offset:-3px}
.support-chat-log{flex:1;min-height:120px;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:#f7fbfb}
.support-chat p{margin:0;color:#15343e;font-size:15px;line-height:1.45;letter-spacing:0}
.support-chat-msg{padding:10px 12px;border-radius:12px;max-width:100%;overflow-wrap:anywhere}
.support-chat .support-chat-msg.is-assistant{background:#fff;border:1px solid #d5e2e6;color:#15343e}
.support-chat .support-chat-msg.is-user{align-self:flex-end;background:#0f5c6e;color:#fff}
.support-chat-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 10px}
.support-chat-chips button,.support-chat-handoff a,.support-chat-handoff button,.support-chat-callback a{
  min-height:44px;padding:8px 12px;border-radius:999px;border:1px solid #0f5c6e;background:#fff;color:#0f5c6e;
  font-size:14px;font-weight:650;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;
}
.support-chat-chips button:focus-visible,.support-chat-handoff a:focus-visible,.support-chat-handoff button:focus-visible,.support-chat-callback a:focus-visible,.support-chat-send:focus-visible,.support-chat-form textarea:focus-visible{
  outline:3px solid #0f5c6e;outline-offset:2px;
}
.support-chat-form{display:flex;gap:8px;align-items:flex-end;padding:0 14px 12px}
.support-chat-form textarea{
  flex:1;min-height:52px;max-height:120px;resize:vertical;padding:10px 12px;border:1px solid #9db4ba;border-radius:10px;
  background:#fff;color:#15343e;font-size:16px;line-height:1.4;
}
.support-chat-send{min-width:44px;min-height:52px;padding:0 14px;border-radius:10px;background:#0f5c6e;color:#fff;font-weight:700}
.support-chat-send:focus-visible{outline-color:#ffd166}
.support-chat[data-state="loading"] .support-chat-send{opacity:.65}
.support-chat .support-chat-status{padding:0 14px 8px;color:#8b241b;font-size:14px}
.support-chat .support-chat-status:empty{display:none}
.support-chat-handoff,.support-chat-callback{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 12px}
.support-chat .support-chat-note{padding:0 14px 8px;color:#516b73;font-size:13px}
.support-chat .support-chat-privacy{padding:0 14px 14px;color:#516b73;font-size:13px}
.support-chat-privacy a{color:#0f5c6e;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.support-chat .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:650px){
  .support-chat{right:max(12px, env(safe-area-inset-right, 0px));bottom:max(12px, env(safe-area-inset-bottom, 0px))}
  .support-chat-panel{max-height:min(480px, calc(100dvh - 180px))}
}
@media(prefers-reduced-motion:reduce){
  .support-chat-launcher,.support-chat-send,.support-chat-chips button{transition:none}
}
