/* B3 Group — compact, premium, no-cost guided chat prototype */
.b3-chat-widget{position:fixed;right:22px;bottom:22px;z-index:1000;font-family:Inter,Arial,sans-serif;color:#f4f3ef}
.b3-chat-launcher{width:54px;height:54px;display:grid;place-items:center;border:1px solid rgba(255,93,105,.78);border-radius:50%;background:linear-gradient(145deg,#e83a49,#a91f2d);color:#fff;cursor:pointer;box-shadow:0 10px 30px #0008,0 0 0 5px rgba(225,45,61,.09);transition:transform .22s ease,box-shadow .22s ease}
.b3-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 13px 34px #0009,0 0 0 6px rgba(225,45,61,.12)}
.b3-chat-launcher svg{width:23px;height:23px;display:block}
.b3-chat-panel{position:absolute;right:0;bottom:68px;width:min(352px,calc(100vw - 28px));max-height:min(490px,calc(100dvh - 112px));display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.13);border-radius:16px;background:linear-gradient(145deg,rgba(40,43,46,.97),rgba(24,26,28,.985));box-shadow:0 22px 70px #000a,0 0 0 1px rgba(237,38,56,.08);backdrop-filter:blur(24px) saturate(125%);-webkit-backdrop-filter:blur(24px) saturate(125%);transform-origin:bottom right;animation:b3ChatIn .18s ease-out}
.b3-chat-panel[hidden]{display:none}
@keyframes b3ChatIn{from{opacity:0;transform:translateY(7px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.b3-chat-head{display:flex;align-items:center;gap:10px;padding:14px 15px;border-bottom:1px solid rgba(255,255,255,.09);background:linear-gradient(110deg,rgba(255,255,255,.045),transparent)}
.b3-chat-mark{width:37px;height:37px;flex:0 0 37px;display:grid;place-items:center;border:1px solid rgba(240,62,78,.58);border-radius:10px;background:linear-gradient(145deg,#d93545,#8f202c);font-weight:900;font-size:12px;letter-spacing:-1px;color:white}
.b3-chat-title{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.b3-chat-title strong{font-size:11px;letter-spacing:1.45px;font-weight:800}.b3-chat-title small{font-size:10px;color:#aeb1b3}.b3-chat-status{width:6px;height:6px;border-radius:50%;background:#91b69a;box-shadow:0 0 0 4px rgba(145,182,154,.1)}
.b3-chat-reset{width:29px;height:29px;border:1px solid rgba(255,255,255,.11);border-radius:8px;background:rgba(255,255,255,.025);color:#b9babc;font-size:19px;line-height:1;cursor:pointer;transition:border-color .18s,color .18s,transform .18s}.b3-chat-reset:hover{border-color:#d83b4a;color:#fff;transform:rotate(-35deg)}
.b3-chat-close{width:29px;height:29px;border:1px solid rgba(255,255,255,.11);border-radius:8px;background:rgba(255,255,255,.025);color:#d7d8d8;font-size:19px;line-height:1;cursor:pointer}.b3-chat-close:hover{border-color:#d83b4a;color:#fff}
.b3-chat-log{display:flex;flex-direction:column;gap:10px;padding:15px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#5c4b4e transparent;min-height:130px}
.b3-chat-message{max-width:92%;padding:11px 12px;border:1px solid rgba(255,255,255,.075);border-radius:3px 12px 12px 12px;background:rgba(255,255,255,.055);color:#e9e8e4;font-size:11.5px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}
.b3-chat-message.user{align-self:flex-end;border-color:rgba(237,57,74,.22);border-radius:12px 3px 12px 12px;background:linear-gradient(135deg,rgba(130,37,47,.8),rgba(88,31,38,.82));color:#fff}
.b3-chat-message a{color:#ff7b86;text-decoration:none;font-weight:700}.b3-chat-message a:hover{text-decoration:underline}
.b3-chat-quick{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}.b3-chat-quick button{padding:7px 9px;border:1px solid rgba(255,255,255,.13);border-radius:999px;background:rgba(255,255,255,.025);color:#e8e7e2;font-size:10px;cursor:pointer;transition:border-color .18s,background .18s}.b3-chat-quick button:hover,.b3-chat-quick-link:hover{border-color:#d83b4a;background:rgba(216,59,74,.1)}
.b3-chat-quick-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;border:1px solid rgba(237,57,74,.42);border-radius:999px;background:rgba(216,59,74,.07);color:#ff7b86!important;font-size:10px;font-weight:700;text-decoration:none;transition:border-color .18s,background .18s}
.b3-chat-compose{display:flex;align-items:flex-end;gap:8px;padding:10px;border-top:1px solid rgba(255,255,255,.085);background:rgba(0,0,0,.13)}
.b3-chat-input{min-width:0;flex:1;resize:none;max-height:90px;min-height:39px;padding:10px 11px;border:1px solid rgba(255,255,255,.12);border-radius:9px;outline:none;background:rgba(255,255,255,.045);color:#fff;font:inherit;font-size:11px;line-height:1.45}.b3-chat-input::placeholder{color:#919597}.b3-chat-input:focus{border-color:rgba(237,57,74,.72);box-shadow:0 0 0 3px rgba(237,57,74,.08)}
.b3-chat-send{width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center;border:1px solid #ef4b5a;border-radius:9px;background:linear-gradient(145deg,#e73b4b,#b52332);color:#fff;cursor:pointer}.b3-chat-send:hover{filter:brightness(1.08)}.b3-chat-send svg{width:17px;height:17px}
.b3-chat-footnote{padding:0 14px 10px;color:#8f9395;font-size:9px;line-height:1.45;background:rgba(0,0,0,.13)}
@media(max-width:600px){.b3-chat-widget{right:14px;bottom:14px}.b3-chat-launcher{width:49px;height:49px}.b3-chat-panel{right:0;bottom:60px;width:min(350px,calc(100vw - 24px));max-height:min(470px,calc(100dvh - 90px));border-radius:14px}.b3-chat-head{padding:12px 13px}.b3-chat-log{padding:13px}.b3-chat-message{font-size:11px}}
@media(prefers-reduced-motion:reduce){.b3-chat-launcher,.b3-chat-panel,.b3-chat-quick button{transition:none;animation:none}}

/* Finishing details: keyboard-friendly composer and safe small-screen viewport. */
.b3-chat-input{overflow-y:auto}
.b3-chat-reset:focus-visible,.b3-chat-close:focus-visible,.b3-chat-launcher:focus-visible,.b3-chat-send:focus-visible,.b3-chat-quick button:focus-visible,.b3-chat-quick-link:focus-visible{outline:2px solid #ff7884;outline-offset:3px}
@media(max-width:600px){.b3-chat-panel{max-height:min(470px,calc(100dvh - 86px));max-height:min(470px,calc(100svh - 86px))}.b3-chat-log{min-height:100px}}


/* Quiet back-to-top control, positioned just above the chatbot launcher. */
.b3-back-to-top{
  position:absolute;right:5px;bottom:64px;width:42px;height:42px;
  display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.14);
  border-radius:50%;background:rgba(35,39,42,.94);color:#c5c8c7;
  box-shadow:0 5px 18px rgba(0,0,0,.3);cursor:pointer;
}
.b3-back-to-top[hidden]{display:none!important}
.b3-back-to-top svg{display:block;width:19px;height:19px}
.b3-back-to-top:hover,.b3-back-to-top:focus-visible{color:#ed2638;outline:none}
.b3-back-to-top:focus-visible{outline:2px solid rgba(237,38,56,.8);outline-offset:3px}
@media(max-width:600px){.b3-back-to-top{right:4px;bottom:59px;width:40px;height:40px}}
