/* Scoped widget. Existing landing CSS, Pixel and consent rules remain untouched. */
#mabe-chat{--mc-bottom-base:24px;--mc-bottom-extra:0px;position:fixed;right:calc(24px + env(safe-area-inset-right,0px));bottom:calc(var(--mc-bottom-base) + env(safe-area-inset-bottom,0px) + var(--mc-bottom-extra));z-index:900;font-family:Inter,Arial,sans-serif;color:#20162e;line-height:1.5;font-size:14px}
#mabe-chat button{min-height:44px;font:inherit;border:1px solid #e4e1ee;cursor:pointer}
#mabe-chat button:disabled{opacity:.55;cursor:wait}
#mabe-chat :focus-visible{outline:3px solid #915bea;outline-offset:2px}
#mabe-chat .mc-launch{width:56px;height:56px;border:0;border-radius:50%;display:grid;place-items:center;background:#3B176F;color:white;box-shadow:0 8px 28px #3b176f38;transition:transform .15s}
#mabe-chat .mc-launch:hover{transform:translateY(-2px)}
#mc-panel{z-index:1;width:min(390px,calc(100vw - 32px));max-width:calc(100vw - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));height:min(650px,calc(100dvh - 32px));max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;overflow:hidden;background:white;border:1px solid #e4e1ee;border-radius:22px;box-shadow:0 16px 60px #2412382b}
#mabe-chat .mc-head{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:16px 18px;background:#3B176F;color:white;flex-shrink:0}
#mabe-chat .mc-head strong{font-family:Montserrat,Inter,sans-serif;font-size:16px}
#mabe-chat .mc-head span{display:block;font-size:11px;margin-top:4px}
#mabe-chat .mc-close{background:transparent;color:white;border:0;font-size:26px;min-width:44px}
#mabe-chat .mc-notice{background:#f5f0fc;padding:10px 18px;font-size:11px;color:#553674;flex-shrink:0}
#mabe-chat .mc-log{padding:16px 16px 0;overflow:visible;min-height:0}
#mabe-chat .mc-message{max-width:94%;border-radius:14px;padding:12px 14px;background:#f5f3f8;margin-bottom:12px;overflow-wrap:anywhere}
#mabe-chat .mc-message strong{display:block;font-size:10px;margin-bottom:5px;color:#685775}
#mabe-chat .mc-message p{white-space:pre-wrap;font-size:13px;line-height:1.6}
#mabe-chat .mc-user{margin-left:auto;background:#ece3fa}
#mabe-chat .mc-message a{display:block;text-decoration:underline;color:#3B176F;margin-top:10px;min-height:30px}
#mabe-chat .mc-status{font-size:11px;color:#685775;padding:0 16px;min-height:18px}
#mabe-chat .mc-choices{display:flex;flex-wrap:wrap;gap:6px;padding:6px 16px;overflow:visible;flex-shrink:0}
#mabe-chat .mc-choices button{background:white;color:#3B176F;border-radius:12px;padding:8px 11px;font-size:12px;text-align:left}
#mabe-chat .mc-choices button:hover{background:#f5f0fc}
#mabe-chat .mc-form{padding:8px 16px 0;border-top:1px solid #eee8f5;flex-shrink:0}
#mabe-chat .mc-form label{display:block;font-size:12px;margin-bottom:6px}
#mabe-chat .mc-form label span{font-size:10px;color:#685775}
#mabe-chat .mc-compose{display:flex;gap:8px}
#mabe-chat input{min-width:0;width:100%;border:1px solid #b6a7c9;border-radius:10px;padding:10px;font-size:16px;background:white;color:#20162e}
#mabe-chat .mc-compose button{background:#3B176F;color:white;border:0;border-radius:10px;padding:10px 14px}
#mc-error{color:#9d1c39;font-size:12px}
#mabe-chat .mc-tools{display:flex;justify-content:space-between;gap:8px;padding:0 12px 4px;flex-shrink:0}
#mabe-chat .mc-tools button{font-size:11px;border:0;background:none;color:#553674;text-decoration:underline}
@media(max-width:480px){#mabe-chat{--mc-bottom-base:16px;right:calc(16px + env(safe-area-inset-right,0px))}#mabe-chat .mc-launch{width:52px;height:52px}#mc-panel{width:calc(100vw - 16px);max-width:calc(100vw - 16px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));border-radius:16px}#mabe-chat .mc-head{padding:12px!important}}
@media(max-height:600px){#mabe-chat .mc-notice{padding:4px 12px}#mabe-chat .mc-head{padding:6px 12px}#mabe-chat .mc-tools button{min-height:32px}}
@media(prefers-reduced-motion:reduce){#mabe-chat *{transition:none!important}}

/* One scroll container holds transcript and suggested actions; shell/header/footer never scroll. */
#mabe-chat .mc-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding:12px}
#mabe-chat .mc-choices{padding-bottom:12px}
#mabe-chat .mc-status:empty{display:none}
#mabe-chat.mc-compact .mc-head{padding:6px 12px!important}
#mabe-chat.mc-compact .mc-head span{display:none}
#mabe-chat.mc-compact .mc-notice{padding:4px 12px;font-size:10px;line-height:1.3}
#mabe-chat.mc-compact .mc-form{padding-top:4px}
#mabe-chat.mc-compact .mc-tools button{min-height:32px}
/* Deterministic lead form lives within the existing single scroll area. */
#mabe-chat .mc-lead-form{padding:14px 16px;border-top:1px solid #e4e1ee;background:#faf8fd}
#mabe-chat .mc-lead-form h3{font-size:15px;margin-bottom:8px}
#mabe-chat .mc-lead-form p{font-size:12px;margin-bottom:10px}
#mabe-chat .mc-lead-form label{display:block;font-size:12px;margin:10px 0}
#mabe-chat .mc-lead-form input:not([type=checkbox]),#mabe-chat .mc-lead-form select{display:block;width:100%;min-height:44px;margin-top:4px;padding:8px;border:1px solid #b6a7c9;border-radius:8px;font-size:16px;background:white;color:#20162e}
#mabe-chat .mc-lead-form .mc-lead-consent{display:flex;align-items:flex-start;gap:10px;line-height:1.5}
#mabe-chat .mc-lead-consent input{width:20px;height:20px;flex:0 0 20px;margin-top:2px;accent-color:#3b176f}
#mabe-chat .mc-lead-buttons{display:flex;gap:8px;flex-wrap:wrap}
#mabe-chat .mc-lead-buttons button{padding:8px 12px;border-radius:8px;background:#3b176f;color:white}
#mabe-chat .mc-lead-buttons .mc-lead-cancel{background:white;color:#3b176f}
#mabe-chat .mc-lead-status{color:#553674;font-weight:500}
#mabe-chat.mc-lead-active .mc-form{display:none}
