#saa-root,#saa-root *{box-sizing:border-box}
#saa-root{--saa-black:#101112;--saa-text:#161719;--saa-muted:#6e7379;--saa-line:rgba(15,18,20,.09);--saa-surface:rgba(255,255,255,.96);--saa-soft:#f5f5f7;--saa-green:#30b873;position:fixed!important;right:24px!important;bottom:24px!important;z-index:2147483000!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Arial,sans-serif!important;color:var(--saa-text)!important;font-synthesis:none!important;line-height:1.4!important}
#saa-root button,#saa-root textarea{font:inherit!important;letter-spacing:normal!important;text-transform:none!important}

/* Premium launcher */
#saa-toggle{position:relative!important;display:flex!important;align-items:center!important;gap:11px!important;min-height:68px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:999px!important;padding:8px 19px 8px 8px!important;background:rgba(18,19,20,.94)!important;-webkit-backdrop-filter:blur(22px) saturate(150%)!important;backdrop-filter:blur(22px) saturate(150%)!important;color:#fff!important;box-shadow:0 18px 50px rgba(0,0,0,.22),0 2px 8px rgba(0,0,0,.11),inset 0 1px 0 rgba(255,255,255,.12)!important;cursor:pointer!important;transition:transform .22s cubic-bezier(.2,.75,.25,1),box-shadow .22s ease,background .22s ease!important;overflow:visible!important}
#saa-toggle:hover{transform:translateY(-2px) scale(1.01)!important;background:#111214!important;box-shadow:0 22px 58px rgba(0,0,0,.26),0 3px 10px rgba(0,0,0,.13)!important}
#saa-toggle:active{transform:translateY(0) scale(.985)!important}
#saa-toggle[hidden]{display:none!important}
.saa-toggle-icon,.saa-brand-icon{display:grid!important;place-items:center!important;flex:0 0 auto!important;color:#242629!important}.saa-toggle-icon{width:52px!important;height:52px!important}.saa-brand-icon{width:48px!important;height:48px!important}.saa-toggle-icon svg,.saa-brand-icon svg{display:block!important;width:100%!important;height:100%!important}
.saa-toggle-copy{text-align:left!important;display:flex!important;flex-direction:column!important;gap:1px!important;line-height:1.2!important}.saa-toggle-copy strong{font-size:14px!important;font-weight:650!important;letter-spacing:-.15px!important;color:#fff!important}.saa-toggle-copy small{font-size:11px!important;color:rgba(255,255,255,.58)!important;font-weight:450!important}
.saa-toggle-status{position:absolute!important;right:7px!important;top:7px!important;width:9px!important;height:9px!important;border-radius:50%!important;background:var(--saa-green)!important;border:2px solid #151617!important;box-shadow:0 0 0 2px rgba(48,184,115,.12)!important}
.saa-launch-visible{animation:saa-launch .22s ease-out!important}@keyframes saa-launch{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}

/* Main panel */
#saa-panel{position:absolute!important;right:0!important;bottom:0!important;width:min(420px,calc(100vw - 28px))!important;height:min(690px,calc(100dvh - 48px))!important;max-height:690px!important;background:var(--saa-surface)!important;-webkit-backdrop-filter:blur(30px) saturate(165%)!important;backdrop-filter:blur(30px) saturate(165%)!important;border-radius:26px!important;box-shadow:0 34px 90px rgba(0,0,0,.27),0 9px 28px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.9)!important;overflow:hidden!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;border:1px solid rgba(0,0,0,.095)!important;opacity:0!important;transform:translateY(14px) scale(.975)!important;transform-origin:100% 100%!important;transition:opacity .18s ease,transform .22s cubic-bezier(.2,.78,.22,1)!important}
#saa-panel.saa-visible{opacity:1!important;transform:none!important}
#saa-panel[hidden]{display:none!important}

/* Header is always visible, no matter what the host theme does */
#saa-root .saa-header{position:relative!important;flex:none!important;inset:auto!important;z-index:5!important;display:flex!important;flex:none!important;justify-content:space-between!important;align-items:center!important;min-height:82px!important;margin:0!important;padding:14px 14px 14px 16px!important;background:rgba(255,255,255,.88)!important;-webkit-backdrop-filter:blur(24px) saturate(170%)!important;backdrop-filter:blur(24px) saturate(170%)!important;color:var(--saa-text)!important;border:0!important;border-bottom:1px solid var(--saa-line)!important;box-shadow:none!important}
.saa-brand{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}.saa-brand-copy{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important}.saa-brand-copy strong{font-size:15px!important;font-weight:680!important;letter-spacing:-.25px!important;line-height:1.1!important;color:#151617!important}.saa-brand-copy span{display:flex!important;align-items:center!important;gap:6px!important;font-size:10.5px!important;color:#7a7e83!important;white-space:nowrap!important}.saa-brand-copy i{display:block!important;width:7px!important;height:7px!important;border-radius:50%!important;background:var(--saa-green)!important;box-shadow:0 0 0 3px rgba(48,184,115,.10)!important}
.saa-header-actions{display:flex!important;align-items:center!important;gap:4px!important}.saa-header-actions button{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#555a60!important;display:grid!important;place-items:center!important;cursor:pointer!important;box-shadow:none!important;transition:background .16s ease,color .16s ease,transform .16s ease!important}.saa-header-actions button:hover{background:#f0f1f2!important;color:#111315!important;transform:none!important}.saa-header-actions button:active{transform:scale(.92)!important}.saa-header-actions svg{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}.saa-header-actions .saa-minimize{background:#f2f3f4!important;color:#25282b!important}.saa-header-actions .saa-minimize:hover{background:#e8e9eb!important}

.saa-intro{display:flex!important;align-items:center!important;padding:8px 16px!important;border:0!important;border-bottom:1px solid rgba(15,18,20,.055)!important;background:rgba(250,250,252,.92)!important;color:#8a8e93!important;font-size:10px!important;font-weight:500!important;white-space:nowrap!important;overflow:hidden!important;min-height:34px!important}.saa-intro span{display:flex!important;align-items:center!important}.saa-intro span:not(:last-child)::after{content:""!important;width:3px!important;height:3px!important;margin:0 9px!important;background:#c9cbce!important;border-radius:50%!important}

/* Conversation */
.saa-messages{min-height:0!important;height:100%!important;padding:22px 16px 16px!important;overflow-y:auto!important;overflow-x:hidden!important;background:linear-gradient(180deg,#f7f7f9 0%,#f5f5f7 100%)!important;overscroll-behavior:contain!important;scrollbar-width:thin!important;scrollbar-color:rgba(120,124,128,.38) transparent!important}.saa-messages::-webkit-scrollbar{width:5px!important}.saa-messages::-webkit-scrollbar-track{background:transparent!important}.saa-messages::-webkit-scrollbar-thumb{background:rgba(120,124,128,.32)!important;border-radius:99px!important}
.saa-msg{position:relative!important;max-width:84%!important;padding:11px 14px!important;border-radius:18px!important;margin:0 0 10px!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;line-height:1.46!important;font-size:13.5px!important;font-weight:430!important;letter-spacing:-.08px!important;box-shadow:none!important;animation:saa-message-in .18s ease-out!important}@keyframes saa-message-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.saa-bot{background:rgba(255,255,255,.98)!important;color:#202124!important;border:1px solid rgba(16,18,20,.075)!important;border-bottom-left-radius:7px!important;box-shadow:0 1px 2px rgba(0,0,0,.025)!important}.saa-user{margin-left:auto!important;background:#151617!important;color:#fff!important;border:1px solid #151617!important;border-bottom-right-radius:7px!important}.saa-msg.saa-success{border-color:rgba(35,164,101,.24)!important;background:#f4fbf7!important;color:#173f2a!important}.saa-typing{display:flex!important;align-items:center!important;gap:4px!important;width:max-content!important;padding:13px 15px!important}.saa-typing i{display:block!important;width:5px!important;height:5px!important;background:#7c8186!important;border-radius:50%!important;animation:saa-dot 1.15s infinite ease-in-out!important}.saa-typing i:nth-child(2){animation-delay:.15s!important}.saa-typing i:nth-child(3){animation-delay:.3s!important}@keyframes saa-dot{0%,60%,100%{transform:translateY(0);opacity:.42}30%{transform:translateY(-3px);opacity:1}}

/* Quick actions */
.saa-quick{flex:none!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;padding:12px!important;border:0!important;border-top:1px solid rgba(15,18,20,.065)!important;background:rgba(255,255,255,.97)!important;overflow:visible!important}.saa-quick[hidden]{display:none!important;max-height:0!important;padding:0!important;border:0!important;overflow:hidden!important}.saa-quick button{width:100%!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;min-height:42px!important;white-space:normal!important;text-align:center!important;border:1px solid rgba(15,18,20,.09)!important;background:#fff!important;color:#232528!important;border-radius:16px!important;padding:10px 12px!important;cursor:pointer!important;font-size:12px!important;line-height:1.2!important;font-weight:600!important;box-shadow:0 1px 0 rgba(255,255,255,.7) inset!important;transition:background .15s ease,border-color .15s ease,transform .15s ease,box-shadow .15s ease!important}.saa-quick button:hover{background:#f7f7f8!important;border-color:rgba(15,18,20,.15)!important;transform:translateY(-1px)!important;box-shadow:0 4px 10px rgba(15,18,20,.05)!important}.saa-quick button span{display:none!important}@media(max-width:560px){.saa-quick{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:10px!important}.saa-quick button{min-height:40px!important;padding:9px 11px!important;font-size:11.5px!important;border-radius:15px!important}.saa-quick button span{font-size:12px!important}}

/* Composer */
.saa-composer-wrap{position:relative!important;z-index:4!important;flex:none!important;padding:11px 12px 10px!important;background:rgba(255,255,255,.98)!important;border:0!important;border-top:1px solid rgba(15,18,20,.065)!important}#saa-form{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;gap:8px!important;align-items:end!important;padding:5px 5px 5px 13px!important;border:1px solid rgba(15,18,20,.13)!important;border-radius:18px!important;background:#f8f8fa!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important}#saa-form:focus-within{border-color:rgba(15,18,20,.24)!important;box-shadow:0 0 0 4px rgba(15,18,20,.035)!important;background:#fff!important}#saa-input{display:block!important;width:100%!important;min-width:0!important;max-height:112px!important;resize:none!important;overflow-y:auto!important;border:0!important;box-shadow:none!important;background:transparent!important;color:#18191b!important;padding:8px 0 7px!important;margin:0!important;font-size:13.5px!important;line-height:1.42!important;outline:none!important}#saa-input::placeholder{color:#989ca1!important;opacity:1!important}#saa-form button{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border:0!important;border-radius:14px!important;background:#151617!important;color:#fff!important;display:grid!important;place-items:center!important;cursor:pointer!important;box-shadow:none!important;transition:transform .15s ease,background .15s ease,opacity .15s ease!important}#saa-form button:hover{background:#2b2d30!important;transform:scale(1.025)!important}#saa-form button:active{transform:scale(.94)!important}#saa-form button:disabled{opacity:.38!important;cursor:not-allowed!important;transform:none!important}#saa-form button svg{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}.saa-footer-meta{display:flex!important;justify-content:center!important;gap:6px!important;margin-top:7px!important;color:#a0a3a7!important;font-size:9px!important;line-height:1.2!important}

/* Mobile behaves like a polished bottom sheet and always keeps minimize visible */
@media(max-width:560px){#saa-root{right:8px!important;bottom:8px!important}#saa-toggle{width:68px!important;height:68px!important;min-height:68px!important;padding:6px!important;border-radius:50%!important}.saa-toggle-icon{width:56px!important;height:56px!important}.saa-toggle-copy,.saa-toggle-status{display:none!important}#saa-panel{position:fixed!important;right:8px!important;bottom:8px!important;width:calc(100vw - 16px)!important;height:min(760px,calc(100dvh - 16px))!important;max-height:calc(100dvh - 16px)!important;border-radius:24px!important}.saa-header{min-height:78px!important;padding:12px 13px!important}.saa-brand-icon{width:48px!important;height:48px!important}.saa-brand-copy strong{font-size:15.5px!important}.saa-brand-copy span{font-size:10px!important}.saa-messages{padding:18px 12px 14px!important}.saa-msg{max-width:90%!important;font-size:13.5px!important}.saa-intro{padding-left:13px!important}.saa-composer-wrap{padding:9px 10px 8px!important}.saa-footer-meta{font-size:8.5px!important}}
@media(max-height:650px) and (min-width:561px){#saa-root{bottom:12px!important}#saa-panel{height:calc(100dvh - 24px)!important;max-height:none!important}}
@media(prefers-reduced-motion:reduce){#saa-panel,#saa-toggle,.saa-msg,.saa-quick button,#saa-form button{animation:none!important;transition:none!important}}

/* V3 live-chat additions */
#saa-root .saa-human{margin-right:auto!important;background:#eef6ff!important;color:#16385c!important;border:1px solid rgba(25,95,160,.14)!important;border-bottom-left-radius:7px!important;box-shadow:0 1px 2px rgba(0,0,0,.025)!important}
#saa-root .saa-human small{display:block!important;margin:0 0 4px!important;font-size:9.5px!important;font-weight:700!important;letter-spacing:.02em!important;color:#4479aa!important;text-transform:uppercase!important}
#saa-root .saa-system{max-width:92%!important;margin:7px auto 12px!important;padding:10px 13px!important;border-radius:14px!important;background:rgba(238,240,243,.95)!important;color:#63676c!important;border:1px solid rgba(15,18,20,.06)!important;font-size:11.5px!important;text-align:center!important;box-shadow:none!important}
#saa-root .saa-system span{display:block!important}
#saa-root.saa-live-mode .saa-brand-copy i{background:#2f80ed!important;box-shadow:0 0 0 3px rgba(47,128,237,.12)!important}
#saa-root.saa-waiting-mode .saa-brand-copy i{background:#e7a11a!important;box-shadow:0 0 0 3px rgba(231,161,26,.12)!important}
#saa-root.saa-live-mode #saa-form{border-color:rgba(47,128,237,.2)!important}
#saa-root.saa-live-mode #saa-form:focus-within{box-shadow:0 0 0 4px rgba(47,128,237,.055)!important}

/* V3.0.8 layout lock: only messages scroll; composer remains pinned to the bottom */
#saa-panel{grid-template-rows:auto minmax(0,1fr) auto auto!important;}
#saa-messages{min-height:0!important;overflow-y:auto!important;}
#saa-quick,#saa-root .saa-header,.saa-composer-wrap{min-height:0!important;flex-shrink:0!important;}
#saa-quick[hidden]{display:none!important;}

/* V3.0.9 mobile keyboard/VisualViewport fix.
   iOS Safari keeps a large layout viewport behind the on-screen keyboard.
   JS mirrors the actual visible viewport into CSS variables so the panel itself
   shrinks instead of being pushed upward. Only the message area scrolls. */
@media(max-width:560px){
  #saa-panel{
    top:calc(var(--saa-vv-top, 0px) + 8px)!important;
    bottom:auto!important;
    height:min(760px,calc(var(--saa-vv-height, 100dvh) - 16px))!important;
    max-height:calc(var(--saa-vv-height, 100dvh) - 16px)!important;
  }
  #saa-root.saa-keyboard-open #saa-panel{
    height:calc(var(--saa-vv-height, 100dvh) - 8px)!important;
    max-height:calc(var(--saa-vv-height, 100dvh) - 8px)!important;
    top:var(--saa-vv-top, 0px)!important;
    border-radius:18px 18px 0 0!important;
  }
  #saa-root.saa-keyboard-open .saa-header{min-height:60px!important;padding:9px 11px!important}
  #saa-root.saa-keyboard-open .saa-brand-icon{width:34px!important;height:34px!important}
  #saa-root.saa-keyboard-open .saa-messages{padding-top:12px!important;padding-bottom:10px!important}
  #saa-root.saa-keyboard-open .saa-composer-wrap{padding:7px 8px 6px!important}
  #saa-root.saa-keyboard-open .saa-footer-meta{margin-top:5px!important;font-size:8px!important}
}

/* V3.0.11 larger, friendlier brand mark */
.saa-toggle-icon svg,.saa-brand-icon svg{filter:drop-shadow(0 4px 10px rgba(0,0,0,.14))!important}
.saa-toggle-icon,.saa-brand-icon{transition:transform .2s ease!important}
#saa-toggle:hover .saa-toggle-icon{transform:scale(1.04)!important}


/* V3.0.12: more visible, welcoming branding + automatic entrance */
@keyframes saa-brand-breathe{0%,100%{transform:scale(1);filter:drop-shadow(0 5px 12px rgba(0,0,0,.16))}50%{transform:scale(1.045);filter:drop-shadow(0 7px 16px rgba(0,0,0,.21))}}
@keyframes saa-auto-pop{0%{box-shadow:0 34px 90px rgba(0,0,0,.27),0 9px 28px rgba(0,0,0,.12),0 0 0 0 rgba(48,184,115,.20)}55%{box-shadow:0 34px 90px rgba(0,0,0,.27),0 9px 28px rgba(0,0,0,.12),0 0 0 12px rgba(48,184,115,.07)}100%{box-shadow:0 34px 90px rgba(0,0,0,.27),0 9px 28px rgba(0,0,0,.12),0 0 0 20px rgba(48,184,115,0)}}
#saa-toggle{min-height:82px!important;padding:9px 23px 9px 9px!important;gap:13px!important}
.saa-toggle-icon{width:64px!important;height:64px!important}
.saa-toggle-copy strong{font-size:16px!important}.saa-toggle-copy small{font-size:12px!important}
#saa-root .saa-header{min-height:94px!important;padding:15px 15px 15px 17px!important}
.saa-brand{gap:13px!important}.saa-brand-icon{width:60px!important;height:60px!important}
.saa-brand-copy strong{font-size:18px!important}.saa-brand-copy span{font-size:11.5px!important}
.saa-toggle-icon svg,.saa-brand-icon svg{filter:drop-shadow(0 5px 12px rgba(0,0,0,.16))!important}
#saa-root.saa-auto-opening #saa-panel{animation:saa-auto-pop .85s ease-out!important}
#saa-root.saa-auto-opening .saa-brand-icon{animation:saa-brand-breathe .75s ease-in-out!important}

@media(max-width:560px){
  #saa-toggle{width:84px!important;height:84px!important;min-height:84px!important;padding:7px!important}
  .saa-toggle-icon{width:70px!important;height:70px!important}
  #saa-root .saa-header{min-height:92px!important;padding:13px 14px!important}
  .saa-brand-icon{width:58px!important;height:58px!important}
  .saa-brand-copy strong{font-size:17px!important}
  .saa-brand-copy span{font-size:10.8px!important}
  #saa-root.saa-keyboard-open .saa-header{min-height:66px!important;padding:9px 11px!important}
  #saa-root.saa-keyboard-open .saa-brand-icon{width:42px!important;height:42px!important}
}
