#bnx-support{position:fixed;bottom:22px;right:22px;z-index:99999;font:14px/1.45 system-ui,-apple-system,'Segoe UI',sans-serif;color:#122a44;box-sizing:border-box}#bnx-support *{box-sizing:border-box}#bnx-support [hidden]{display:none!important}#bnx-open{display:flex;align-items:center;gap:10px;background:linear-gradient(115deg,#086de8,#00b9e6);border:1px solid #5de3ff;border-radius:40px;color:white;padding:14px 18px;font:700 14px system-ui;box-shadow:0 10px 35px #006acb55;cursor:pointer}#bnx-open i{font-size:18px}.bnx-open-dot,.bnx-status-dot{width:8px;height:8px;border-radius:50%;background:#2de3a2;display:inline-block;box-shadow:0 0 0 3px #2de3a233}#bnx-chat{width:min(410px,calc(100vw - 24px));height:min(630px,calc(100dvh - 80px));min-height:380px;background:#fff;border:1px solid #d8e5f2;border-radius:22px;box-shadow:0 20px 70px #001b3e55;overflow:hidden;display:flex;flex-direction:column}#bnx-chat .bnx-head{display:flex;align-items:center;gap:12px;background:linear-gradient(115deg,#063b85,#0875da);color:white;padding:18px 18px;min-height:82px}.bnx-head-icon{width:42px;height:42px;display:grid;place-items:center;background:#ffffff25;border:1px solid #ffffff40;border-radius:14px;font-size:21px}.bnx-head-copy{display:flex;flex-direction:column;gap:3px;flex:1}.bnx-head-copy strong{font-size:16px;color:white}.bnx-head-copy span{font-size:12px;color:#dbf4ff;display:flex;gap:8px;align-items:center}#bnx-minimize{border:1px solid #ffffff55;background:#ffffff1c;color:white;border-radius:10px;width:34px;height:34px;font-size:25px;line-height:1;cursor:pointer}#bnx-chat .bnx-guest{padding:25px;flex:1;display:flex;flex-direction:column;justify-content:center;overflow:auto}.bnx-welcome-icon{width:48px;height:48px;border-radius:16px;background:#e9f6ff;color:#0873d5;display:grid;place-items:center;font-size:25px;margin-bottom:12px}#bnx-chat h3{font-size:23px;line-height:1.2;margin:0 0 8px;color:#102b48}#bnx-chat p{color:#63768c;margin:0 0 16px}#bnx-start{display:grid;gap:10px;margin-top:10px}#bnx-start label{font-weight:700;color:#28465f;font-size:13px;margin-top:4px}#bnx-start input,#bnx-start select{height:46px;width:100%;border:1px solid #cddceb;border-radius:11px;background:white;color:#17314b;padding:0 13px;font:inherit;outline-offset:2px}.bnx-primary{width:100%;border:0;border-radius:11px;background:#0876e5;color:white;padding:14px 16px;font-weight:750;font-size:14px;cursor:pointer;margin-top:9px;display:flex;justify-content:space-between;align-items:center}.bnx-primary:disabled{opacity:.6;cursor:wait}#bnx-guest small{color:#7b8fa3;margin-top:17px;font-size:11px}#bnx-conversation{flex:1;min-height:0;display:flex;flex-direction:column}.bnx-chat-tools{height:49px;border-bottom:1px solid #e7edf5;display:flex;align-items:center;justify-content:space-between;padding:0 17px;background:#f8fbff}.bnx-chat-tools span{font-weight:750;color:#25415e}.bnx-chat-tools button{border:1px solid #d3e0ed;background:white;border-radius:8px;padding:7px 11px;color:#4b6177;font-weight:650;cursor:pointer}#bnx-messages{padding:19px 14px;flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:16px;overscroll-behavior:contain;background:linear-gradient(#f8fbff,#fff)}.bnx-msg-row{display:flex;gap:8px;align-items:flex-end;max-width:94%}.bnx-msg-row.visitor{align-self:flex-end;flex-direction:row-reverse}.bnx-msg-avatar{width:29px;height:29px;flex:0 0 29px;border-radius:50%;background:#dceeff;color:#075eb4;display:grid;place-items:center;font-size:12px;font-weight:800;overflow:hidden}.bnx-msg-avatar img{width:100%;height:100%;object-fit:cover}.bnx-msg-row.visitor .bnx-msg-avatar{background:#dce4ef;color:#29445d}.bnx-msg-bubble{background:white;border:1px solid #e0e9f2;border-radius:15px 15px 15px 4px;padding:10px 12px;box-shadow:0 2px 6px #122f4d09;display:grid;gap:4px;min-width:0;overflow-wrap:anywhere;white-space:pre-wrap;color:#29425b}.bnx-msg-bubble strong{font-size:11px;color:#0872c9}.bnx-msg-row.visitor .bnx-msg-bubble{background:#0876df;color:white;border-color:#0876df;border-radius:15px 15px 4px 15px}.bnx-msg-row.visitor .bnx-msg-bubble strong{color:#d7f4ff}#bnx-typing{padding:5px 17px;color:#47708d;font-size:12px;display:flex;gap:8px;align-items:center}.bnx-dots{display:flex;gap:3px}.bnx-dots i{width:5px;height:5px;border-radius:50%;background:#0876df;animation:bnxDot 1.1s infinite alternate}.bnx-dots i:nth-child(2){animation-delay:.2s}.bnx-dots i:nth-child(3){animation-delay:.4s}@keyframes bnxDot{to{opacity:.2;transform:translateY(-3px)}}#bnx-send{display:flex;align-items:center;gap:9px;margin:0 13px;padding:8px;border:1px solid #d5e2ee;border-radius:13px;background:white}#bnx-input{flex:1;min-width:0;background:white;color:#16324b;border:0;outline:0;padding:8px;font:inherit}#bnx-send button{border:0;background:#0876e5;color:white;width:39px;height:39px;flex:0 0 39px;border-radius:10px;font-size:18px;cursor:pointer}#bnx-send button:disabled{opacity:.55}#bnx-chat .bnx-disclaimer{text-align:center;font-size:10px;color:#8595a7;margin:7px 10px 11px}#bnx-finished{flex:1;padding:26px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.bnx-finish-icon{background:#e2f9ee;color:#16965a;border-radius:50%;width:62px;height:62px;display:grid;place-items:center;font-size:30px;margin-bottom:18px}#bnx-finished p{max-width:285px}#bnx-stars{display:flex;gap:5px;margin:7px 0 10px}#bnx-stars button{border:0;background:none;color:#ccd6e2;font-size:35px;cursor:pointer;padding:2px;line-height:1.2}#bnx-stars button:hover,#bnx-stars button:focus,#bnx-stars button.selected{color:#ffb62b}#bnx-rating-label{color:#63768c;font-size:12px}#bnx-rating-status{font-size:13px;color:#0876d5;margin:12px 0!important}#bnx-finished .bnx-primary{margin-top:24px}#bnx-error{position:absolute;bottom:12px;left:12px;right:12px;background:#fff0f0;color:#a32929;border:1px solid #e7aaaa;border-radius:10px;padding:11px;font-size:12px;box-shadow:0 4px 18px #0002}@media(max-width:480px){#bnx-support{right:12px;bottom:12px}#bnx-chat{width:calc(100vw - 24px);height:min(680px,calc(100dvh - 24px));border-radius:17px}}@media(prefers-reduced-motion:reduce){.bnx-dots i{animation:none}}

