/* Blues Brothers chatbot — dark retro design, independent from existing site CSS. */
.bb-chat-toggle{position:fixed;right:22px;bottom:22px;z-index:85;display:flex;gap:9px;align-items:center;border:1px solid #d9bc80;border-radius:999px;padding:13px 19px;background:#102a42;color:#fff5df;font:700 15px/1.2 system-ui,sans-serif;box-shadow:0 8px 32px #080d1270;cursor:pointer}
.bb-chat-toggle:hover{background:#193a55}.bb-chat-toggle span:first-child{font-size:21px;color:#e7ca83}
.bb-chat-panel{position:fixed;z-index:86;right:20px;bottom:85px;width:min(390px,calc(100vw - 30px));height:min(570px,calc(100dvh - 112px));display:flex;flex-direction:column;background:#f9f4e9;color:#16202d;border:2px solid #bd9651;border-radius:16px;overflow:hidden;box-shadow:0 20px 70px #050b15a6;font:14px/1.4 system-ui,sans-serif}
.bb-chat-panel[hidden]{display:none!important}.bb-chat-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;background:#102a42;color:#fdf3d9;padding:18px 18px 14px}
.bb-chat-heading small{display:block;letter-spacing:.18em;color:#d9bd80;font-size:10px;font-weight:700}.bb-chat-heading h2{font:700 21px/1.2 Georgia,serif;margin:5px 0}.bb-chat-heading p{margin:0;color:#e0d8ca;font-size:12px}.bb-chat-heading button{border:0;background:transparent;color:inherit;font-size:29px;line-height:1;cursor:pointer}
.bb-chat-log{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:15px 13px;display:flex;flex-direction:column;gap:10px;min-height:90px;background:linear-gradient(135deg,#fffdf7,#f3ead8)}
.bb-chat-message{margin:0;max-width:90%;padding:11px 13px;border-radius:12px;white-space:pre-line;overflow-wrap:anywhere;font-size:13px;line-height:1.5}.bb-chat-message.bot{align-self:flex-start;background:#fff;border:1px solid #dfd6c6;color:#152637}.bb-chat-message.user{align-self:flex-end;background:#173b56;color:white}
.bb-chat-suggestions{display:flex;gap:7px;overflow-x:auto;padding:8px 11px;flex-shrink:0}.bb-chat-suggestions button{border:1px solid #d2bd94;background:#fffdf5;color:#142c41;border-radius:99px;padding:7px 9px;font-size:12px;white-space:nowrap;cursor:pointer}
.bb-chat-suggestions button:hover{background:#eee1c9}.bb-chat-status{min-height:14px;padding:0 13px;color:#a14c2b;font-size:12px}.bb-chat-form{display:flex;gap:7px;padding:8px 12px}.bb-chat-form input{width:100%;flex:1;min-width:0;padding:10px 12px;border:1px solid #bca98a;border-radius:9px;background:#fff;color:#132b3e;font:14px system-ui,sans-serif}.bb-chat-form button{background:#8d3030;border:0;border-radius:9px;color:white;font-size:23px;font-weight:700;padding:0 14px;cursor:pointer}.bb-chat-form button:disabled{opacity:.5}
.bb-chat-links{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:7px 12px;font-size:12px}.bb-chat-links a{color:#173d5e;text-decoration:underline}.bb-chat-links button{margin-left:auto;color:#173d5e;background:none;border:0;text-decoration:underline;font:inherit;cursor:pointer}
.bb-chat-privacy{margin:0;padding:8px 12px 12px;font-size:10px;line-height:1.35;color:#62656c;background:#f2ede4;border-top:1px solid #ddd0bd}
@media(max-width:500px){.bb-chat-toggle{right:14px;bottom:14px;padding:12px 16px}.bb-chat-panel{right:8px;bottom:76px;width:calc(100vw - 16px);height:min(650px,calc(100dvh - 90px))}}
@media(prefers-reduced-motion:reduce){.bb-chat-toggle,.bb-chat-panel{animation:none!important;transition:none!important}}

.bb-chat-toggle {
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(.75rem, env(safe-area-inset-bottom));
  min-height: 48px;
}
.bb-chat-panel {
  right: max(.5rem, env(safe-area-inset-right));
  bottom: max(.5rem, env(safe-area-inset-bottom));
  width: min(390px, calc(100% - 1rem));
  height: min(570px, calc(100dvh - 1rem));
  overflow: auto;
  overscroll-behavior: contain;
}
.bb-chat-heading { align-items: center; flex-shrink: 0; padding: .375rem .75rem .375rem 1rem; }
.bb-chat-heading h2 { font: 400 1.125rem/1.2 var(--display, Georgia); }
.bb-chat-heading button { min-height: 44px; min-width: 44px; border-radius: 6px; }
.bb-chat-log { min-height: 5rem; }
.bb-chat-message { font-size: .875rem; }
.bb-chat-suggestions button, .bb-chat-form button { min-height: 44px; }
.bb-chat-suggestions { padding: .375rem .75rem; }
.bb-chat-suggestions button { font-size: .8125rem; }
.bb-chat-status:empty { display: none; }
.bb-chat-form input { min-height: 44px; font-size: 1rem; }
.bb-chat-links { flex-shrink: 0; gap: .2rem .65rem; padding: 0 .75rem; }
.bb-chat-links a, .bb-chat-links button { display: inline-flex; align-items: center; min-height: 40px; font-size: .8125rem; }
.bb-chat-privacy { flex-shrink: 0; padding: 0 .75rem; font-size: .8125rem; color: #484c54; }
.bb-chat-privacy summary { cursor: pointer; padding-block: .5rem; }
.bb-chat-privacy summary:focus-visible { outline: 2px solid #175b92; outline-offset: -2px; }
.bb-chat-privacy p { margin: 0 0 .65rem; }
.bb-chat-panel :focus-visible { outline-offset: 2px; }
@media (max-width: 500px) {
  .bb-chat-toggle {
    justify-content: center;
    width: 48px;
    padding: 0;
  }
  .bb-chat-toggle span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-height: 430px) and (orientation: landscape) {
  .bb-chat-panel { width: min(460px, calc(100% - 1rem)); }
  .bb-chat-log { min-height: 3rem; }
  .bb-chat-heading { padding-block: 0; }
}
