/* The site's chat button and the chat window's colours (assets/js/chat.js holds the window's shape, SKIN). 2026-11-05.
   Same navy gradient, highlight and shadow as the ADA button and the phone quick bar, on the same centre line
   (49 px up): 58 px, 20 px from the corner, where the stock bubble used to sit, so the quick bar's spacing still holds. */
.gts-chat{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:9984;display:flex;align-items:center;gap:2px;height:58px;padding:0 6px 0 22px;border:0;border-radius:999px;background:linear-gradient(135deg,#2E3F9C 0%,#28378B 55%,#1F2C75 100%);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 0 0 1px rgba(255,255,255,.1),0 10px 24px rgba(19,26,64,.3);font:600 15px/1 Inter,system-ui,sans-serif;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;animation:gts-chat-in .4s cubic-bezier(.22,1,.36,1) .25s backwards}
@keyframes gts-chat-in{from{opacity:0;transform:translateY(16px)}}
.gts-chat__lbl{white-space:nowrap;padding-right:4px}
.gts-chat__disc{position:relative;flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%}
.gts-chat__disc svg{grid-area:1/1;width:28px;height:28px;transition:transform .2s cubic-bezier(.22,1,.36,1),opacity .2s ease}
.gts-chat__disc .gts-chat__x{width:22px;height:22px;opacity:0;transform:rotate(-45deg) scale(.8)}
html.gts-chat-open .gts-chat__ic{opacity:0;transform:scale(.8)}
html.gts-chat-open .gts-chat__x{opacity:1;transform:none}
.gts-chat:active .gts-chat__disc{transform:scale(.97)}
@media (hover:hover){.gts-chat:hover .gts-chat__ic{transform:translateY(-2px)}}
.gts-chat:focus-visible{outline:3px solid var(--gts-red,#E41620);outline-offset:3px}
.gts-chat.is-busy .gts-chat__disc::before{content:"";position:absolute;inset:2px;border:2px solid transparent;border-top-color:#fff;border-radius:50%;animation:gts-chat-spin .8s linear infinite}
@keyframes gts-chat-spin{to{transform:rotate(360deg)}}
@media (max-width:899px){
  /* phones: the disc alone; the label stays as the button's name */
  .gts-chat{width:58px;padding:0;justify-content:center}
  .gts-chat__lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  /* the window takes the screen on phones and has its own close button: the disc steps away */
  html.gts-chat-open .gts-chat{visibility:hidden}
}
@media (prefers-reduced-motion:reduce){.gts-chat{animation:none}.gts-chat *{transition:none!important}.gts-chat.is-busy .gts-chat__disc::before{animation-duration:2s}}
html.a11y-still .gts-chat,html.a11y-still .gts-chat *{animation:none!important;transition:none!important}
@media print{.gts-chat{display:none!important}}

/* the chat window: colours and type. Hidden until skinned, so the stock look never flashes */
chat-widget{--chat-widget-font-family:Inter,system-ui,sans-serif;--ion-font-family:Inter,system-ui,sans-serif;--chat-widget-bubble-color:#28378B;--chat-widget-primary-color:#28378B;--chat-widget-primary-solid-color:#28378B;--chat-widget-active-color:#28378B;--chat-widget-button-color:#28378B;--ion-color-primary:#28378B;--color:#28378B;--chat-widget-header-color:#28378B;--chat-widget-header-darken-color:#131A40;--chat-widget-avatar-border-color:#FFFFFF;--chat-widget-received-message-color:#F0F0F3;--chat-widget-received-message-text-color:#232730;--chat-widget-sender-message-color:#28378B;--chat-widget-welcome-message-text-color:#232730;--chat-widget-system-message-text-color:#232730}
chat-widget:not(.gts-ready){visibility:hidden}
@media print{chat-widget{display:none!important}}
