/* The chat assistant widget. Uses the site's colour tokens (site.css); everything is prefixed fsc- so it cannot touch the pages. */
.fsc-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand, #0b7f64), var(--brand-2, #14b8a6)); box-shadow: 0 14px 34px -8px rgba(11,127,100, .6), 0 2px 8px rgba(15, 23, 42, .2); transition: transform .15s, box-shadow .2s; }
.fsc-launcher:hover { transform: translateY(-2px) scale(1.04); } .fsc-launcher:focus-visible, .fsc-x:focus-visible, .fsc-chip:focus-visible, .fsc-send:focus-visible, .fsc-go:focus-visible, .fsc-no:focus-visible, .fsc-input:focus-visible { outline: 3px solid #a5c2fa; outline-offset: 2px; }
.fsc-launcher.fsc-on { transform: scale(.9); opacity: .85; }
.fsc-panel { position: fixed; right: 20px; bottom: 90px; z-index: 91; width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 120px)); display: flex; flex-direction: column; background: #fff; color: var(--ink-2, #1f2937);
  border: 1px solid var(--line, #e6e9f2); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(31, 27, 94, .3), 0 4px 14px rgba(15, 23, 42, .12); font: 14.5px/1.5 var(--font, system-ui, sans-serif); }
.fsc-panel[hidden], .fsc-form[hidden], .fsc-row[hidden] { display: none; }
.fsc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, var(--brand, #0b7f64), var(--brand-2, #14b8a6)); }
.fsc-who strong { display: block; font-size: 15.5px; } .fsc-who span { display: block; font-size: 12.5px; opacity: .85; }
.fsc-x { border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; } .fsc-x:hover { background: rgba(255, 255, 255, .28); }
.fsc-log { flex: 1; min-height: 96px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft, #f6f7fc); overscroll-behavior: contain; }
.fsc-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fsc-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line, #e6e9f2); border-bottom-left-radius: 4px; }
.fsc-me { align-self: flex-end; background: var(--brand, #0b7f64); color: #fff; border-bottom-right-radius: 4px; }
.fsc-link { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--brand, #0b7f64); } .fsc-link:hover { text-decoration: underline; }
.fsc-typing { display: flex; gap: 4px; padding: 13px 14px; } .fsc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: fsc-b 1s infinite ease-in-out; } .fsc-typing i:nth-child(2) { animation-delay: .15s; } .fsc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes fsc-b { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.fsc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: var(--bg-soft, #f6f7fc); } .fsc-chips:empty { display: none; }
.fsc-chip { border: 1px solid var(--line, #e6e9f2); background: #fff; color: var(--brand, #0b7f64); font: inherit; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer; } .fsc-chip:hover { background: #e4f6f0; }
.fsc-form { padding: 12px 16px; border-top: 1px solid var(--line, #e6e9f2); background: #fff; max-height: 72%; overflow-y: auto; flex: none; }
.fsc-form-t { font-weight: 600; color: var(--ink, #0b1020); margin-bottom: 8px; }
.fsc-f { display: block; margin-bottom: 8px; } .fsc-f span { display: block; font-size: 12.5px; color: var(--muted, #5b6577); margin-bottom: 2px; }
.fsc-f input, .fsc-input { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink, #0b1020); }
.fsc-f input:focus, .fsc-input:focus { border-color: var(--brand, #0b7f64); outline: 0; box-shadow: 0 0 0 3px rgba(11,127,100, .18); }
.fsc-err { color: var(--bad, #dc2626); font-size: 13px; min-height: 1px; } .fsc-err:empty { display: none; }
.fsc-actions { display: flex; gap: 8px; margin-top: 6px; }
.fsc-go { flex: 1; border: 0; padding: 10px 14px; border-radius: 10px; font: inherit; font-weight: 700; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--brand, #0b7f64), var(--brand-2, #14b8a6)); } .fsc-go:disabled { opacity: .6; cursor: wait; }
.fsc-no { border: 1px solid var(--line, #e6e9f2); background: #fff; padding: 10px 14px; border-radius: 10px; font: inherit; cursor: pointer; color: var(--ink-2, #1f2937); } .fsc-no:hover { background: var(--bg-soft, #f6f7fc); }
.fsc-status { padding: 0 16px; color: var(--bad, #dc2626); font-size: 13px; } .fsc-status:empty { display: none; }
.fsc-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line, #e6e9f2); background: #fff; }
.fsc-send { border: 0; width: 42px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; cursor: pointer; background: var(--brand, #0b7f64); } .fsc-send:disabled { opacity: .5; cursor: wait; }
.fsc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 520px) {
  .fsc-launcher { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .fsc-panel { right: 8px; left: 8px; bottom: 78px; width: auto; height: min(78dvh, 640px); border-radius: 16px; }
  .fsc-input, .fsc-f input { font-size: 16px; }              /* stops iOS zooming in on focus */
}
@media (prefers-reduced-motion: reduce) { .fsc-launcher, .fsc-typing i { transition: none; animation: none; } }
@media print { .fsc-launcher, .fsc-panel { display: none !important; } }
