/* ============ Coach Bonga — AI chat widget ============
   External stylesheet (site CSP blocks inline styles).
   Launcher sits on the INLINE-START corner so it never
   collides with the WhatsApp float (inline-end). */

.cbx-launch{
  position:fixed; inset-inline-start:22px; bottom:22px; z-index:71;
  display:flex; align-items:center; gap:9px;
  padding:0 18px 0 14px; height:54px; border:none; border-radius:999px;
  background:var(--accent); color:#fef9ef; cursor:pointer;
  font-family:var(--font-body); font-size:.95rem; font-weight:700;
  box-shadow:var(--shadow-lg); transition:transform .2s ease, background .2s ease;
}
.cbx-launch:hover{ transform:translateY(-2px) scale(1.03); background:#9c4e2e; }
.cbx-launch .cbx-ic{ font-size:1.3rem; line-height:1; }
.cbx-launch.cbx-hidden{ display:none; }

.cbx-panel{
  position:fixed; inset-inline-start:22px; bottom:22px; z-index:72;
  width:372px; max-width:calc(100vw - 32px);
  height:560px; max-height:calc(100vh - 44px);
  display:none; flex-direction:column; overflow:hidden;
  background:var(--bg); border:1px solid var(--line); border-radius:22px;
  box-shadow:var(--shadow-xl);
}
.cbx-panel.cbx-open{ display:flex; animation:cbxIn .22s ease; }
@keyframes cbxIn{ from{opacity:0; transform:translateY(12px) scale(.98);} to{opacity:1; transform:none;} }

.cbx-head{
  display:flex; align-items:center; gap:11px;
  padding:13px 14px; background:var(--card); border-bottom:1px solid var(--line);
}
.cbx-avatar{
  width:38px; height:38px; border-radius:50%; flex:0 0 auto;
  background:var(--grad-accent); color:#fff; display:grid; place-items:center;
  font-size:1.15rem; font-weight:800;
}
.cbx-head-t{ display:flex; flex-direction:column; line-height:1.25; flex:1; min-width:0; }
.cbx-head-t b{ font-size:.98rem; color:var(--ink); }
.cbx-head-t span{ font-size:.76rem; color:var(--green); display:flex; align-items:center; gap:5px; }
.cbx-dot{ width:7px; height:7px; border-radius:50%; background:var(--green); display:inline-block; }
.cbx-x{
  border:none; background:transparent; color:var(--muted); cursor:pointer;
  font-size:1.5rem; line-height:1; padding:2px 6px; border-radius:8px;
}
.cbx-x:hover{ background:var(--card-deep); color:var(--ink); }

.cbx-msgs{ flex:1; overflow-y:auto; padding:16px 14px; display:flex; flex-direction:column; gap:11px; }
.cbx-msg{ max-width:85%; padding:10px 13px; border-radius:16px; font-size:.92rem; line-height:1.5; white-space:normal; word-wrap:break-word; }
.cbx-bot{ align-self:flex-start; background:var(--card); border:1px solid var(--line); color:var(--body); border-bottom-left-radius:5px; }
.cbx-user{ align-self:flex-end; background:var(--accent); color:#fef9ef; border-bottom-right-radius:5px; }
.cbx-msg a{ color:inherit; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.cbx-bot a{ color:var(--accent); }

.cbx-chips{ display:flex; flex-wrap:wrap; gap:7px; padding:2px 2px 4px; }
.cbx-chip{
  border:1px solid var(--accent-soft); background:transparent; color:var(--accent);
  font-family:var(--font-body); font-size:.82rem; font-weight:600; cursor:pointer;
  padding:7px 12px; border-radius:999px; transition:background .15s ease;
}
.cbx-chip:hover{ background:rgba(176,90,54,.09); }

.cbx-typing{ align-self:flex-start; display:flex; gap:4px; padding:12px 14px; background:var(--card); border:1px solid var(--line); border-radius:16px; border-bottom-left-radius:5px; }
.cbx-typing i{ width:7px; height:7px; border-radius:50%; background:var(--ash); display:inline-block; animation:cbxBounce 1s infinite; }
.cbx-typing i:nth-child(2){ animation-delay:.15s; }
.cbx-typing i:nth-child(3){ animation-delay:.3s; }
@keyframes cbxBounce{ 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-4px); opacity:1; } }

.cbx-form{ display:flex; gap:8px; padding:11px 12px; border-top:1px solid var(--line); background:var(--card); }
.cbx-input{
  flex:1; min-width:0; border:1px solid var(--line); border-radius:999px;
  padding:11px 15px; font-family:var(--font-body); font-size:.92rem;
  background:var(--bg); color:var(--ink); outline:none;
}
.cbx-input:focus{ border-color:var(--accent-soft); }
.cbx-send{
  flex:0 0 auto; width:44px; height:44px; border:none; border-radius:50%;
  background:var(--accent); color:#fef9ef; cursor:pointer; font-size:1.1rem;
  display:grid; place-items:center; transition:background .15s ease;
}
.cbx-send:hover{ background:#9c4e2e; }
.cbx-send:disabled{ opacity:.5; cursor:default; }

.cbx-foot{ text-align:center; font-size:.7rem; color:var(--ash); padding:0 12px 9px; background:var(--card); }

@media (max-width:480px){
  .cbx-panel{ inset-inline-start:12px; inset-inline-end:12px; bottom:12px; width:auto; max-width:none; height:calc(100vh - 90px); }
  .cbx-launch{ inset-inline-start:14px; bottom:16px; }
}
