
:where(#floating-chat-panel) .button{display:inline-flex;align-items:center;justify-content:center;gap:20px;padding:15px 23px;background:var(--lime);border:1px solid transparent;color:var(--ink);text-decoration:none;font-size:15px;font-weight:650;cursor:pointer;transition:background .15s}
:where(#floating-chat-panel) .button:hover{background:#cbe65c}
:where(#floating-chat-panel) .button.dark{background:var(--ink);color:white}
:where(#floating-chat-panel) .button:disabled{background:#e5e9e6;color:#63716b;cursor:not-allowed}
:where(#floating-chat-panel) .small{font-size:13px;color:var(--muted);line-height:1.55}
:where(#floating-chat-panel) .text-button{padding:0;border:0;border-bottom:1px solid currentColor;background:none;color:var(--ink);font-size:13px;cursor:pointer}
:where(#floating-chat-panel) .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
:where(#floating-chat-panel) .button{border-radius:6px;min-height:48px}
.chat-panel{border-radius:18px;background:#fbfcf7;color:#152b2b;padding:26px;display:flex;flex-direction:column;min-width:0}
.chat-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}
.chat-heading strong{display:block;font-size:21px}
.chat-heading span{font-size:11px;color:#6c7c70}
.chat-heading button{font-size:10px}
.chat-quick{display:flex;flex-wrap:wrap;gap:7px;margin:22px 0 15px}
.chat-quick button{border:1px solid #d3dfd1;background:white;font-size:11px;padding:8px 11px;border-radius:30px;color:#344c3a;cursor:pointer}
.chat-quick button:hover{background:#e7f1d7}
.chat-messages{height:330px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:6px 8px 15px 0;flex:1;min-height:230px;max-height:400px}
.chat-message{padding:14px 16px;background:#edf1e8;border-radius:12px;margin:0 30px 13px 0;overflow-wrap:anywhere}
.chat-message.user{margin:0 0 13px 35px;background:#dff0b7}
.chat-speaker{font-size:9px;letter-spacing:.04em;text-transform:uppercase;font-weight:700;color:#516342}
.chat-message p{font-size:13px;line-height:1.7;margin:5px 0 0;white-space:pre-wrap}
.chat-composer{display:flex;gap:10px;margin-top:14px}
.chat-composer textarea{flex:1;width:100%;min-width:0;border:1px solid #d3dccb;border-radius:7px;background:white;padding:12px;font-family:inherit;font-size:13px;line-height:1.5;color:#152b2b;resize:vertical}
.chat-composer button{align-self:stretch;font-size:12px;padding:12px 17px}
.chat-panel>.small{font-size:10px;margin:12px 0 0;min-height:30px}
@media(max-width:1000px){.chat-panel{padding:20px}.chat-composer{flex-direction:column}.chat-composer button{align-self:flex-end}}
@media(max-width:700px){.chat-panel{padding:20px 16px}.chat-messages{max-height:340px;min-height:250px}.chat-composer{flex-direction:row;gap:6px}.chat-composer button{align-self:stretch;padding:10px 12px}.chat-message{margin-right:14px}.chat-message.user{margin-left:20px}.chat-message p{font-size:13px}}
.chat-launcher{position:fixed;right:24px;bottom:22px;display:flex;align-items:center;gap:12px;border:1px solid #d9f36e88;border-radius:40px;background:#143e2ef2;backdrop-filter:blur(16px);color:#eef4e9;padding:10px 18px 10px 10px;z-index:70;box-shadow:0 8px 30px #001b2340;cursor:pointer;font-size:12px;text-align:left;transition:transform .25s}
.chat-launcher:hover{transform:translateY(-3px)}
.chat-launcher small{display:block;font-size:8px;color:#a7bf9f;margin-top:2px}
.chat-launcher b{font-weight:400;font-size:20px;margin-left:8px;color:var(--lime)}
.chat-orb{display:grid;place-items:center;font-size:26px;width:39px;height:39px;border-radius:50%;background:var(--lime);color:#0d3729}
.tv-chat .chat-panel{position:fixed;bottom:96px;right:24px;width:390px;max-width:calc(100vw - 28px);max-height:min(680px,calc(100dvh - 125px));height:620px;z-index:70;box-shadow:0 20px 90px #001f1655;border:1px solid #78986b75;border-radius:16px;display:flex;flex-direction:column;background:#f0f4e9;color:#143323;overflow:hidden}
.tv-chat .chat-heading{background:#10382a;padding:16px;color:#edf4e4;display:flex;align-items:center;gap:12px;flex-shrink:0}
.tv-chat .chat-heading>div{flex:1}
.tv-chat .chat-heading strong{font-size:15px}
.tv-chat .chat-heading span{font-size:9px;color:#b2c5a4;display:block;margin-top:3px}
.tv-chat #chat-close{order:3;background:transparent;border:0;color:#e4eddd;font-size:26px;line-height:1;cursor:pointer}
.tv-chat #chat-clear{color:#becdaf;font-size:9px;white-space:nowrap}
.tv-chat .chat-messages{flex:1;min-height:90px;max-height:none;background:#f0f4e9;padding:16px;overflow-y:auto;scroll-behavior:auto}
.tv-chat .chat-message{font-size:12px;padding:12px 13px;border-radius:12px;border:0;margin-bottom:12px;background:#dfe8d4}
.tv-chat .chat-message.user{background:#1c4835;color:#f3f8ed}
.tv-chat .chat-speaker{font-size:8px;color:#72876a}
.tv-chat .chat-message.user .chat-speaker{color:#adc79e}
.tv-chat .chat-message p{font-size:12px;line-height:1.6;margin:6px 0 0}
.tv-chat .chat-quick{padding:10px 13px;gap:5px;background:#e4eddc;flex-shrink:0}
.tv-chat .chat-quick button{font-size:9px;padding:6px 8px;border:1px solid #bdceae;background:#f3f7ed;color:#355133;border-radius:20px;cursor:pointer}
.chat-consent-label{font-size:9px;line-height:1.5;padding:12px 15px 0;display:block;color:#657b57}
.chat-consent-label input{accent-color:#355b2c;vertical-align:middle}
.tv-chat .chat-composer{display:flex;padding:12px;gap:8px;background:#f8faf3;flex-shrink:0}
.tv-chat .chat-composer textarea{min-width:0;flex:1;resize:none;border-radius:7px;border:1px solid #b6c7a6;padding:10px;font:12px/1.5 inherit;background:#fff;color:#123323}
.tv-chat .chat-composer .button{font-size:10px;padding:10px;min-height:0;background:#1d4b33}
.tv-chat #chat-status{margin:0;padding:0 13px 12px;color:#6e805e;font-size:8px;line-height:1.5;flex-shrink:0}
@media(max-width:760px){.chat-launcher{right:14px;bottom:14px;padding:8px 12px 8px 8px;font-size:10px;gap:9px;box-shadow:0 6px 20px #011c2540}.chat-launcher small{font-size:7px}.chat-orb{width:32px;height:32px;font-size:21px}.chat-launcher b{font-size:16px;margin-left:3px}.tv-chat .chat-panel{right:14px;bottom:77px;max-height:calc(100dvh - 100px);height:580px;border-radius:12px}}
.chat-consent-label{font-size:15px!important;line-height:1.6!important}
.chat-consent-label input{min-width:20px;min-height:20px}
.tv-chat #floating-chat-panel{box-sizing:border-box;width:min(480px,calc(100vw - 32px));height:min(760px,calc(100dvh - 112px));max-height:calc(100dvh - 112px);padding:0;right:20px;bottom:92px;display:flex;flex-direction:column;gap:0;overflow:hidden;border-radius:20px;background:#fff}
.tv-chat #floating-chat-panel[hidden]{display:none}
#floating-chat-panel>*{flex-shrink:0}
#floating-chat-panel .chat-heading{padding:16px 18px;gap:10px;align-items:center;border-bottom:1px solid #e0e9e7}
#floating-chat-panel .chat-heading strong{font-size:18px}
#floating-chat-panel .chat-heading span{font-size:12px;line-height:1.5}
#floating-chat-panel #chat-close{min-width:40px;min-height:40px;font-size:26px;order:2}
#floating-chat-panel #chat-clear{font-size:12px;margin-left:auto}
#floating-chat-panel .chat-consent-label{display:block;padding:12px 18px;margin:0;font-size:13px!important;line-height:1.5!important}
#floating-chat-panel .chat-consent-label input{width:17px;height:17px;vertical-align:middle;margin-right:5px}
#floating-chat-panel .chat-quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 18px 10px}
#floating-chat-panel .chat-quick button{font-size:12px;line-height:1.4;padding:7px 10px}
#floating-chat-panel.chat-started .chat-quick{display:none}
#floating-chat-panel .chat-messages{position:relative;flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px;margin:0;display:flex;flex-direction:column;gap:14px;scroll-behavior:auto}
#floating-chat-panel .chat-message{flex:0 0 auto;max-width:100%;padding:14px 16px;overflow:visible;font-size:16px;line-height:1.65;overflow-wrap:anywhere}
#floating-chat-panel .chat-message p{font-size:16px;line-height:1.65;white-space:pre-wrap;margin:6px 0 0;max-height:none;overflow:visible}
#floating-chat-panel .chat-speaker{font-size:12px;line-height:1.4}
#floating-chat-panel .chat-composer{display:flex;padding:12px 16px 4px;margin:0;gap:8px;border-top:1px solid #e0e9e7;align-items:end}
#floating-chat-panel #chat-input{flex:1;min-width:0;box-sizing:border-box;font-size:16px;line-height:1.5;min-height:64px;max-height:120px;resize:vertical;padding:10px 12px}
#floating-chat-panel #chat-send{font-size:14px;min-height:46px;padding:10px 14px}
#floating-chat-panel .chat-keyboard-hint{font-size:11px;color:#526764;padding:2px 18px 4px}
#floating-chat-panel #chat-status{font-size:12px;line-height:1.45;padding:4px 18px 12px;margin:0;max-height:74px;overflow-y:auto}
@media(max-width:600px){.tv-chat #floating-chat-panel{width:calc(100vw - 16px);right:8px;bottom:8px;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);z-index:1000}#floating-chat-panel .chat-heading{padding:12px}#floating-chat-panel .chat-messages{padding:12px}#floating-chat-panel .chat-message{padding:12px}#floating-chat-panel .chat-consent-label{padding:10px 12px}#floating-chat-panel .chat-composer{padding-left:12px;padding-right:12px}}
#floating-chat-panel{background:#fafbf8;box-shadow:0 18px 80px #152b2530;border:1px solid #dce5dc;overflow:hidden}
#floating-chat-panel .chat-heading{background:#143c32;color:white;padding:16px 18px;gap:10px;flex-shrink:0}
#floating-chat-panel .chat-heading span{color:#d8e6de;font-size:12px;margin-top:4px}
#floating-chat-panel .chat-heading button{color:white}
#floating-chat-panel .chat-messages{padding:18px 16px;gap:16px;overscroll-behavior:contain}
#floating-chat-panel .chat-message{max-width:94%;border:1px solid #e1e8df;border-radius:16px 16px 16px 4px;background:white;padding:12px 14px;line-height:1.65;font-size:16px;overflow-wrap:anywhere}
#floating-chat-panel .chat-message.user{align-self:flex-end;background:#e5efdf;border-color:#d7e5cf;border-radius:16px 16px 4px 16px}
#floating-chat-panel .chat-speaker{font-size:11px;letter-spacing:.02em;color:#51665b;margin-bottom:5px}
#floating-chat-panel .chat-quick{display:flex!important;flex-wrap:nowrap;overflow-x:auto;flex-shrink:0;padding:8px 14px;gap:7px;scrollbar-width:thin}
#floating-chat-panel .chat-quick button{flex-shrink:0;white-space:nowrap;background:white;border:1px solid #d6e0d2;border-radius:20px;padding:8px 11px;font-size:12px;min-height:36px}
#floating-chat-panel .chat-composer{padding:8px 14px;gap:8px;flex-shrink:0}
#floating-chat-panel textarea{min-height:48px;height:48px;max-height:110px;resize:none;font-size:16px;line-height:1.45;border-radius:12px;background:white}
#floating-chat-panel #chat-send{min-height:48px;border-radius:12px;padding:0 14px;font-size:13px}
#chat-status:empty{display:none}
#floating-chat-panel #chat-status{margin:0;padding:3px 15px;font-size:12px;flex-shrink:0}
.chat-footer{padding:5px 15px 10px;flex-shrink:0;background:#fafbf8}
.chat-footer>p{margin:0;color:#57685f;font-size:11px;line-height:1.4}
.chat-footer>div{display:flex;align-items:center;justify-content:space-between;margin-top:5px}
.chat-footer a{color:#3b5447;font-size:11px}
.chat-credit{display:flex;align-items:center;gap:6px;text-decoration:none;font-weight:600}
.chat-credit img{border-radius:6px;object-fit:contain}
@media(max-width:600px){#floating-chat-panel{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:18px}#floating-chat-panel .chat-heading{padding:12px 14px}#floating-chat-panel .chat-messages{padding:14px 12px}#floating-chat-panel .chat-message{max-width:96%}body:has(#floating-chat-panel:not([hidden])) .chat-launcher{visibility:hidden}}
@media(max-width:600px){.tv-chat #floating-chat-panel{width:calc(100vw - 16px);max-width:calc(100vw - 16px);left:auto;top:calc(var(--chat-viewport-top,0px) + 8px);bottom:auto;height:calc(var(--chat-viewport-height,100dvh) - 16px);max-height:calc(var(--chat-viewport-height,100dvh) - 16px)}}
#floating-chat-panel .chat-heading{display:flex;align-items:center}
#floating-chat-panel .chat-heading>div{flex:1;min-width:0}
#floating-chat-panel .chat-face{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid #d9f36e}
.chat-launcher .chat-orb-face{padding:0;overflow:hidden;background:none}
.chat-launcher .chat-orb-face img{display:block;width:40px;height:40px;border-radius:50%;object-fit:cover}
#floating-chat-panel .chat-message.assistant .chat-speaker{display:flex;align-items:center;gap:8px}
#floating-chat-panel .chat-message.assistant .chat-speaker::before{content:"";width:24px;height:24px;border-radius:50%;flex-shrink:0;background:url(/assets/quoteclerk-mascot-face.webp) center/cover}
@media(max-width:600px){#floating-chat-panel .chat-face{width:36px;height:36px}}
#floating-chat-panel .chat-message.user{color:#152b2b}
#floating-chat-panel .chat-message.user .chat-speaker{color:#4a6a5a}


.tv-chat .tv-launch{position:fixed;z-index:50;right:22px;bottom:22px;display:flex;flex-direction:column;align-items:flex-end;gap:10px;max-width:calc(100vw - 44px);pointer-events:none}
.tv-chat .tv-launch>*{pointer-events:auto}
body:has(#floating-chat-panel:not([hidden])) .tv-chat .tv-launch{display:none}
.tv-chat .tv-bubble{position:relative;max-width:270px;padding:11px 34px 11px 14px;border-radius:14px 14px 4px 14px;background:#152b2b;color:#f6f5ee;font-size:14px;font-weight:600;line-height:1.3;box-shadow:0 10px 24px -12px rgb(10 25 25 / .6);animation:tvb-in .4s ease-out both}
.tv-chat .tv-bubble[hidden]{display:none!important}
.tv-chat .tv-bubble::after{content:"";position:absolute;right:22px;bottom:-7px;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-top:8px solid #152b2b}
.tv-chat .tv-q{display:none}
.tv-chat .tv-q.on{display:block;animation:tvb-in .35s ease-out both}
.tv-chat .tv-dots{display:none;gap:4px;align-items:center;min-height:18px}
.tv-chat .tv-bubble[data-state=typing] .tv-q{display:none}
.tv-chat .tv-bubble[data-state=typing] .tv-dots{display:inline-flex}
.tv-chat .tv-dots i{width:6px;height:6px;border-radius:50%;background:#c6d2cc;animation:tvb-dot 1s infinite ease-in-out}
.tv-chat .tv-dots i:nth-child(2){animation-delay:.15s}
.tv-chat .tv-dots i:nth-child(3){animation-delay:.3s}
.tv-chat .tv-bubble-x{position:absolute;top:3px;right:5px;width:26px;height:26px;padding:0;border:0;background:none;color:#c6d2cc;font-family:inherit;font-size:18px;line-height:1;cursor:pointer}
.tv-chat .tv-bubble-x:focus-visible{outline:2px solid #f6f5ee;outline-offset:1px}
.tv-chat .tv-launch .chat-launcher{position:relative;top:auto;right:auto;bottom:auto;display:flex;flex-direction:row;align-items:center;gap:10px;width:auto;height:auto;min-height:0;padding:0;border:0;border-radius:0;background:none;backdrop-filter:none;box-shadow:none;color:#152b2b;overflow:visible;font-family:inherit;cursor:pointer;animation:tvb-hop 4.5s ease-in-out infinite}
.tv-chat .tv-launch .chat-launcher:focus-visible{outline:2px solid #152b2b;outline-offset:4px;border-radius:40px}
.tv-chat .tv-launch .chat-launcher .tvb-orb{position:relative;display:block;flex:none;width:64px;height:64px;border-radius:50%;background:#f6f5ee;border:1px solid #cfd1c4;box-shadow:0 14px 30px -10px rgb(10 25 25 / .55);overflow:visible;perspective:300px;animation:tvb-ring 2.4s ease-out infinite}
.tv-chat .tv-launch .chat-launcher .tvb-orb::before,.tv-chat .tv-launch .chat-launcher .tvb-orb::after{content:none;display:none}
.tv-chat .tv-launch .chat-launcher .tvb-orb img{display:block;width:62px;height:62px;margin:0;border-radius:50%;object-fit:cover;object-position:center;transform:rotateY(-14deg)}
.tv-chat .tv-launch .chat-launcher .tvb-cap{display:block;position:static;transform:none;opacity:1;pointer-events:auto;transition:none;padding:9px 14px;border-radius:12px;background:#152b2b;color:#f6f5ee;font-size:14px;font-weight:600;line-height:1.25;white-space:nowrap;text-align:left;box-shadow:0 10px 24px -14px rgb(10 25 25 / .6)}
.tv-chat .tv-launch .chat-launcher .tvb-cap small{display:block;margin:2px 0 0;font-size:12px;font-weight:400;color:#c6d2cc;line-height:1.3}
.chat-face.tvb-wave{transform-origin:50% 80%;animation:tvb-wave .9s ease-in-out 1 both}
@keyframes tvb-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes tvb-hop{0%,88%,100%{transform:translateY(0)}92%{transform:translateY(-6px)}96%{transform:translateY(0)}}
@keyframes tvb-ring{0%{box-shadow:0 14px 30px -10px rgb(10 25 25 / .55),0 0 0 0 rgb(21 43 43 / .32)}75%,100%{box-shadow:0 14px 30px -10px rgb(10 25 25 / .55),0 0 0 14px rgb(21 43 43 / 0)}}
@keyframes tvb-dot{0%,80%,100%{transform:translateY(0);opacity:.45}40%{transform:translateY(-3px);opacity:1}}
@keyframes tvb-wave{0%,100%{transform:rotate(0)}20%{transform:rotate(-14deg)}40%{transform:rotate(12deg)}60%{transform:rotate(-9deg)}80%{transform:rotate(5deg)}}
@media (max-width:640px){
  body:has(#chat-launcher){padding-bottom:calc(60px + env(safe-area-inset-bottom))}
  .tv-chat .tv-launch{left:0;right:0;bottom:0;max-width:none;flex-direction:row;align-items:center;gap:10px;padding:6px 12px calc(6px + env(safe-area-inset-bottom));background:#f6f5ee;border-top:1px solid #cfd1c4;box-shadow:0 -8px 22px -14px rgb(10 25 25 / .5);pointer-events:auto}
  .tv-chat .tv-bubble{flex:1 1 auto;min-width:0;max-width:none;padding:9px 30px 9px 12px;border-radius:12px;font-size:13.5px}
  .tv-chat .tv-bubble::after{display:none}
  .tv-chat .tv-bubble .tv-q{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tv-chat .tv-launch .chat-launcher{margin-left:auto;gap:10px;animation:none}
  .tv-chat .tv-launch .chat-launcher .tvb-orb{width:44px;height:44px;box-shadow:0 6px 16px -8px rgb(10 25 25 / .6)}
  .tv-chat .tv-launch .chat-launcher .tvb-orb img{width:42px;height:42px}
  .tv-chat .tv-launch .chat-launcher .tvb-cap{display:none;padding:6px 10px;font-size:13px}
  .tv-chat .tv-launch:has(#tv-bubble[hidden]) .chat-launcher .tvb-cap{display:block}
}
@media (prefers-reduced-motion:reduce){.tv-chat .tv-launch,.tv-chat .tv-launch *,.chat-face.tvb-wave{animation:none!important}}

#floating-chat-panel .chat-message.assistant .chat-speaker::before{display:none!important}
