#bmg-chat{position:fixed;right:32px;bottom:112px;z-index:99999;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.45;color:#182024}
#bmg-chat *,#bmg-chat *:before,#bmg-chat *:after{box-sizing:border-box}
#bmg-chat button,#bmg-chat input{font:inherit}
#bmg-chat button{cursor:pointer}
#bmg-chat [hidden]{display:none!important}
#bmg-chat .bmg-chat-launch{display:flex;align-items:center;justify-content:center;gap:11px;border:1px solid #ffffff35;background:#191e22;color:#fff;border-radius:6px;padding:15px 21px;min-width:168px;font-weight:700;box-shadow:0 10px 35px #0002}
#bmg-chat .bmg-chat-launch svg{width:23px;height:23px}
#bmg-chat .bmg-chat-launch:hover{background:#bd1527}
#bmg-chat-panel{position:absolute;right:0;bottom:69px;width:370px;max-width:calc(100vw - 32px);height:525px;max-height:calc(100dvh - 210px);display:flex;flex-direction:column;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 15px 70px #0004;border:1px solid #d8dddd}
#bmg-chat .bmg-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#181e22;border-bottom:3px solid #da1a2f;padding:18px;color:#fff;flex-shrink:0}
#bmg-chat .bmg-chat-head strong{display:block;font-size:20px;letter-spacing:.5px;color:#fff}
#bmg-chat .bmg-chat-head span{display:block;font-size:12px;color:#c9d1d4;margin-top:3px}
#bmg-chat .bmg-chat-close{background:transparent;color:#fff;border:0;font-size:28px;line-height:1;padding:5px 10px;border-radius:4px}
#bmg-chat .bmg-chat-messages{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:75px;padding:16px;background:#f5f6f5;scroll-behavior:smooth}
#bmg-chat .bmg-chat-message{margin:0 0 12px;padding:12px 14px;border-radius:10px;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;max-width:94%;color:#20262a}
#bmg-chat .bmg-chat-bot{background:#fff;border:1px solid #e4e6e4;border-top-left-radius:2px}
#bmg-chat .bmg-chat-user{background:#262e32;color:#fff;margin-left:auto;border-top-right-radius:2px}
#bmg-chat .bmg-chat-form{display:flex;gap:8px;padding:12px 14px 8px;margin:0;border-top:1px solid #e3e6e5;background:#fff}
#bmg-chat #bmg-chat-input{display:block;width:100%;min-width:0;height:42px;padding:10px;border:1px solid #cad0d1;border-radius:5px;color:#182024;background:#fff;box-shadow:none}
#bmg-chat .bmg-chat-form button{border:0;background:#d21b2e;color:#fff;border-radius:5px;flex:0 0 42px;font-size:22px;font-weight:700;padding:5px}
#bmg-chat .bmg-chat-form button:disabled{opacity:.45;cursor:wait}
#bmg-chat .bmg-chat-disclosure{font-size:10px;line-height:1.5;color:#647176;padding:0 15px;margin:0 0 9px}
#bmg-chat footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 15px 12px;background:#fff;border-top:1px solid #edf0ed}
#bmg-chat .bmg-chat-wa{font-size:11px;color:#117c52;text-decoration:none;font-weight:700}
#bmg-chat .bmg-chat-wa-highlight{background:#e0f4e9;padding:7px;border-radius:4px}
#bmg-chat .bmg-chat-credit{font-size:10px;color:#7f898e;text-decoration:none}
#bmg-chat :focus-visible{outline:3px solid #e0394c;outline-offset:2px}
#bmg-chat .bmg-chat-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){#bmg-chat{right:16px;bottom:91px}#bmg-chat .bmg-chat-launch{min-width:130px;padding:11px 16px;font-size:13px}#bmg-chat-panel{bottom:58px;width:355px;max-height:calc(100dvh - 168px);height:490px}#bmg-chat #bmg-chat-input{font-size:16px}#bmg-chat .bmg-chat-head{padding:13px 15px}#bmg-chat .bmg-chat-disclosure{font-size:10px}}
/* La tienda conserva su WhatsApp y su barra inferior originales. */
body.bsasmg-woo-page #bmg-chat{right:15px;bottom:158px}
body.bsasmg-woo-page #bmg-chat-panel{max-height:calc(100dvh - 246px)}
@media(max-width:600px){body.bsasmg-woo-page #bmg-chat{right:12px;bottom:154px}body.bsasmg-woo-page #bmg-chat-panel{max-height:calc(100dvh - 232px)}}
@media(prefers-reduced-motion:reduce){#bmg-chat .bmg-chat-messages{scroll-behavior:auto}}
