/* Mr.B — an accessible, brand-matched sitewide BIEC assistant */
:root{--mrb-navy:#102c43;--mrb-teal:#0d827d;--mrb-cream:#f4f8f6}
.mrb-launch{position:fixed;z-index:201;right:19px;bottom:max(20px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:11px;border:1px solid rgba(255,255,255,.3);border-radius:999px;background:linear-gradient(135deg,#102a42,#19506a);color:#fff;padding:11px 17px 11px 10px;font-weight:750;font-size:14px;box-shadow:0 13px 40px rgba(8,32,51,.26);cursor:pointer;transition:transform .22s ease,box-shadow .22s ease}.mrb-launch:hover{transform:translateY(-3px);box-shadow:0 16px 42px rgba(8,32,51,.33)}.mrb-launch[hidden]{display:none!important}.mrb-avatar{flex-shrink:0;display:grid;place-items:center;background:#f4c76a;color:#132b41;width:38px;height:38px;border-radius:50%;font-family:Georgia,serif;font-size:22px;font-weight:900;box-shadow:inset 0 0 0 2px #f9e4b0}.mrb-launch:before{content:'';width:9px;height:9px;background:#8be3c7;border:2px solid #12344b;border-radius:50%;position:absolute;left:41px;top:8px}.mrb-launch span.mrb-launch-label{white-space:nowrap}.mrb-window{position:fixed;z-index:202;right:19px;bottom:max(19px,env(safe-area-inset-bottom));width:min(410px,calc(100vw - 26px));height:min(640px,calc(100dvh - 35px));display:flex;flex-direction:column;overflow:hidden;border-radius:24px;background:#fff;color:#17354a;border:1px solid #d6e5e7;box-shadow:0 25px 75px rgba(11,39,58,.32);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}.mrb-window[hidden]{display:none!important}.mrb-head{display:flex;align-items:center;gap:11px;background:linear-gradient(105deg,#0b263c,#16546a);padding:15px;color:#fff}.mrb-head .mrb-avatar{width:42px;height:42px;font-size:24px}.mrb-head-copy{min-width:0;flex:1}.mrb-head-copy strong{font-size:17px;letter-spacing:-.02em;display:block}.mrb-head-copy small{color:#c9e4e6;font-size:10px;display:block;margin-top:4px;line-height:1.3}.mrb-head button{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;border-radius:50%;width:33px;height:33px;font-size:22px;display:grid;place-items:center;cursor:pointer}.mrb-notice{padding:9px 14px;background:#fff8e6;border-bottom:1px solid #f4e9c8;color:#6b572c;font-size:11px;line-height:1.45}.mrb-messages{background:linear-gradient(160deg,#f5f9f8,#edf5f5);padding:15px;flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}.mrb-bubble{max-width:91%;padding:12px 14px;border-radius:17px;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 3px 10px rgba(12,46,60,.035)}.mrb-bubble.bot{align-self:flex-start;background:#fff;color:#1c3c4b;border:1px solid #e1eaeb;border-bottom-left-radius:5px}.mrb-bubble.visitor{align-self:flex-end;background:#d1efe8;color:#134542;border:1px solid #c4e7dc;border-bottom-right-radius:5px}.mrb-suggestions{display:flex;flex-wrap:wrap;gap:7px}.mrb-suggestions button{border:1px solid #a7d6ce;background:#fff;color:#0d6e6c;border-radius:999px;padding:8px 11px;font-size:11px;font-weight:750;cursor:pointer;transition:background .18s}.mrb-suggestions button:hover{background:#daf1ec}.mrb-references{display:flex;flex-wrap:wrap;gap:7px;margin-top:-7px}.mrb-references a{display:inline-flex;align-items:center;gap:6px;border:1px solid #c4dadb;background:#fff;color:#0a7170;font-size:11px;border-radius:9px;padding:8px 10px;font-weight:760;text-decoration:none}.mrb-form{padding:10px 12px 9px;background:#fff;border-top:1px solid #e0eaeb}.mrb-input-row{display:flex;gap:8px}.mrb-input-row textarea{flex:1;resize:none;min-width:0;height:45px;max-height:100px;box-sizing:border-box;border:1px solid #cfdfe2;border-radius:13px;background:#fff;padding:12px;color:#1b3c50;font-family:inherit;font-size:13px;line-height:1.4}.mrb-input-row textarea:focus{border-color:#0e948d;outline:2px solid #c1e6e0;outline-offset:0}.mrb-input-row button{width:45px;flex-shrink:0;border:0;border-radius:13px;background:#0e354e;color:#fff;cursor:pointer;font-size:20px}.mrb-input-row button:disabled{opacity:.5;cursor:default}.mrb-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.mrb-tools a,.mrb-tools button{color:#2b6570;font-size:11px;text-decoration:none;font-weight:700}.mrb-tools button{border:0;background:none;cursor:pointer}.mrb-privacy{color:#788b90;font-size:9px;line-height:1.4;margin:8px 2px 0}.mrb-links-label{font-size:10px;color:#71858e;line-height:1.2}
@media(max-width:540px){.mrb-launch{right:13px;bottom:max(13px,env(safe-area-inset-bottom))}.mrb-window{right:6px;bottom:6px;width:calc(100vw - 12px);height:min(660px,calc(100dvh - 12px));border-radius:18px}.mrb-messages{padding:13px}.mrb-head{padding:13px}}
@media(prefers-reduced-motion:reduce){.mrb-launch,.mrb-suggestions button{transition:none!important}}

/* First contact application interview + consent handover */
.mrb-progress{background:#e5f4ef;border-bottom:1px solid #c4e7db;color:#155b59;font-size:11px;font-weight:800;padding:9px 15px;letter-spacing:.025em}
.mrb-handoff{align-self:stretch;border:1px solid #badad5;border-radius:16px;background:#fff;padding:16px;box-shadow:0 6px 24px rgba(20,50,60,.07);font-size:12px;line-height:1.65}
.mrb-handoff strong{font-size:14px;color:#183c4e}.mrb-handoff p{margin:7px 0 12px;color:#516875}.mrb-handoff details{border-top:1px solid #deebea;border-bottom:1px solid #deebea;padding:8px 0;margin:7px 0 11px}.mrb-handoff summary{cursor:pointer;color:#0d7775;font-weight:750}.mrb-handoff pre{font-family:inherit;overflow-wrap:anywhere;white-space:pre-wrap;font-size:11px;max-height:165px;overflow:auto;color:#506d78}
.mrb-opt-in{display:flex;align-items:flex-start;gap:9px;cursor:pointer;padding:9px 0;color:#355363;font-size:11px}.mrb-opt-in input{margin:3px 0 0;width:17px;height:17px;accent-color:#117d75;flex-shrink:0}
.mrb-share{border:0;background:#107d6c;color:white;border-radius:12px;padding:12px 14px;font-size:12px;font-weight:800;cursor:pointer;width:100%}.mrb-share:disabled{opacity:.45;cursor:not-allowed}.mrb-restart{display:block;border:0;background:transparent;color:#176b7c;margin:9px auto 0;font-size:11px;font-weight:700;cursor:pointer}
.biec-ai-cta{background:#e9c77c!important;color:#163e51!important;border-color:#e9c77c!important}

/* Mr.B AI user consent & enquiry link */
.mrb-ai-consent{border:1px solid #bfd9df;background:#f1f9f8;border-radius:12px;margin:12px 0;padding:14px}
.mrb-secure-link{display:block;text-align:center;font-weight:800;font-size:12px;color:#146a7b;text-decoration:underline;margin:13px 0 8px}