/* Five-face customer satisfaction selector (uses existing 1-5 ratings API). */
#bnx-faces{display:flex;justify-content:center;gap:8px;margin:12px 0 14px;flex-wrap:nowrap;width:100%}
#bnx-faces button{display:grid;place-items:center;width:52px;height:54px;border:2px solid transparent;border-radius:15px;background:#f0f5fb;font-size:29px;line-height:1;cursor:pointer;transition:transform .15s ease,border-color .15s ease,background .15s ease;padding:4px}
#bnx-faces button:hover,#bnx-faces button:focus-visible{transform:translateY(-3px);background:#e6f3ff;border-color:#71b8f5;outline-offset:2px}
#bnx-faces button.selected{background:#d9f1ff;border-color:#0876e5;box-shadow:0 0 0 2px #0876e522}
#bnx-faces button:disabled{cursor:default}
@media(max-width:380px){#bnx-faces{gap:4px}#bnx-faces button{width:45px;height:48px;font-size:25px}}
@media(prefers-reduced-motion:reduce){#bnx-faces button{transition:none}}

.bnx-visitor-voice{padding:9px 13px;border-bottom:1px solid #dce8f3;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.bnx-visitor-voice button{border:0;border-radius:9px;background:#076bd6;color:white;padding:8px 11px;cursor:pointer}.bnx-visitor-voice #bnx-voice-leave{background:#bd2945}.bnx-visitor-voice span{font-size:12px;color:#526579}.bnx-visitor-voice audio{max-width:100%}
