/* ── Customer Support chat widget (2026) ── */
.bchat{--bc-bg:#0c1638;--bc-card:#13214f;--bc-line:rgba(255,255,255,.1);--bc-text:#eef2ff;--bc-mute:rgba(238,242,255,.62);--bc-blue:#3b82f6;--bc-green:#80C341;
  position:fixed;right:22px;bottom:22px;z-index:2000;font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;color:var(--bc-text)}
.bchat *{box-sizing:border-box}
.bchat .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bchat-launch{width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;background:var(--bc-blue);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(59,130,246,.45),0 0 0 4px rgba(59,130,246,.15);transition:transform .2s,box-shadow .2s;margin-left:auto}
.bchat-launch:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(59,130,246,.55),0 0 0 6px rgba(59,130,246,.18)}
.bchat-launch svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bchat-launch .i-close{display:none}
.bchat.open .bchat-launch .i-open{display:none}.bchat.open .bchat-launch .i-close{display:block}

.bchat-panel{position:absolute;right:0;bottom:76px;width:380px;max-width:calc(100vw - 32px);height:600px;max-height:calc(100vh - 120px);background:var(--bc-bg);border:1px solid var(--bc-line);border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.5);display:flex;flex-direction:column;overflow:hidden}
.bchat-panel[hidden]{display:none}
.bchat-head{display:flex;align-items:center;gap:.8rem;padding:1rem 1rem .95rem;border-bottom:1px solid var(--bc-line);background:linear-gradient(180deg,#0f1b45,#0c1638)}
.bchat-avatar{position:relative;width:44px;height:44px;border-radius:50%;background:#1d3170;border:1px solid rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.bchat-avatar svg{width:22px;height:22px;fill:none;stroke:#dfe7ff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bchat-online{position:absolute;right:1px;bottom:1px;width:11px;height:11px;border-radius:50%;background:#22c55e;border:2px solid #0f1b45}
.bchat-ht{flex:1;min-width:0}
.bchat-title{font-size:1.02rem;font-weight:700;color:#fff;line-height:1.2}
.bchat-sub{font-size:.8rem;color:var(--bc-mute);margin-top:.15rem}
.bchat-x{width:34px;height:34px;border:0;background:transparent;color:#cfd8f5;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.bchat-x:hover{background:rgba(255,255,255,.08)}
.bchat-x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

.bchat-body{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.75rem;scroll-behavior:smooth}
.bchat-welcome{background:var(--bc-card);border:1px solid var(--bc-line);border-radius:14px;padding:.95rem 1.05rem}
.bchat-hi{font-weight:700;font-size:.98rem;margin-bottom:.25rem;color:#fff}
.bchat-welcome p{margin:0;font-size:.92rem;line-height:1.55;color:#dfe6fb}

.bchat-form{background:rgba(255,255,255,.03);border:1px solid var(--bc-line);border-radius:14px;padding:.95rem 1rem;display:flex;flex-direction:column;gap:.55rem}
.bchat-form[hidden]{display:none}
.bchat-form-h{font-size:.84rem;line-height:1.5;color:var(--bc-mute);margin-bottom:.15rem}
.bchat-f{display:flex;flex-direction:column;gap:.28rem}
.bchat-f span{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#b9c6ee}
.bchat-f input{width:100%;background:#0a1330;border:1px solid rgba(255,255,255,.14);border-radius:10px;padding:.62rem .75rem;color:#fff;font:inherit;font-size:.9rem;outline:none;transition:border-color .2s,box-shadow .2s}
.bchat-f input:focus{border-color:var(--bc-blue);box-shadow:0 0 0 3px rgba(59,130,246,.22)}
.bchat-f input.bad{border-color:#ef4444}
.bchat-consent{display:flex;gap:.55rem;align-items:flex-start;font-size:.78rem;line-height:1.5;color:var(--bc-mute);margin-top:.2rem;cursor:pointer}
.bchat-consent input{margin-top:.2rem;accent-color:var(--bc-green);width:16px;height:16px;flex-shrink:0}
.bchat-consent a{color:var(--bc-green);text-decoration:underline}
.bchat-err{font-style:normal;font-size:.74rem;color:#fca5a5;min-height:0}
.bchat-err:empty{display:none}
.bchat-start{margin-top:.25rem;background:var(--bc-green);color:#0E173E;border:0;border-radius:10px;padding:.72rem 1rem;font:inherit;font-weight:700;font-size:.9rem;cursor:pointer;transition:filter .2s}
.bchat-start:hover{filter:brightness(1.07)}
.bchat-start[disabled]{opacity:.6;cursor:wait}
.bchat-note{margin:.1rem 0 0;font-size:.72rem;color:rgba(238,242,255,.45);line-height:1.45}

.bchat-log{display:flex;flex-direction:column;gap:.6rem}
.bchat-log:empty{display:none}
.bchat-msg{max-width:86%;padding:.65rem .85rem;border-radius:14px;font-size:.9rem;line-height:1.55;word-wrap:break-word;white-space:normal}
.bchat-msg.bot{align-self:flex-start;background:var(--bc-card);border:1px solid var(--bc-line);border-top-left-radius:5px;color:#e6ecff}
.bchat-msg.me{align-self:flex-end;background:var(--bc-blue);color:#fff;border-top-right-radius:5px}
.bchat-msg a{color:#9fd96a;text-decoration:underline;text-underline-offset:2px}
.bchat-msg.me a{color:#fff}
.bchat-msg strong{color:#fff}
.bchat-msg ul{margin:.3rem 0 0;padding-left:1.1rem}
.bchat-msg.err{background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.35);color:#fecaca}
.bchat-typing{display:inline-flex;gap:4px;align-items:center}
.bchat-typing i{width:7px;height:7px;border-radius:50%;background:#9fb0e0;animation:bchatDot 1.1s infinite ease-in-out}
.bchat-typing i:nth-child(2){animation-delay:.15s}.bchat-typing i:nth-child(3){animation-delay:.3s}
@keyframes bchatDot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

.bchat-chips{display:flex;flex-wrap:wrap;gap:.5rem}
.bchat-chips[hidden]{display:none}
.bchat-chips button{background:transparent;border:1px solid rgba(255,255,255,.22);color:#e6ecff;border-radius:999px;padding:.55rem .95rem;font:inherit;font-size:.86rem;cursor:pointer;transition:all .2s}
.bchat-chips button:hover{border-color:var(--bc-green);color:var(--bc-green)}

.bchat-input{display:flex;gap:.6rem;padding:.85rem;border-top:1px solid var(--bc-line);background:#0b1434}
.bchat-input input{flex:1;min-width:0;background:#0a1330;border:1.5px solid rgba(59,130,246,.55);border-radius:12px;padding:.8rem .9rem;color:#fff;font:inherit;font-size:.92rem;outline:none}
.bchat-input input:focus{border-color:var(--bc-blue);box-shadow:0 0 0 3px rgba(59,130,246,.22)}
.bchat-input input:disabled{border-color:rgba(255,255,255,.12);color:var(--bc-mute)}
.bchat-input input::placeholder{color:rgba(238,242,255,.45)}
.bchat-send{width:48px;border:0;border-radius:12px;background:var(--bc-blue);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.bchat-send:disabled{opacity:.45;cursor:not-allowed}
.bchat-send svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* keep clear of the home page's sticky mobile CTA */
@media(max-width:860px){
  .bchat{right:14px;bottom:14px}
  body:has(.sticky-cta) .bchat{bottom:86px}
  .bchat-launch{width:54px;height:54px}
}
/* phones: full-screen panel */
@media(max-width:520px){
  .bchat.open .bchat-panel{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;border-radius:0;border:0}
  .bchat.open .bchat-launch{display:none}
  .bchat-input input{font-size:16px}  /* stops iOS zoom */
  .bchat-f input{font-size:16px}
}
