.support-chat{position:fixed;right:20px;bottom:58px;z-index:80;font:14px/1.5 system-ui,sans-serif;color:#183354}
.support-chat [hidden]{display:none!important}
.support-chat .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.support-chat-toggle{display:grid;place-items:center;margin-left:auto;width:62px;height:62px;border:2px solid #cfe0fa;border-radius:50%;background:#fff;padding:4px;box-shadow:0 5px 22px #1734572b;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}.support-chat-toggle:hover{transform:translateY(-2px);box-shadow:0 8px 24px #17345740}.support-chat-toggle:focus-visible{outline:3px solid #ffbd45;outline-offset:3px}.support-chat-toggle .support-chat-icon{width:50px;height:50px;margin:0;border-radius:50%;box-shadow:none}
.support-chat-panel{display:flex;flex-direction:column;width:360px;max-width:calc(100vw - 24px);height:540px;max-height:calc(100dvh - 150px);margin-bottom:10px;background:#fff;border:1px solid #dce6f4;border-radius:20px;box-shadow:0 12px 45px #17345730;overflow:hidden}
.support-chat-header{display:flex;align-items:center;justify-content:space-between;background:#1764ed;color:white;padding:14px 16px}
.support-chat-header small{display:block;opacity:.9}
.support-chat-header button{background:transparent;color:white;border:0;font-size:24px;min-width:44px;min-height:44px;cursor:pointer}
.support-chat-note{font-size:12px;margin:0;padding:10px 14px;background:#f1f6ff;color:#52647c}
.support-chat-log{flex:1;min-height:60px;overflow:auto;padding:8px 14px;overscroll-behavior:contain}
.support-chat-message{white-space:pre-wrap;overflow-wrap:anywhere;background:#f0f5fb;border-radius:14px;padding:10px 12px;margin:8px 20px 8px 0}
.support-chat-message.user{background:#1764ed;color:#fff;margin:8px 0 8px 20px}
.support-chat-message.assistant{position:relative;margin-left:38px;background:#fff;color:#183354;border:1px solid #e5ebf3}
.support-chat-message.assistant::before{content:"";position:absolute;left:-36px;bottom:-2px;width:28px;height:28px;border:1px solid #dce6f4;border-radius:50%;background:#fff url("../images/bobo-mascot.png") center/contain no-repeat;box-shadow:0 2px 6px #17345714}
.support-chat-message.assistant.is-typing::after{content:'▋';display:inline-block;margin-left:2px;color:currentColor;animation:support-chat-caret 1s steps(1,end) infinite}
@keyframes support-chat-caret{50%{opacity:0}}
.support-chat-questions{display:flex;flex-wrap:wrap;gap:5px;padding:6px 12px}
.support-chat-questions button,.support-chat-links button{font:inherit;font-size:12px;background:transparent;border:1px solid #dce6f4;border-radius:16px;padding:6px 9px;cursor:pointer;color:inherit}
.support-chat-status{font-size:12px;color:#a23d19;padding:0 14px;margin:4px 0}
.support-chat-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #dce6f4;align-items:center}
.support-chat-form textarea{flex:1;min-width:0;resize:none;border:1px solid #cad7e8;border-radius:10px;padding:9px;font:inherit;font-size:16px;background:#fff;color:#183354}
.support-chat-form button{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;padding:0;background:#1764ed;color:#fff;border:0;border-radius:14px;cursor:pointer}.support-chat-form button:hover{background:#0d49b8}.support-chat-form button:focus-visible{outline:3px solid #ffbd45;outline-offset:2px}.support-chat-form button svg{display:block}
.support-chat button:disabled{opacity:.55;cursor:wait}
.support-chat-links{display:flex;align-items:center;justify-content:space-between;padding:0 12px 10px;font-size:12px;gap:6px}
.support-chat-links a{color:#1764ed}
.support-chat :focus-visible{outline:3px solid #edac25;outline-offset:2px}
html[data-theme="dark"] .support-chat{color:#e5edf8}
html[data-theme="dark"] .support-chat-panel,html[data-theme="dark"] .support-chat-form textarea{background:#19263a;color:#e5edf8;border-color:#34445a}
html[data-theme="dark"] .support-chat-note{background:#23344c;color:#e5edf8}
html[data-theme="dark"] .support-chat .support-chat-message.assistant{background:#23344c;color:#e5edf8;border-color:#526888}
html[data-theme="dark"] .support-chat .support-chat-message.assistant::before{background-color:#23344c;border-color:#526888}
html[data-theme="dark"] .support-chat-links a{color:#8ec5ff}
html[data-theme="dark"] .support-chat-status{color:#ffc092}
@media(max-width:767px){.support-chat{right:12px;bottom:calc(112px + env(safe-area-inset-bottom))}.support-chat-panel{width:360px;max-height:calc(100dvh - 225px)}.support-chat-toggle{width:60px;height:60px}.support-chat-toggle .support-chat-icon{width:48px;height:48px}}

.support-chat-icon{display:inline-block;vertical-align:middle;flex-shrink:0;width:30px;height:30px;object-fit:cover;border-radius:50%;background:#fff;margin-right:7px;box-shadow:0 1px 5px #17345730}.support-chat-header .support-chat-icon{width:32px;height:32px}

.support-ticket-form{flex:1;min-height:0;overflow:auto;padding:12px 14px;display:flex;flex-direction:column;gap:8px}.support-ticket-form h3,.support-ticket-form p{margin:0}.support-ticket-form p{font-size:12px}.support-ticket-form input,.support-ticket-form textarea{box-sizing:border-box;width:100%;padding:10px;border:1px solid #8b9db5;border-radius:8px;background:#fff;color:#183354;font:inherit;font-size:16px}.support-ticket-form textarea{resize:vertical;min-height:100px}.support-ticket-form>div{display:flex;gap:8px;flex-wrap:wrap}.support-ticket-form button{cursor:pointer;padding:9px;border-radius:8px}.support-chat-log>a{display:block;margin:8px 0;color:#1764ed;text-decoration:underline}html[data-theme="dark"] .support-ticket-form input,html[data-theme="dark"] .support-ticket-form textarea{background:#19263a;color:#e5edf8}html[data-theme="dark"] .support-chat-log>a{color:#8ec5ff}
.support-chat-log .support-ticket-form{overflow:visible;background:#f0f5fb;border:1px solid #cad7e8;border-radius:14px;margin:8px 0;padding:12px}.support-chat-log .support-ticket-form p{color:#52647c}html[data-theme="dark"] .support-chat-log .support-ticket-form{background:#23344c;border-color:#526888}html[data-theme="dark"] .support-chat-log .support-ticket-form p{color:#c3d0e1}

.support-ticket-form a{color:#1764ed;text-decoration:underline}.support-ticket-form button{border:1px solid #8b9db5;background:#fff;color:#183354;font:inherit}.support-ticket-form button[type=submit]{background:#1764ed;color:#fff;border-color:#1764ed}html[data-theme="dark"] .support-ticket-form a{color:#8ec5ff}html[data-theme="dark"] .support-ticket-form button[type=button]{background:#19263a;color:#e5edf8}
.support-chat-window-actions{display:flex;align-items:center;flex-shrink:0;gap:2px}.support-chat-window-actions button:hover{background:#ffffff20;border-radius:8px}

/* Keep the composer and actions visible; only the conversation scrolls. */
.support-chat-panel{box-sizing:border-box}
.support-chat-header,.support-chat-form,.support-chat-links,.support-chat-status{flex:0 0 auto}
.support-chat-log{flex:1 1 0;min-height:0}
.support-chat-questions{flex:0 1 auto;min-height:0;max-height:130px;overflow:auto}
.support-chat-form textarea{box-sizing:border-box;height:64px;min-height:64px;max-height:64px;overflow-y:auto}
.support-chat-links{min-height:42px}

.support-chat-privacy{flex:0 1 auto;max-height:110px;overflow:auto;padding:6px 12px;border-top:1px solid #8b9db555;font-size:11px;line-height:1.4}.support-chat-privacy p{margin:2px 0}.support-chat-privacy a{color:inherit;text-decoration:underline}.support-chat-privacy button{margin:3px 0;border:0;padding:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}
