/* Zentari Support Chat — uses the theme's color variables when present. */
.zsc{--zsc-bg:var(--navy-900,#070b1a);--zsc-panel:var(--glass-2,rgba(18,26,58,.96));--zsc-line:var(--line-strong,rgba(255,255,255,.16));--zsc-text:var(--text,#eef2ff);--zsc-muted:var(--muted,#8b97b8);--zsc-orange:var(--orange,#ff7a3c);--zsc-cyan:var(--cyan,#3ee0f7);--zsc-violet:var(--violet,#8b6cff);font-family:var(--font,"Outfit",system-ui,-apple-system,sans-serif);position:fixed;right:20px;bottom:20px;z-index:99990;color:var(--zsc-text)}
.zsc *{box-sizing:border-box}
.zsc-launch{display:flex;align-items:center;gap:.55rem;border:0;cursor:pointer;padding:.85rem 1.25rem;border-radius:999px;color:#0a0f24;font-weight:700;font-size:16px;letter-spacing:.01em;white-space:nowrap;line-height:1;font-family:inherit;background:linear-gradient(135deg,var(--zsc-orange),#ff9a68);box-shadow:0 12px 34px rgba(255,122,60,.38),0 0 0 1px rgba(255,255,255,.08) inset;transition:transform .2s ease,box-shadow .2s ease}
.zsc-launch:hover{transform:translateY(-2px);box-shadow:0 16px 40px rgba(255,122,60,.48)}
.zsc-launch svg{width:21px;height:21px;flex:none}
.zsc-open .zsc-launch{display:none}
.zsc-panel{display:none;flex-direction:column;width:380px;height:min(620px,calc(100vh - 40px));background:var(--zsc-panel);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid var(--zsc-line);border-radius:20px;box-shadow:0 24px 80px rgba(0,0,0,.55);overflow:hidden}
.zsc-open .zsc-panel{display:flex;animation:zscIn .25s cubic-bezier(.22,1,.36,1)}
@keyframes zscIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.zsc-head{display:flex;align-items:center;gap:.7rem;padding:.9rem 1rem;background:linear-gradient(135deg,rgba(62,224,247,.14),rgba(139,108,255,.16));border-bottom:1px solid var(--zsc-line)}
.zsc-dot{width:34px;height:34px;border-radius:50%;flex:0 0 34px;background:radial-gradient(circle at 30% 30%,var(--zsc-cyan),var(--zsc-violet));box-shadow:0 0 18px rgba(62,224,247,.45)}
.zsc-title{font-weight:700;font-size:15px;line-height:1.2}
.zsc-sub{font-size:12px;color:var(--zsc-muted)}
.zsc-x{margin-left:auto;background:none;border:0;color:var(--zsc-text);font-size:24px;line-height:1;cursor:pointer;padding:.2rem .4rem;opacity:.8}
.zsc-log{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.6rem;scroll-behavior:smooth}
.zsc-msg{max-width:88%;padding:.65rem .85rem;border-radius:14px;font-size:14px;line-height:1.45;word-wrap:break-word}
.zsc-msg p{margin:0 0 .45rem}.zsc-msg p:last-child{margin:0}
.zsc-msg ul,.zsc-msg ol{margin:.3rem 0 .45rem 1.1rem;padding:0}.zsc-msg li{margin:.2rem 0}
.zsc-msg a{color:var(--zsc-cyan);text-decoration:underline}
.zsc-bot{align-self:flex-start;background:rgba(255,255,255,.06);border:1px solid var(--zsc-line);border-bottom-left-radius:4px}
.zsc-user{align-self:flex-end;background:linear-gradient(135deg,var(--zsc-orange),#ff9a68);color:#fff;border-bottom-right-radius:4px}
.zsc-typing{display:inline-flex;gap:4px}.zsc-typing i{width:6px;height:6px;border-radius:50%;background:var(--zsc-muted);animation:zscB 1s infinite}.zsc-typing i:nth-child(2){animation-delay:.15s}.zsc-typing i:nth-child(3){animation-delay:.3s}
@keyframes zscB{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.zsc-chips{display:flex;flex-wrap:wrap;gap:.4rem;padding:0 1rem .6rem}
.zsc-chip{border:1px solid rgba(62,224,247,.45);background:rgba(62,224,247,.08);color:var(--zsc-text);border-radius:999px;padding:.38rem .7rem;font-weight:500;font-size:12.5px;line-height:1.2;font-family:inherit;cursor:pointer}
.zsc-chip:hover{background:rgba(62,224,247,.18)}
.zsc-form{display:flex;gap:.5rem;padding:.7rem;border-top:1px solid var(--zsc-line);background:rgba(0,0,0,.18)}
.zsc-form textarea{flex:1;resize:none;height:44px;max-height:120px;border-radius:12px;border:1px solid var(--zsc-line);background:rgba(255,255,255,.05);color:var(--zsc-text);padding:.65rem .75rem;font-size:14px;line-height:1.35;font-family:inherit}
.zsc-form textarea:focus,.zsc-ticket input:focus,.zsc-ticket textarea:focus{outline:2px solid rgba(62,224,247,.55);outline-offset:0}
.zsc-send{border:0;border-radius:12px;padding:0 1rem;background:var(--zsc-orange);color:#fff;font-weight:600;cursor:pointer;font-family:inherit}
.zsc-foot{display:flex;justify-content:space-between;align-items:center;padding:.35rem .9rem .6rem;font-size:11.5px;color:var(--zsc-muted);background:rgba(0,0,0,.18)}
.zsc-foot button{background:none;border:0;color:var(--zsc-cyan);cursor:pointer;font-weight:600;font-size:12px;font-family:inherit;padding:0}
.zsc-ticket{align-self:stretch;background:rgba(255,255,255,.05);border:1px solid var(--zsc-line);border-radius:14px;padding:.8rem;display:flex;flex-direction:column;gap:.45rem}
.zsc-ticket label{font-size:12px;color:var(--zsc-muted)}
.zsc-ticket input,.zsc-ticket textarea{width:100%;border-radius:10px;border:1px solid var(--zsc-line);background:rgba(0,0,0,.25);color:var(--zsc-text);padding:.55rem .65rem;font-size:14px;font-family:inherit}
.zsc-ticket textarea{min-height:80px;resize:vertical}
.zsc-ticket .zsc-hp{position:absolute;left:-9999px}
.zsc-ticket button{border:0;border-radius:10px;padding:.6rem;background:var(--zsc-orange);color:#fff;font-weight:600;cursor:pointer;font-family:inherit}
.zsc-err{color:#ffb4a2;font-size:12.5px}
@media (max-width:600px){
  .zsc{right:12px;bottom:12px}
  .zsc-launch{padding:.72rem 1.05rem;font-size:15px}.zsc-launch svg{width:19px;height:19px}
  .zsc-open{inset:0;right:0;bottom:0}
  .zsc-open .zsc-panel{width:100vw;height:100dvh;height:100vh;border-radius:0;border:0}
  @supports (height:100dvh){.zsc-open .zsc-panel{height:100dvh}}
  .zsc-form textarea{font-size:16px}
  .zsc-ticket input,.zsc-ticket textarea{font-size:16px}
}
@media (prefers-reduced-motion:reduce){.zsc-open .zsc-panel{animation:none}.zsc-launch{transition:none}}

/* ---- Sales chat (v1.1) ---- */
.zsc-ctas{align-self:flex-start;display:flex;flex-wrap:wrap;gap:.45rem;max-width:94%;margin:-.1rem 0 .1rem}
.zsc-cta{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.55rem 1rem;border-radius:999px;font-weight:700;font-size:14px;line-height:1.2;text-decoration:none;color:#fff;background:linear-gradient(135deg,var(--zsc-orange),#ff9a68);box-shadow:0 8px 22px rgba(255,122,60,.32);font-family:inherit;transition:transform .15s ease,box-shadow .15s ease}
.zsc-cta:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(255,122,60,.45);color:#fff}
.zsc-cta:focus-visible,.zsc-chip:focus-visible,.zsc-launch:focus-visible,.zsc-x:focus-visible,.zsc-human:focus-visible,.zsc-send:focus-visible,.zsc-teaser-go:focus-visible,.zsc-teaser-x:focus-visible{outline:2px solid var(--zsc-cyan);outline-offset:2px}
.zsc-cta-ghost{background:rgba(255,255,255,.06);border:1px solid rgba(62,224,247,.5);box-shadow:none;color:var(--zsc-text);font-weight:600}
.zsc-cta-ghost:hover{background:rgba(62,224,247,.16);color:var(--zsc-text);box-shadow:none}
.zsc-sales .zsc-chips{max-height:132px;overflow-y:auto}
.zsc-sales .zsc-chip{padding:.45rem .8rem;font-size:13px}
.zsc-msg em{color:var(--zsc-muted)}
.zsc-teaser{position:absolute;right:0;bottom:calc(100% + 12px);width:min(290px,calc(100vw - 32px));display:flex;align-items:flex-start;background:var(--zsc-panel);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid var(--zsc-line);border-radius:16px;border-bottom-right-radius:4px;box-shadow:0 16px 48px rgba(0,0,0,.5);animation:zscT .4s cubic-bezier(.22,1,.36,1);transition:opacity .35s ease,transform .35s ease}
.zsc-teaser-out{opacity:0;transform:translateY(6px)}
.zsc-teaser-go{flex:1;text-align:left;background:none;border:0;color:var(--zsc-text);font:inherit;font-size:14px;line-height:1.4;padding:.8rem 0 .8rem .95rem;cursor:pointer;border-radius:16px}
.zsc-teaser-go strong{color:var(--zsc-cyan)}
.zsc-teaser-x{background:none;border:0;color:var(--zsc-muted);font-size:22px;line-height:1;cursor:pointer;padding:.35rem .6rem;min-width:36px;min-height:36px}
.zsc-teaser-x:hover{color:var(--zsc-text)}
@keyframes zscT{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
.zsc-open .zsc-teaser{display:none}
@media (max-width:600px){
  .zsc-teaser{width:min(260px,calc(100vw - 24px))}
  .zsc-cta{min-height:44px}
}
@media (prefers-reduced-motion:reduce){.zsc-teaser{animation:none;transition:none}.zsc-cta{transition:none}}
