/* MCHILS EBX public sales chat — namespace isolated from the main website. */
#ebx-chat-launch{position:fixed;right:18px;bottom:19px;z-index:2147482000;display:flex;align-items:center;gap:11px;background:linear-gradient(130deg,#f3dba5,#bc914a);color:#182432;border:1px solid #f5e4c0;border-radius:40px;padding:7px 16px 7px 7px;box-shadow:0 12px 44px #0009;font:800 13px/1.2 system-ui,-apple-system,Segoe UI,sans-serif;cursor:pointer;min-height:53px}
#ebx-chat-launch:hover{filter:brightness(1.1)}
#ebx-chat-launch img{width:42px;height:42px;border-radius:50%;object-fit:cover;object-position:center 28%;border:2px solid #fff0ca}
#ebx-chat-launch .ebx-live-dot{display:inline-block;width:8px;height:8px;background:#178853;border-radius:50%;box-shadow:0 0 0 3px #1c9c5238;margin-right:7px;vertical-align:middle}
#ebx-chat-window{position:fixed;right:19px;bottom:84px;z-index:2147482001;width:min(410px,calc(100vw - 22px));height:min(630px,calc(100dvh - 108px));display:flex;flex-direction:column;background:#102338;color:#f1f4f8;border:1px solid #738294;border-radius:20px;box-shadow:0 24px 70px #000b;overflow:hidden;font:13px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}
#ebx-chat-window[hidden]{display:none!important}
#ebx-chat-window *{box-sizing:border-box}
#ebx-chat-window .ebx-chat-head{display:flex;gap:11px;align-items:center;background:#172e40;padding:13px 15px;border-bottom:1px solid #425668}
#ebx-chat-window .ebx-chat-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover}
#ebx-chat-window .ebx-chat-title{flex:1;min-width:0}
#ebx-chat-window .ebx-chat-title strong{display:block;font-size:16px;color:#f4d998}
#ebx-chat-window .ebx-chat-title span{display:block;font-size:10px;color:#c1ced9}
#ebx-chat-window button{cursor:pointer;font-family:inherit}
#ebx-chat-window .ebx-chat-close{border:0;background:transparent;color:#eef4f9;font-size:26px;line-height:1;width:34px;height:34px}
#ebx-chat-window .ebx-chat-log{flex:1;min-height:150px;overflow-y:auto;padding:13px;background:#0c1b2a;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin}
#ebx-chat-window .ebx-chat-bubble{max-width:94%;padding:11px 13px;border-radius:14px;overflow-wrap:anywhere;white-space:pre-wrap;font-size:12px;line-height:1.55}
#ebx-chat-window .ebx-chat-bubble small{display:block;font-weight:850;font-size:9px;margin-bottom:3px;opacity:.72}
#ebx-chat-window .ebx-chat-bubble.visitor{align-self:flex-end;color:#243140;background:#e8d09d}
#ebx-chat-window .ebx-chat-bubble.assistant{align-self:flex-start;background:#203d51;color:#f1f4f8}
#ebx-chat-window .ebx-chat-bubble.staff{align-self:flex-start;background:#25524c;color:#effff7}
#ebx-chat-window .ebx-chat-status{font-size:11px;color:#c7d4df;padding:6px 13px 0;min-height:25px}
#ebx-chat-window .ebx-chat-prompts{display:flex;gap:6px;overflow-x:auto;padding:7px 13px;flex-shrink:0;scrollbar-width:thin}
#ebx-chat-window .ebx-chat-prompts button{flex-shrink:0;font-size:10px;color:#e8edf4;background:#1a3448;border:1px solid #557082;border-radius:18px;padding:8px 10px}
#ebx-chat-window .ebx-chat-compose{display:flex;gap:8px;padding:8px 13px 4px}
#ebx-chat-window .ebx-chat-compose textarea{flex:1;min-width:0;min-height:48px;max-height:92px;background:#0a1c2d;color:#fff;border:1px solid #53697d;border-radius:10px;padding:10px;font:13px/1.45 inherit;resize:vertical}
#ebx-chat-window .ebx-chat-compose textarea::placeholder{color:#9cabbc}
#ebx-chat-window .ebx-chat-compose button{background:#edd29a;color:#1d2836;border:0;border-radius:9px;font-weight:900;min-width:63px}
#ebx-chat-window .ebx-chat-compose button:disabled{opacity:.4;cursor:default}
#ebx-chat-window .ebx-chat-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 13px}
#ebx-chat-window .ebx-chat-actions button{border:1px solid #556b7b;border-radius:10px;background:#223c4d;color:#f2f5f8;padding:7px 10px;font-size:11px}
#ebx-chat-window .ebx-chat-actions a{color:#f6daa5;font-weight:800;font-size:11px;text-decoration:none}
#ebx-chat-window .ebx-chat-note{font-size:10px;color:#a6bacb;padding:0 13px 12px;margin:0}
#ebx-chat-launch:focus-visible,#ebx-chat-window :focus-visible{outline:3px solid #ffe1a4;outline-offset:3px}
@media(max-width:520px){#ebx-chat-launch{right:10px;bottom:10px}#ebx-chat-window{left:8px;right:8px;bottom:74px;width:auto;height:min(630px,calc(100dvh - 86px))}}
@media(prefers-reduced-motion:reduce){#ebx-chat-window *{scroll-behavior:auto!important}}
