.sysco-chat{position:fixed;right:24px;bottom:24px;z-index:55;color:#192c49;font:14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif}
.sysco-chat[hidden],.sysco-chat-panel[hidden],.sysco-chat-intake[hidden],.sysco-chat-messages[hidden],.sysco-chat-composer[hidden],.sysco-chat-error[hidden]{display:none!important}
.sysco-chat-launcher{display:flex;align-items:center;gap:10px;border:0;border-radius:999px;padding:14px 20px;background:#245bb5;color:white;font:inherit;font-size:14px;font-weight:700;line-height:1.2;box-shadow:0 12px 32px #06172b3b;cursor:pointer}
.sysco-chat-launcher span:first-child{font-size:18px}
.sysco-chat-panel{position:absolute;right:0;bottom:70px;display:flex;flex-direction:column;width:min(380px,calc(100vw - 28px));height:min(590px,calc(100dvh - 140px));min-height:390px;overflow:hidden;background:#fff;border:1px solid #d8e2f0;border-radius:18px;box-shadow:0 22px 70px #06172b40}
.sysco-chat-header{display:flex;align-items:center;gap:11px;padding:15px;background:#102443;color:#fff}
.sysco-chat-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#2e68bf;color:#fff;font-weight:800;font-size:18px}
.sysco-chat-header div{display:grid;gap:2px;min-width:0}.sysco-chat-header strong{font-size:14px}.sysco-chat-header small{color:#c2d0e2;font-size:11px}
.sysco-chat-close{margin-left:auto;width:34px;height:34px;border:0;border-radius:50%;background:#ffffff18;color:white;font-size:24px;line-height:1;cursor:pointer}
.sysco-chat-body{flex:1;overflow:auto;padding:16px;background:#f4f7fb;overscroll-behavior:contain}
.sysco-chat-intro,.sysco-chat-messages{display:flex;flex-direction:column;gap:10px}
.sysco-chat-bubble{max-width:90%;margin:0;padding:11px 13px;border-radius:13px 13px 13px 4px;background:#fff;color:#233751;box-shadow:0 2px 9px #17345a0d;white-space:pre-wrap;overflow-wrap:anywhere}
.sysco-chat-options{display:grid;gap:8px;margin-top:3px}.sysco-chat-options button{padding:11px 12px;border:1px solid #c6d6eb;border-radius:11px;background:white;color:#214f91;text-align:left;font:inherit;font-size:13px;font-weight:600;cursor:pointer}.sysco-chat-options button:hover{background:#e8f0fb;border-color:#8baedc}
.sysco-chat-intake{display:grid;gap:9px;margin-top:12px}.sysco-chat-intake>input,.sysco-chat-intake>select,.sysco-chat-composer input{min-width:0;width:100%;padding:11px 12px;border:1px solid #ced8e5;border-radius:10px;background:#fff;color:#192c49;font:inherit}.sysco-chat-intake>input:focus,.sysco-chat-intake>select:focus,.sysco-chat-composer input:focus{outline:3px solid #9dbef0;outline-offset:1px}
.sysco-chat-consent{display:flex;align-items:flex-start;gap:8px;color:#53657c;font-size:11px;line-height:1.45}.sysco-chat-consent input{margin:2px 0 0;accent-color:#245bb5;flex:0 0 auto}.sysco-chat-submit,.sysco-chat-composer button{border:0;border-radius:10px;padding:11px 14px;background:#245bb5;color:white;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.sysco-chat-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.sysco-chat-message{align-self:flex-start;max-width:88%;padding:9px 11px;border-radius:12px 12px 12px 4px;background:#fff;color:#233751;box-shadow:0 2px 9px #17345a0d;white-space:pre-wrap;overflow-wrap:anywhere}.sysco-chat-message.cliente{align-self:flex-end;background:#dcecff;border-radius:12px 12px 4px 12px}.sysco-chat-message.agente{background:#e3f3ea}.sysco-chat-message time{display:block;margin-top:4px;color:#728198;font-size:10px;text-align:right}
.sysco-chat-error{margin:9px 0 0;padding:9px 11px;border-radius:9px;background:#fff0f0;color:#a72a38;font-size:12px}
.sysco-chat-composer{display:flex;gap:8px;padding:10px 12px;background:#fff;border-top:1px solid #e0e6ee}.sysco-chat-composer button{flex:0 0 auto}
.sysco-chat-privacy{margin:0;padding:0 13px 10px;background:#fff;color:#728198;font-size:10px}
@media(max-width:760px){.sysco-chat{right:14px;bottom:92px}.sysco-chat-panel{position:fixed;right:12px;bottom:86px;width:min(380px,calc(100vw - 24px));height:min(590px,calc(100dvh - 110px));min-height:360px}.sysco-chat-launcher{padding:12px 16px}}
@media(prefers-reduced-motion:reduce){.sysco-chat *{scroll-behavior:auto}}

/* Keep the floating chat in step with the public site's theme toggle. */
.sysco-chat{--chat-ink:#202a35;--chat-muted:#64717d;--chat-panel:#fff;--chat-body:#f5f6f7;--chat-border:#dfe4e8;--chat-input:#fff;--chat-client:#fff0e5;--chat-agent:#e3f3ea;--chat-accent:#ed6a14;--chat-accent-hover:#d95708;color:var(--chat-ink)}
.sysco-chat-launcher,.sysco-chat-avatar,.sysco-chat-submit,.sysco-chat-composer button{background:var(--chat-accent)}
.sysco-chat-launcher:hover,.sysco-chat-submit:hover,.sysco-chat-composer button:hover{background:var(--chat-accent-hover)}
.sysco-chat-panel{background:var(--chat-panel);border-color:var(--chat-border)}
.sysco-chat-header{background:#202a35}
.sysco-chat-body{background:var(--chat-body)}
.sysco-chat-bubble,.sysco-chat-message{background:var(--chat-panel);color:var(--chat-ink)}
.sysco-chat-options button{background:var(--chat-panel);color:var(--chat-ink);border-color:var(--chat-border)}
.sysco-chat-options button:hover{background:var(--chat-body);border-color:var(--chat-accent)}
.sysco-chat-intake>input,.sysco-chat-intake>select,.sysco-chat-composer input{background:var(--chat-input);color:var(--chat-ink);border-color:var(--chat-border)}
.sysco-chat-intake>input:focus,.sysco-chat-intake>select:focus,.sysco-chat-composer input:focus{outline-color:color-mix(in srgb,var(--chat-accent) 45%,transparent)}
.sysco-chat-consent,.sysco-chat-message time,.sysco-chat-privacy{color:var(--chat-muted)}
.sysco-chat-consent input{accent-color:var(--chat-accent)}
.sysco-chat-message.cliente{background:var(--chat-client)}
.sysco-chat-message.agente{background:var(--chat-agent)}
.sysco-chat-composer{background:var(--chat-panel);border-color:var(--chat-border)}
.sysco-chat-privacy{background:var(--chat-panel)}
:root[data-theme="dark"] .sysco-chat{--chat-ink:#e1e3e5;--chat-muted:#a8afb4;--chat-panel:#101316;--chat-body:#080a0c;--chat-border:#30383c;--chat-input:#090b0d;--chat-client:#12383a;--chat-agent:#183e32;--chat-accent:#009b9e;--chat-accent-hover:#00afb2;color-scheme:dark}
:root[data-theme="dark"] .sysco-chat-header{background:#050607}
:root[data-theme="dark"] .sysco-chat-close{background:#ffffff20}
:root[data-theme="dark"] .sysco-chat-error{background:#3a171a;color:#ffc3c8}
