/* ============================================================
   ADMIN · WIDGET
   Split from css/app.css — screen-specific styles.
   ============================================================ */

body[data-screen="landing"] .sxw{display:contents}

.sxw-fab{
  position:fixed;bottom:26px;right:26px;width:60px;height:60px;border-radius:50%;
  border:none;cursor:pointer;z-index:260;
  background:linear-gradient(135deg,#f0b429,#de911d);color:#1a1200;
  display:grid;place-items:center;
  box-shadow:0 12px 34px rgba(240,180,41,.45),0 4px 12px rgba(0,0,0,.18);
  transition:transform .18s cubic-bezier(.2,.9,.3,1.2);
}
.sxw-fab:hover{transform:scale(1.07)}
.sxw-fab::before{
  content:"";position:absolute;inset:-5px;border-radius:50%;
  border:2px solid rgba(240,180,41,.55);animation:sxwpulse 2.2s ease-out infinite;pointer-events:none;
}
.sxw-ico{pointer-events:none}
.sxw-x{display:none;font-size:19px;font-weight:700;pointer-events:none}
.sxw-fab.open .sxw-ico{display:none}
.sxw-fab.open .sxw-x{display:block}
.sxw-fab.open::before{display:none}
.sxw-fab-badge{
  position:absolute;top:-3px;right:-3px;min-width:21px;height:21px;padding:0 5px;
  border-radius:11px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;
  display:grid;place-items:center;border:2.5px solid #fff;box-shadow:0 2px 8px rgba(239,68,68,.5);
}

.sxw-panel{
  position:fixed;bottom:98px;right:26px;z-index:259;
  width:376px;max-width:calc(100vw - 28px);
  height:min(580px,calc(100vh - 150px));
  background:#ffffff;border:1px solid #e6ebf4;border-radius:18px;
  box-shadow:0 28px 80px rgba(15,23,42,.28);
  display:none;flex-direction:column;overflow:hidden;
  animation:sxwin .22s cubic-bezier(.2,.9,.3,1.1);
}
.sxw-panel.open{display:flex}
[data-theme="dark"] .sxw-panel{background:#111827;border-color:#27354d}

.sxw-head{
  display:flex;gap:11px;align-items:center;padding:13px 14px;flex:none;
  background:linear-gradient(135deg,rgba(240,180,41,.16),rgba(240,180,41,.04));
  border-bottom:1px solid #eceff6;
}
.sxw-ava{
  width:38px;height:38px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:linear-gradient(135deg,#f0b429,#de911d);color:#1a1200;font-weight:800;font-size:13px;
}
.sxw-hwho{min-width:0}
.sxw-hwho b{display:block;font-size:14px;color:#16213b;letter-spacing:-.1px}
[data-theme="dark"] .sxw-hwho b{color:#e6ecf7}
.sxw-hwho span{font-size:11.5px;color:#67748f;display:flex;align-items:center;gap:5px}
.sxw-dot{width:7px;height:7px;border-radius:50%;background:#10b981;box-shadow:0 0 6px #10b981;display:inline-block;animation:sxwblink 2s infinite}
.sxw-min{
  margin-left:auto;width:30px;height:30px;flex:none;border-radius:9px;
  border:1px solid #e6ebf4;background:#fff;color:#67748f;cursor:pointer;font-size:15px;line-height:1;
}
.sxw-min:hover{border-color:#f0b429;color:#de911d}

.sxw-body{
  flex:1;min-height:0;overflow-y:auto;padding:14px 13px;
  display:flex;flex-direction:column;gap:9px;background:#f4f7fc;
}
[data-theme="dark"] .sxw-body{background:#0e1421}
.sxw-msg{
  max-width:86%;padding:9px 12px 7px;border-radius:13px;
  font-size:13.3px;line-height:1.55;position:relative;word-break:break-word;
}
.sxw-msg.bot{align-self:flex-start;background:#fff;border:1px solid #e6ebf4;border-bottom-left-radius:4px;color:#16213b}
[data-theme="dark"] .sxw-msg.bot{background:#151d2e;border-color:#27354d;color:#e6ecf7}
.sxw-msg.me{
  align-self:flex-end;background:linear-gradient(135deg,#f0b429,#e0900f);
  color:#1a1200;border-bottom-right-radius:4px;font-weight:500;
  box-shadow:0 4px 14px rgba(240,180,41,.30);
}
.sxw-mtime{display:block;font-size:9.5px;opacity:.65;margin-top:3px;text-align:right;white-space:nowrap}
.sxw-sys{
  align-self:center;font-size:10.5px;color:#67748f;background:#fff;
  border:1px solid #e6ebf4;border-radius:20px;padding:3px 11px;text-align:center;
}
[data-theme="dark"] .sxw-sys{background:#151d2e;border-color:#27354d;color:#8b97ad}
.sxw-step{
  align-self:stretch;background:#fff;border:1px solid #e6ebf4;border-radius:14px;padding:13px 13px 12px;
}
[data-theme="dark"] .sxw-step{background:#151d2e;border-color:#27354d}
.sxw-step h4{margin:0 0 4px;font-size:14px;color:#16213b}
[data-theme="dark"] .sxw-step h4{color:#e6ecf7}
.sxw-step p{margin:0 0 10px;font-size:12.3px;color:#67748f;line-height:1.5}
.sxw-step .input{width:100%;margin-bottom:9px}
.sxw-chips{display:flex;flex-wrap:wrap;gap:7px}
.sxw-chip{
  padding:7px 12px;border-radius:20px;border:1px solid #dde4ef;background:#f6f8fc;
  font-size:12.5px;cursor:pointer;transition:.13s;color:#33415c;user-select:none;
}
.sxw-chip:hover{border-color:#f0b429;background:rgba(240,180,41,.12);color:#b4780a}
.sxw-chip.sxw-cta{
  width:100%;justify-content:center;text-align:center;font-weight:700;
  background:linear-gradient(135deg,#f0b429,#de911d);border-color:transparent;color:#1a1200;
}
.sxw-chip.sxw-cta:hover{box-shadow:0 6px 16px rgba(240,180,41,.35);color:#1a1200}
.sxw-back{margin-top:10px;font-size:11.5px;color:#8592a8;cursor:pointer}
.sxw-back:hover{color:#de911d}

.sxw-foot{
  display:flex;gap:8px;align-items:center;padding:10px 12px;flex:none;
  border-top:1px solid #e6ebf4;background:#fff;
}
[data-theme="dark"] .sxw-foot{background:#111827;border-color:#27354d}
.sxw-foot .input{flex:1;font-size:13.5px}
.sxw-send{
  width:38px;height:38px;flex:none;border-radius:50%;border:none;cursor:pointer;
  background:linear-gradient(135deg,#f0b429,#de911d);color:#1a1200;font-size:15px;
  display:grid;place-items:center;transition:transform .13s;
}
.sxw-send:hover{transform:scale(1.08)}

@media (max-width:560px){
  .sxw-panel{right:12px;left:12px;width:auto;bottom:94px;height:min(560px,calc(100vh - 130px))}
  .sxw-fab{bottom:20px;right:20px;width:56px;height:56px}
}



/* ===== chat auto-reply setup strip (website channel) ===== */
.chat-composer.stacked{flex-direction:column;align-items:stretch;gap:10px}