.spf-chat-launcher,.spf-chat-panel,.spf-chat-panel *{box-sizing:border-box}
.spf-chat-launcher{position:fixed;z-index:60;right:22px;bottom:24px;display:flex;align-items:center;gap:11px;min-height:58px;padding:0 20px 0 15px;border:0;border-radius:999px;background:linear-gradient(135deg,#082f4c,#075577 62%,#0786ad);color:#fff;box-shadow:0 12px 34px rgba(6,47,76,.3);font:700 14px/1.2 'DM Sans',Arial,sans-serif;cursor:pointer;transition:transform .2s,box-shadow .2s}
.spf-chat-launcher:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(6,47,76,.35)}
.spf-chat-launcher:focus-visible,.spf-chat-panel button:focus-visible,.spf-chat-panel input:focus-visible{outline:3px solid #63d5ee;outline-offset:3px}
.spf-chat-launcher-icon{width:31px;height:31px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.38);border-radius:50%;background:rgba(255,255,255,.12)}
.spf-chat-launcher-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.spf-chat-launcher-dot{position:absolute;top:4px;left:38px;width:10px;height:10px;border:2px solid #082f4c;border-radius:50%;background:#57e0bd}
.spf-chat-panel{position:fixed;z-index:61;right:22px;bottom:94px;width:min(390px,calc(100vw - 28px));height:min(610px,calc(100dvh - 122px));min-height:390px;display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(6,47,76,.12);border-radius:21px;background:#f7fbfc;color:#17384b;box-shadow:0 25px 75px rgba(3,32,50,.26);font-family:'DM Sans',Arial,sans-serif;opacity:0;visibility:hidden;transform:translateY(12px) scale(.98);transform-origin:bottom right;transition:opacity .2s,transform .2s,visibility .2s}
.spf-chat-panel.is-open{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.spf-chat-header{position:relative;display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:18px 17px;background:linear-gradient(120deg,#082f4c,#075577 68%,#087b9b);color:#fff}
.spf-chat-avatar{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(255,255,255,.14)}
.spf-chat-avatar svg{width:21px;height:21px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.spf-chat-heading{min-width:0;flex:1}.spf-chat-heading strong{display:block;font-size:14px;line-height:1.25}.spf-chat-heading span{display:block;margin-top:4px;color:#cceef5;font-size:11px;line-height:1.3}
.spf-chat-header-actions{display:flex;gap:5px}.spf-chat-icon-button{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#fff;font-size:19px;cursor:pointer}.spf-chat-icon-button:hover{background:rgba(255,255,255,.15)}
.spf-chat-intro{flex:0 0 auto;padding:10px 16px;border-bottom:1px solid #e6eef1;background:#fff;color:#58717e;font-size:11px;line-height:1.45}
.spf-chat-log{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:11px;padding:17px 14px 12px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c5d9e0 transparent}
.spf-chat-message{max-width:88%;display:flex;flex-direction:column;gap:4px;align-self:flex-start}.spf-chat-message.is-user{align-self:flex-end;align-items:flex-end}
.spf-chat-bubble{padding:11px 13px;border:1px solid #e1ebef;border-radius:15px 15px 15px 5px;background:#fff;color:#294955;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 3px 10px rgba(7,61,86,.035)}
.spf-chat-message.is-user .spf-chat-bubble{border-color:#075577;border-radius:15px 15px 5px 15px;background:#075577;color:#fff}
.spf-chat-time{padding:0 3px;color:#8196a0;font-size:9px}
.spf-chat-choices{display:flex;flex-wrap:wrap;gap:7px;align-self:flex-start;max-width:96%}.spf-chat-choice{min-height:34px;padding:7px 11px;border:1px solid #9dc9d7;border-radius:999px;background:#fff;color:#075577;font:600 11px/1.2 'DM Sans',Arial,sans-serif;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}.spf-chat-choice:hover{transform:translateY(-1px);border-color:#0786ad;background:#eaf7fa}
.spf-chat-typing{display:flex;align-items:center;gap:4px;padding:11px 13px;border:1px solid #e1ebef;border-radius:15px 15px 15px 5px;background:#fff}.spf-chat-typing i{width:5px;height:5px;border-radius:50%;background:#80a7b5;animation:spf-chat-bounce .9s infinite alternate}.spf-chat-typing i:nth-child(2){animation-delay:.18s}.spf-chat-typing i:nth-child(3){animation-delay:.36s}@keyframes spf-chat-bounce{to{opacity:.35;transform:translateY(-3px)}}
.spf-chat-form{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:11px 12px;border-top:1px solid #e2ecef;background:#fff}.spf-chat-input{width:100%;min-width:0;height:43px;padding:0 13px;border:1px solid #d7e4e8;border-radius:999px;background:#f8fbfc;color:#17384b;font:13px 'DM Sans',Arial,sans-serif}.spf-chat-input::placeholder{color:#8297a0}.spf-chat-send{width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;border:0;border-radius:50%;background:#0786ad;color:#fff;cursor:pointer;transition:background .15s,transform .15s}.spf-chat-send:hover{transform:translateY(-1px);background:#075577}.spf-chat-send svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.spf-chat-footer-note{flex:0 0 auto;padding:0 12px 10px;background:#fff;color:#8799a0;text-align:center;font-size:9px;line-height:1.3}
@media(max-width:680px){.spf-chat-launcher{right:14px;bottom:82px;width:58px;height:58px;min-height:58px;justify-content:center;padding:0;border-radius:50%}.spf-chat-launcher-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.spf-chat-launcher-icon{width:34px;height:34px;border:0;background:transparent}.spf-chat-launcher-dot{top:5px;left:6px}.spf-chat-panel{right:12px;bottom:151px;width:calc(100vw - 24px);height:min(570px,calc(100dvh - 170px));min-height:330px;border-radius:19px}.spf-chat-header{padding:14px}.spf-chat-log{padding:14px 12px 10px}.spf-chat-intro{padding:9px 13px}}
@media(max-height:570px) and (max-width:680px){.spf-chat-panel{height:calc(100dvh - 120px);bottom:82px}.spf-chat-launcher{bottom:12px}}
@media(prefers-reduced-motion:reduce){.spf-chat-launcher,.spf-chat-panel,.spf-chat-choice,.spf-chat-send{transition:none}.spf-chat-typing i{animation:none}}
