/* NexSupport chat widget – (C) Matig s.r.o. */
.nxc{--nxc-accent:#e2346f;--nxc-ink:#141622;--nxc-muted:#6a7085;--nxc-line:rgba(20,22,34,.09);--nxc-bg:#fff;--nxc-soft:#f5f6fa;
  --nxc-acc-soft:color-mix(in srgb,var(--nxc-accent) 12%,#fff);
  position:fixed;bottom:20px;z-index:9990;font:15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--nxc-ink)}
.nxc-right{right:20px}.nxc-left{left:20px}
.nxc *,.nxc *::before,.nxc *::after{box-sizing:border-box}
.nxc svg{width:20px;height:20px;display:block}

.nxc-launch{display:inline-flex;align-items:center;gap:.55rem;height:56px;min-width:56px;padding:0 18px;border:0;border-radius:999px;cursor:pointer;
  background:var(--nxc-accent);color:#fff;font:600 15px/1 inherit;box-shadow:0 12px 30px -10px color-mix(in srgb,var(--nxc-accent) 70%,transparent),0 2px 6px rgba(0,0,0,.12);
  transition:transform .18s ease,box-shadow .18s ease}
.nxc-launch svg{width:24px;height:24px}
.nxc-launch:hover{transform:translateY(-2px)}
.nxc-launch:focus-visible{outline:3px solid color-mix(in srgb,var(--nxc-accent) 40%,transparent);outline-offset:3px}
.nxc.is-open .nxc-launch{transform:scale(.92);opacity:.0;pointer-events:none}

.nxc-panel{position:absolute;bottom:0;width:390px;max-width:calc(100vw - 40px);height:min(640px,calc(100dvh - 40px));display:flex;flex-direction:column;
  background:var(--nxc-bg);border-radius:20px;overflow:hidden;box-shadow:0 30px 80px -20px rgba(20,22,34,.35),0 0 0 1px var(--nxc-line);
  animation:nxc-in .22s ease-out}
.nxc-right .nxc-panel{right:0}.nxc-left .nxc-panel{left:0}
.nxc-panel[hidden]{display:none}
@keyframes nxc-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}

