/* Brand Bloc website chat bubble. */
.bbh-c { position: fixed; bottom: 20px; z-index: 99990; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; display: flex; flex-direction: column; gap: 12px; }
.bbh-c--left { left: 20px; align-items: flex-start; }
.bbh-c--right { right: 20px; align-items: flex-end; }
.bbh-c__btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: #10187a; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 26px rgba(16, 24, 122, .32); }
.bbh-c__btn:hover { background: #0b1150; }
.bbh-c[hidden] { display: none !important; }
.bbh-c__dock { position: relative; display: inline-flex; }
.bbh-c__hide { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #5b6180; color: #fff; font: 700 15px/1 system-ui, sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(10, 14, 63, .3); }
.bbh-c__hide:hover { background: #0a0e3f; }
.bbh-c__hide:focus-visible { outline: 3px solid #ffb81c; outline-offset: 2px; }
.bbh-c--left .bbh-c__hide { right: auto; left: calc(100% - 15px); }
.bbh-c.is-open .bbh-c__hide { display: none; }
.bbh-c__btn:focus-visible { outline: 3px solid #ffb81c; outline-offset: 3px; }
.bbh-c__ic { width: 24px; height: 24px; border-radius: 8px; background: #ffb81c; position: relative; }
.bbh-c__ic::before { content: ""; position: absolute; left: 5px; right: 5px; top: 7px; height: 2px; background: #10187a; border-radius: 2px; box-shadow: 0 5px 0 #10187a; }
.bbh-c.is-open .bbh-c__lbl::after { content: ""; }
.bbh-c__dot { position: absolute; top: 6px; right: 8px; width: 11px; height: 11px; border-radius: 50%; background: #ffb81c; border: 2px solid #10187a; }
.bbh-c__panel { width: min(370px, calc(100vw - 32px)); max-height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(10, 14, 63, .28); border: 1px solid #e4e6ef; }
.bbh-c__panel[hidden] { display: none; }
.bbh-c__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 16px 16px 14px 18px; background: #10187a; color: #fff; }
.bbh-c__head strong { display: block; font-size: 16px; }
.bbh-c__status { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: #cfd3ff; }
.bbh-c__status.is-on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.bbh-c__x { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.bbh-c__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f7f8fc; min-height: 120px; }
.bbh-c__msg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 85%; }
.bbh-c__msg.is-me { align-self: flex-end; align-items: flex-end; }
.bbh-c__bub { background: #fff; border: 1px solid #e4e6ef; border-radius: 4px 14px 14px 14px; padding: 9px 12px; font-size: 14px; line-height: 1.45; color: #1c2047; white-space: pre-wrap; overflow-wrap: anywhere; }
.bbh-c__msg.is-me .bbh-c__bub { background: #10187a; border-color: #10187a; color: #fff; border-radius: 14px 4px 14px 14px; }
.bbh-c__meta { font-size: 11px; color: #5d6283; }
.bbh-c__err { margin: 0; padding: 8px 16px; background: #fdf0ef; color: #7a1610; font-size: 13px; }
.bbh-c__start { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #eef0f5; overflow-y: auto; }
.bbh-c__start label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #23274a; }
.bbh-c__start input, .bbh-c__start textarea, .bbh-c__compose textarea { width: 100%; box-sizing: border-box; border: 1px solid #d9dcea; border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 14px; font-weight: 400; color: #1c2047; background: #fff; }
.bbh-c__start input:focus, .bbh-c__start textarea:focus, .bbh-c__compose textarea:focus { outline: none; border-color: #10187a; box-shadow: 0 0 0 3px rgba(16, 24, 122, .12); }
.bbh-c__hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.bbh-c__send { align-self: flex-start; border: 0; border-radius: 999px; background: #ffb81c; color: #10187a; font: inherit; font-size: 14px; font-weight: 800; padding: 10px 20px; cursor: pointer; }
.bbh-c__send:disabled { opacity: .6; cursor: default; }
.bbh-c__fine { margin: 0; font-size: 11px; color: #5d6283; }
.bbh-c__compose { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid #eef0f5; margin: 0; }
.bbh-c__compose[hidden], .bbh-c__start[hidden] { display: none; }
.bbh-c__compose textarea { resize: none; min-height: 42px; max-height: 120px; }
.bbh-c__compose .bbh-c__send { align-self: auto; height: 42px; padding: 0 18px; }
@media (max-width: 600px) {
  .bbh-c { bottom: 14px; }
  .bbh-c--left { left: 14px; }
  .bbh-c--right { right: 14px; }
  .bbh-c__btn { height: 50px; padding: 0 16px 0 14px; font-size: 14px; }
  .bbh-c.is-open .bbh-c__btn .bbh-c__lbl { display: none; }
}
@media (prefers-color-scheme: dark) {
  .bbh-c__panel { border-color: #2a2f5c; }
}
/* Keep the whole start form reachable on short phone screens. */
.bbh-c__panel { max-height: min(600px, calc(100dvh - 110px)); }
.bbh-c__log { flex: 1 1 auto; min-height: 56px; }
.bbh-c__start { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
