/* Site assistant widget. Uses the landing-page theme variables, so it follows light / dark automatically. */
/* the chatbot replaces the round WhatsApp button (WhatsApp stays reachable from inside the chat; landing.js still needs the element) */
#wa{display:none!important}
#cb-root{--cbw:372px;position:fixed;right:22px;bottom:22px;z-index:92;font-family:inherit}
#cb-fab{position:relative;width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;background:var(--grad);color:#fff;font-size:1.65rem;display:grid;place-items:center;box-shadow:0 10px 30px rgba(109,93,252,.5);transition:transform .25s}
#cb-fab:hover{transform:scale(1.07)}
#cb-fab:focus-visible,#cb-panel button:focus-visible,#cb-panel a:focus-visible,#cb-in:focus-visible{outline:2px solid var(--p2);outline-offset:2px}
#cb-fab .cb-x{display:none;font-size:1.2rem;font-weight:700}
#cb-root.open #cb-fab .cb-i{display:none}#cb-root.open #cb-fab .cb-x{display:block}
#cb-fab .cb-dot{position:absolute;top:4px;right:4px;width:13px;height:13px;border-radius:50%;background:var(--ok);border:2px solid var(--bg)}
#cb-root.open .cb-dot{display:none}

#cb-nudge{position:absolute;right:72px;bottom:10px;white-space:nowrap;padding:11px 34px 11px 16px;border-radius:16px 16px 4px 16px;background:var(--bg2);color:var(--txt);border:1px solid var(--line);box-shadow:var(--shadow);font-size:.88rem;font-weight:600;cursor:pointer;opacity:0;transform:translateX(12px);pointer-events:none;transition:.4s}
#cb-nudge.show{opacity:1;transform:none;pointer-events:auto}
#cb-nudge button{position:absolute;top:50%;right:8px;transform:translateY(-50%);width:20px;height:20px;border:0;border-radius:50%;background:transparent;color:var(--mut);cursor:pointer;font-size:.72rem}

#cb-panel{padding:0;position:absolute;right:0;bottom:76px;width:var(--cbw);max-width:calc(100vw - 28px);height:min(560px,calc(100vh - 190px));display:flex;flex-direction:column;border-radius:22px;background:var(--bg2);color:var(--txt);border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden;opacity:0;transform:translateY(16px) scale(.97);transform-origin:bottom right;transition:opacity .25s,transform .25s}
#cb-panel[hidden]{display:none}
#cb-root.open #cb-panel{opacity:1;transform:none}
#cb-panel header{display:flex;align-items:center;gap:11px;padding:14px 14px 14px 16px;background:var(--grad);color:#fff}
#cb-panel header img{border-radius:10px;background:#fff;padding:3px}
#cb-panel header div{flex:1;min-width:0;line-height:1.25}
#cb-panel header b{display:block;font-size:.98rem}
#cb-panel header small{display:flex;align-items:center;gap:6px;font-size:.74rem;opacity:.92}
#cb-panel header small i{width:8px;height:8px;border-radius:50%;background:#7CFFB2;box-shadow:0 0 0 3px rgba(124,255,178,.3)}
#cb-panel header button{width:32px;height:32px;border-radius:50%;border:0;background:rgba(255,255,255,.18);color:#fff;cursor:pointer;font-size:.95rem}
#cb-panel header button:hover{background:rgba(255,255,255,.3)}