.nxc-head{display:flex;align-items:center;gap:.7rem;padding:14px 12px 14px 16px;background:var(--nxc-ink);color:#fff}
.nxc-avatar{flex:none;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--nxc-accent);color:#fff}
.nxc-titles{flex:1;min-width:0;display:flex;flex-direction:column}
.nxc-titles strong{font-size:15px;line-height:1.25}
.nxc-titles small{font-size:12px;opacity:.72;display:flex;align-items:center;gap:.35rem}
.nxc-dot{width:7px;height:7px;border-radius:50%;background:#33d17a;box-shadow:0 0 0 3px rgba(51,209,122,.2)}
.nxc-icon{flex:none;width:34px;height:34px;border:0;border-radius:10px;background:transparent;color:#fff;opacity:.75;cursor:pointer;display:grid;place-items:center}
.nxc-icon:hover{opacity:1;background:rgba(255,255,255,.1)}
.nxc-icon svg{width:18px;height:18px}

.nxc-product{display:flex;align-items:center;gap:.5rem;padding:8px 14px;border-bottom:1px solid var(--nxc-line);background:var(--nxc-soft);font-size:13px;color:var(--nxc-muted)}
.nxc-product select{flex:1;min-width:0;height:32px;padding:0 8px;border:1px solid var(--nxc-line);border-radius:8px;background:#fff;color:var(--nxc-ink);font:inherit;font-size:13px}

.nxc-log{flex:1;overflow-y:auto;padding:16px 14px 8px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth;overscroll-behavior:contain}
.nxc-msg{max-width:88%;padding:10px 13px;border-radius:16px;word-wrap:break-word;font-size:14.5px}
.nxc-msg p{margin:0 0 .5em}.nxc-msg p:last-child{margin:0}
.nxc-msg ol,.nxc-msg ul{margin:.2em 0 .5em;padding-left:1.25em}.nxc-msg li{margin:.15em 0}
.nxc-msg code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;background:rgba(20,22,34,.06);padding:.05em .35em;border-radius:5px}
.nxc-msg a{color:var(--nxc-accent);font-weight:600}
.nxc-ai{align-self:flex-start;background:var(--nxc-soft);border-bottom-left-radius:6px}
.nxc-user{align-self:flex-end;background:var(--nxc-accent);color:#fff;border-bottom-right-radius:6px}
.nxc-user a{color:#fff}
.nxc-note{background:var(--nxc-acc-soft)}
.nxc-done{background:#e8f7ef;color:#11512f}
.nxc-done a{color:#0f6b3b}

.nxc-typing{display:inline-flex;gap:4px;padding:3px 0}
.nxc-typing i{width:7px;height:7px;border-radius:50%;background:var(--nxc-muted);opacity:.5;animation:nxc-dot 1s infinite}
.nxc-typing i:nth-child(2){animation-delay:.15s}.nxc-typing i:nth-child(3){animation-delay:.3s}
@keyframes nxc-dot{0%,80%,100%{transform:translateY(0);opacity:.35}40%{transform:translateY(-4px);opacity:.9}}

.nxc-actions{align-self:flex-start;display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;color:var(--nxc-muted);padding:0 2px}
.nxc-actions span{width:100%}
.nxc-actions button,.nxc-suggest button,.nxc-ghost,.nxc-primary{font:600 13px/1 inherit;padding:9px 13px;border-radius:999px;cursor:pointer;border:1px solid var(--nxc-line);background:#fff;color:var(--nxc-ink);transition:background .15s,border-color .15s}
.nxc-actions .nxc-yes:hover{border-color:#33a06a;background:#e8f7ef}
.nxc-actions .nxc-no:hover,.nxc-suggest button:hover{border-color:var(--nxc-accent);background:var(--nxc-acc-soft)}

.nxc-suggest{display:flex;flex-wrap:wrap;gap:6px;padding:4px 14px 8px}
.nxc-suggest[hidden]{display:none}
.nxc-suggest button{font-weight:500;text-align:left;line-height:1.3}

.nxc-ticket{align-self:stretch;display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--nxc-line);border-radius:14px;background:#fff;box-shadow:0 6px 20px -12px rgba(20,22,34,.25)}
.nxc-ticket p{margin:0;font-size:13px;color:var(--nxc-muted)}
.nxc-ticket textarea,.nxc-ticket input{width:100%;padding:9px 11px;border:1px solid var(--nxc-line);border-radius:10px;font:inherit;font-size:14px;color:var(--nxc-ink);background:var(--nxc-soft);resize:vertical}
.nxc-ticket textarea:focus,.nxc-ticket input:focus,.nxc-form textarea:focus{outline:2px solid color-mix(in srgb,var(--nxc-accent) 35%,transparent);outline-offset:0;background:#fff}
.nxc-row{display:flex;gap:6px}
.nxc-primary{background:var(--nxc-accent);border-color:var(--nxc-accent);color:#fff}
.nxc-primary:disabled{opacity:.6;cursor:wait}
.nxc-err{color:#b3261e!important}
.nxc-err[hidden]{display:none}

.nxc-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--nxc-line)}
.nxc-form textarea{flex:1;min-height:42px;max-height:140px;padding:10px 12px;border:1px solid var(--nxc-line);border-radius:14px;background:var(--nxc-soft);font:inherit;font-size:15px;color:var(--nxc-ink);resize:none;line-height:1.4}
.nxc-send{flex:none;width:42px;height:42px;border:0;border-radius:50%;background:var(--nxc-accent);color:#fff;display:grid;place-items:center;cursor:pointer}
.nxc-send:disabled{opacity:.5;cursor:wait}
.nxc-foot{margin:0;padding:0 14px 10px;font-size:11px;color:var(--nxc-muted);text-align:center}

@media (max-width:600px){
  .nxc{bottom:14px}.nxc-right{right:14px}.nxc-left{left:14px}
  .nxc-launch span{display:none}
  .nxc.is-open{inset:0;bottom:0}
  .nxc-panel{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;border-radius:0}
  .nxc-form textarea{font-size:16px}
}
html.nxc-lock,html.nxc-lock body{overflow:hidden}
@media (prefers-reduced-motion:reduce){.nxc-panel,.nxc-typing i{animation:none}.nxc-launch{transition:none}}
/* keep site template form styles out of the widget */
.nxc .nxc-product select{height:34px;min-height:0;padding:0 28px 0 10px;margin:0;font-size:13px;line-height:1.2;border-radius:8px;box-shadow:none;width:auto;flex:1}
.nxc .nxc-form textarea,.nxc .nxc-ticket textarea,.nxc .nxc-ticket input{margin:0;box-shadow:none;width:100%}
.nxc .nxc-form textarea{width:auto}
