.bg-chat-root{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:var(--bg-chat-bottom,20px);z-index:25;font-family:'DM Sans',system-ui,sans-serif;color:#123d39;width:min(360px,calc(100% - 28px));display:flex;flex-direction:column;align-items:flex-end}
.bg-chat-root [hidden]{display:none!important}
.bg-chat-open{display:flex;align-items:center;gap:9px;border:0;border-radius:999px;padding:13px 18px;background:#123d39;color:#fff;box-shadow:0 7px 28px #102d2d55;font:700 14px/1.1 'DM Sans',system-ui,sans-serif;cursor:pointer;min-height:50px}
.bg-chat-open svg{width:22px;height:22px;color:#d9f06c;flex:none}
.bg-chat-panel{width:100%;max-width:100%;max-height:min(570px,calc(100dvh - var(--bg-chat-bottom,20px) - 14px));background:#fff;border:1px solid #cbded6;border-radius:18px;box-shadow:0 14px 48px #102d2d55;display:flex;flex-direction:column;overflow:hidden}
.bg-chat-head{background:#123d39;color:#fff;display:flex;align-items:center;gap:12px;padding:15px 16px}
.bg-chat-title{flex:1;min-width:0}.bg-chat-title strong{display:block;font:800 16px/1.2 Manrope,system-ui,sans-serif}.bg-chat-title small{display:block;color:#d9f06c;font-size:12px;line-height:1.35;margin-top:4px}
.bg-chat-close{width:38px;height:38px;flex:none;border:0;border-radius:50%;background:#275851;color:white;cursor:pointer;font-size:25px;line-height:1}
.bg-chat-content{overflow-y:auto;overscroll-behavior:contain;padding:16px;min-height:0;flex:1}
.bg-chat-intro,.bg-chat-bubble{font-size:14px;line-height:1.5}.bg-chat-intro{padding:12px 14px;border-radius:13px;background:#edf5ee;margin:0 0 12px}
.bg-chat-bubble{padding:11px 13px;border-radius:13px;background:#edf5ee;margin:8px 0;overflow-wrap:anywhere}.bg-chat-bubble.user{background:#d9f06c;margin-left:28px}
.bg-chat-bubble a{display:inline-block;color:#123d39;font-weight:800;margin-top:8px;text-decoration:underline;text-underline-offset:3px}
.bg-chat-choices{display:flex;flex-wrap:wrap;gap:7px;padding:12px 0 2px}.bg-chat-choice{border:1px solid #b8cfc4;border-radius:999px;background:#fff;color:#123d39;padding:8px 11px;font:700 13px/1.3 'DM Sans',system-ui,sans-serif;cursor:pointer}
.bg-chat-choice:hover,.bg-chat-choice:focus-visible{background:#e8f3e8}.bg-chat-root :focus-visible{outline:3px solid #597d1a;outline-offset:2px}
.bg-chat-foot{border-top:1px solid #e1ebe5;padding:10px 16px;font-size:11px;line-height:1.4;color:#4d6b61;background:#fbfcf9}
@media(max-width:400px){.bg-chat-root{right:10px;width:min(360px,calc(100% - 20px))}.bg-chat-panel{max-width:100%}.bg-chat-open{padding:12px 15px}.bg-chat-content{padding:12px}}
/* The chat wrapper spans the screen on small devices; only the actual controls capture clicks. */
.bg-chat-root{pointer-events:none}.bg-chat-root>.bg-chat-open,.bg-chat-root>.bg-chat-panel{pointer-events:auto}