#cb-log{flex:1;overflow-y:auto;padding:16px 14px 6px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth;overscroll-behavior:contain}
.cb-m{max-width:88%;padding:10px 14px;border-radius:16px;font-size:.88rem;line-height:1.5;word-wrap:break-word;animation:cbin .3s ease both}
.cb-m.u{align-self:flex-end;background:var(--grad);color:#fff;border-bottom-right-radius:4px}
.cb-m.b{align-self:flex-start;background:var(--card);border:1px solid var(--line);border-bottom-left-radius:4px}
.cb-m.b ul{margin:6px 0 4px;padding-left:18px;display:grid;gap:4px}
.cb-m.b li{padding-left:2px}
.cb-m.b a:not(.cb-act){color:var(--p2);text-decoration:underline}
.cb-m.b small{color:var(--mut);font-size:.78rem}
.cb-m.b b{font-weight:700}
.cb-act{display:inline-block;margin:8px 6px 0 0;padding:8px 14px;border-radius:999px;border:0;background:var(--grad);color:#fff;font:600 .8rem/1.2 inherit;cursor:pointer;text-decoration:none}
.cb-act.alt{background:transparent;color:var(--txt);border:1px solid var(--line)}
.cb-act:hover{filter:brightness(1.1)}
.cb-m.dots{display:flex;gap:5px;padding:13px 16px}
.cb-m.dots i{width:7px;height:7px;border-radius:50%;background:var(--mut);animation:cbdot 1s infinite}
.cb-m.dots i:nth-child(2){animation-delay:.15s}.cb-m.dots i:nth-child(3){animation-delay:.3s}

#cb-chips{display:flex;gap:7px;padding:8px 14px 10px;flex-wrap:wrap;border-top:1px solid transparent}
#cb-chips::-webkit-scrollbar{display:none}
.cb-chip{flex:0 0 auto;padding:7px 13px;border-radius:999px;border:1px solid var(--p1);background:transparent;color:var(--txt);font:600 .78rem/1.2 inherit;cursor:pointer;transition:.2s}
.cb-chip[hidden]{display:none}.cb-more{flex:0 0 auto;padding:7px 13px;border-radius:999px;border:1px dashed var(--p1);background:transparent;color:var(--txt);font:600 .78rem/1.2 inherit;cursor:pointer}
.cb-chip:hover{background:var(--p1);color:#fff}

#cb-form{display:flex;gap:8px;padding:10px 12px;border:0;border-top:1px solid var(--line);border-radius:0;background:var(--bg2);box-shadow:none}
#cb-in{flex:1;min-width:0;padding:11px 15px;border-radius:999px;border:1px solid var(--line);background:var(--bg);color:var(--txt);font:inherit;font-size:.9rem}
#cb-in::placeholder{color:var(--mut)}
#cb-form button{width:42px;height:42px;flex:none;border-radius:50%;border:0;background:var(--grad);color:#fff;font-size:1rem;cursor:pointer}
#cb-panel .cb-foot{padding:7px 14px 10px;text-align:center;font-size:.72rem;color:var(--mut);background:var(--bg2)}
#cb-panel .cb-foot a{color:var(--p2)}
#cb-log{min-height:140px}

@keyframes cbin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cbdot{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-4px)}}
@media (prefers-reduced-motion:reduce){#cb-panel,.cb-m,#cb-nudge{transition:none;animation:none}.cb-m.dots i{animation:none}}

/* phones: the sticky "Free demo / WhatsApp" bar and the round WhatsApp button take the bottom, so sit above them */
@media (max-width:700px){
  #cb-root{right:14px;bottom:78px}
  #cb-fab{width:54px;height:54px}
  #cb-panel{position:fixed;right:10px;left:10px;bottom:78px;width:auto;max-width:none;height:min(520px,calc(100vh - 150px))}
  #cb-nudge{display:none}
}

/* raise-a-ticket form inside a bot message (not #cb-form, which is the chat input) */
.cb-tk{display:grid;gap:7px;margin-top:8px;padding:0;border:0;background:transparent;box-shadow:none}
.cb-tk input,.cb-tk textarea{width:100%;padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:var(--bg2);color:var(--txt);font:inherit;font-size:.85rem;box-sizing:border-box}
.cb-tk textarea{resize:vertical;min-height:70px}
.cb-tk .cb-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.cb-tk .cb-err{color:#e5484d;font-size:.78rem;min-height:1em}
.cb-tk button{width:auto;height:auto;border-radius:999px;padding:9px 14px;border:0;background:var(--grad);color:#fff;font:600 .82rem/1.2 inherit;cursor:pointer}
.cb-tk button:disabled{opacity:.6;cursor:wait}
