/* Sidobox chat assistant widget (#95). Loaded by index.html, /host/ and
   /partners/. /host/ does not load style.css, so every token has a literal
   fallback. Every class is sbx-prefixed so nothing here can restyle a page. */

.sbx-chat-btn{
  position:fixed;right:20px;bottom:20px;z-index:60;
  display:inline-flex;align-items:center;gap:9px;
  background:var(--teal, #0F4C5C);color:#FFFFFF;border:0;cursor:pointer;
  font-family:'Outfit', system-ui, sans-serif;font-weight:700;font-size:14.5px;
  padding:13px 18px 13px 15px;border-radius:999px;
  box-shadow:0 14px 30px -10px rgba(10,54,65,0.55), 0 2px 0 rgba(0,0,0,0.12);
  transition:transform 160ms ease;
}
@media(hover:hover){ .sbx-chat-btn:hover{transform:translateY(-2px)} }
.sbx-chat-btn:focus-visible, .sbx-chat button:focus-visible, .sbx-chat a:focus-visible,
.sbx-chat-input:focus-visible{outline:3px solid var(--sun, #FFD66B);outline-offset:2px}
.sbx-chat-open .sbx-chat-btn{display:none}

/* Phones: the page already has a full-width WhatsApp bar at the bottom
   (.sticky-cta, 760px and below), so the button sits above it as an icon. */
@media(max-width:760px){
  .sbx-chat-btn{right:14px;bottom:82px;padding:14px;border-radius:50%}
  .sbx-chat-btn-label{display:none}
}

.sbx-chat{
  position:fixed;right:20px;bottom:20px;z-index:61;
  width:min(390px, calc(100vw - 28px));height:min(600px, calc(100vh - 40px));
  display:flex;flex-direction:column;
  background:#FFFFFF;color:var(--ink, #1A2A2F);
  border:1px solid rgba(26,42,47,0.14);border-radius:22px;overflow:hidden;
  box-shadow:0 30px 70px -20px rgba(26,42,47,0.45);
  font-family:'Outfit', system-ui, sans-serif;
}
.sbx-chat[hidden]{display:none}
@media(max-width:560px){
  .sbx-chat{right:0;left:0;bottom:0;width:100%;height:88vh;height:88dvh;
    border-radius:22px 22px 0 0}
}

.sbx-chat-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 14px 12px 18px;background:var(--teal, #0F4C5C);color:#FFFFFF;
}
.sbx-chat-title{display:flex;align-items:center;gap:8px;font-size:15.5px}
.sbx-chat-badge{
  font-family:'JetBrains Mono', monospace;font-size:10px;font-weight:700;letter-spacing:0.12em;
  background:rgba(255,255,255,0.18);padding:3px 7px;border-radius:999px;
}
.sbx-chat-close{background:transparent;border:0;color:#FFFFFF;cursor:pointer;padding:6px;border-radius:8px;display:flex}

.sbx-chat-notice{
  margin:0;padding:9px 16px;font-size:12px;line-height:1.45;
  background:var(--teal-soft, #DDEDF0);color:var(--ink-soft, #3A4F56);
}
.sbx-chat-notice a, .sbx-msg a{color:var(--teal, #0F4C5C);font-weight:600}

.sbx-chat-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;
  background:var(--paper, #FBF6EB)}
.sbx-msg{
  max-width:86%;padding:10px 13px;border-radius:16px;font-size:14.5px;line-height:1.5;
  white-space:pre-wrap;overflow-wrap:anywhere;
}
.sbx-msg--bot{align-self:flex-start;background:#FFFFFF;border:1px solid rgba(26,42,47,0.1);border-bottom-left-radius:6px}
.sbx-msg--me{align-self:flex-end;background:var(--ink, #1A2A2F);color:#FFFFFF;border-bottom-right-radius:6px}
.sbx-msg--me a{color:var(--sun, #FFD66B)}
.sbx-msg--typing{display:flex;gap:5px;padding:14px}
.sbx-msg--typing span{width:7px;height:7px;border-radius:50%;background:var(--muted, #5A686D);
  animation:sbxDot 1.1s infinite ease-in-out}
.sbx-msg--typing span:nth-child(2){animation-delay:0.15s}
.sbx-msg--typing span:nth-child(3){animation-delay:0.3s}
@keyframes sbxDot{0%,80%,100%{opacity:0.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){ .sbx-msg--typing span{animation:none;opacity:0.6} }

.sbx-chat-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 12px;background:var(--paper, #FBF6EB)}
.sbx-chat-chips[hidden]{display:none}
.sbx-chat-chip{
  font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;
  background:#FFFFFF;color:var(--teal, #0F4C5C);
  border:1px solid rgba(15,76,92,0.35);border-radius:999px;padding:7px 11px;
}

.sbx-chat-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid rgba(26,42,47,0.1);background:#FFFFFF}
.sbx-chat-input{
  flex:1;resize:none;border:1px solid rgba(26,42,47,0.22);border-radius:14px;
  padding:10px 12px;font-family:inherit;font-size:16px;line-height:1.35;color:var(--ink, #1A2A2F);
  max-height:120px;background:#FFFFFF;
}
.sbx-chat-send{
  flex-shrink:0;width:42px;height:42px;border-radius:50%;border:0;cursor:pointer;
  background:var(--teal, #0F4C5C);color:#FFFFFF;display:flex;align-items:center;justify-content:center;
}
.sbx-chat-send[disabled]{opacity:0.5;cursor:wait}
.sbx-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
