/* Виджет чата Surco Labs (static/chat.js). */
.scx-launch{position:fixed;right:24px;bottom:24px;z-index:90;display:flex;align-items:center;gap:10px;padding:14px 22px 14px 18px;
  border:0;border-radius:999px;background:var(--ink);color:#fff;font:600 15px/1 var(--sans);cursor:pointer;
  box-shadow:0 14px 34px -10px rgba(29,27,25,.55);transition:transform .15s}
.scx-launch:hover{transform:translateY(-2px)}
.scx-launch-ico{color:#f0b89c;font-size:16px}
.scx-launch[hidden],.scx-panel[hidden],.scx-hand[hidden],.scx-err[hidden]{display:none}
.scx-panel{position:fixed;right:24px;bottom:24px;z-index:91;width:384px;max-width:calc(100vw - 32px);height:min(600px,calc(100vh - 48px));
  display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;
  box-shadow:0 30px 70px -20px rgba(29,27,25,.45);font-family:var(--sans)}
.scx-head{display:flex;align-items:center;gap:12px;padding:16px 18px;background:var(--ink);color:#fff}
.scx-head-t{flex:1;display:flex;flex-direction:column}
.scx-head-t b{font-size:16px}
.scx-head-t small{color:#cfc6bb;font-size:12.5px;line-height:1.35}
.scx-x{border:0;background:transparent;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
.scx-list{flex:1;overflow-y:auto;padding:18px 16px;display:flex;flex-direction:column;gap:10px;background:#fbf9f6}
.scx-msg{max-width:86%;padding:10px 14px;border-radius:16px;font-size:14.5px;line-height:1.45;overflow-wrap:anywhere}
.scx-text{white-space:pre-wrap}
.scx-msg a{color:inherit;text-decoration:underline}
.scx-who{display:block;font-size:11.5px;font-weight:600;color:var(--muted);margin-bottom:3px}
.scx-agent{align-self:flex-start;background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:4px}
.scx-human{align-self:flex-start;background:#e7ecdc;border:1px solid #cfd8bd;border-bottom-left-radius:4px}
.scx-human .scx-who{color:var(--accent-2)}
.scx-client{align-self:flex-end;background:var(--accent);color:#fff;border-bottom-right-radius:4px}
.scx-typing .scx-text{color:var(--muted);font-style:italic}
.scx-err{margin:0 16px 8px;padding:8px 12px;border-radius:10px;background:#f6e0d6;color:var(--bad);font-size:13.5px}
.scx-hand{padding:12px 16px;border-top:1px solid var(--line);background:#fdf6f1}
.scx-hand p{margin:0 0 8px;font-size:13.5px;color:var(--muted)}
.scx-hand input{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:14px;margin-bottom:8px}
.scx-hand-row{display:flex;gap:10px;align-items:center}
.scx-btn{border:0;border-radius:999px;background:var(--accent);color:#fff;font:600 14px var(--sans);padding:9px 16px;cursor:pointer}
.scx-btn:disabled{opacity:.6}
.scx-link{border:0;background:transparent;color:var(--muted);font:14px var(--sans);cursor:pointer;text-decoration:underline}
.scx-form{display:flex;gap:8px;align-items:flex-end;padding:12px 12px 6px;border-top:1px solid var(--line)}
.scx-form textarea{flex:1;resize:none;border:1px solid var(--line);border-radius:14px;padding:10px 12px;font:inherit;font-size:14.5px;max-height:140px;outline:none}
.scx-form textarea:focus{border-color:var(--accent)}
.scx-send{flex:0 0 40px;height:40px;border:0;border-radius:50%;background:var(--ink);color:#fff;font-size:18px;cursor:pointer}
.scx-send:disabled{opacity:.5}

.scx-tohuman{align-self:center;border:0;background:transparent;color:var(--accent);font:500 13.5px var(--sans);padding:4px 0 12px;cursor:pointer;text-decoration:underline}
@media (max-width:560px){
  .scx-launch{right:16px;bottom:16px;padding:13px 18px 13px 15px}
  .scx-panel{inset:0;width:100%;max-width:none;height:100%;border-radius:0;border:0}
  html.scx-open,html.scx-open body{overflow:hidden}
}
