/* NIXTRONIC AI live chat widget */
.nx-chat{position:fixed;z-index:90;right:22px;bottom:22px;font-family:var(--nx-font)}
.nx-chat-launcher{display:flex;align-items:center;gap:10px;height:54px;padding:0 22px 0 16px;border:0;border-radius:999px;background:linear-gradient(180deg,#0b9a55,#077a40);color:#fff;font:inherit;font-size:15px;font-weight:600;cursor:pointer;box-shadow:0 10px 26px rgba(6,90,50,.35)}
.nx-chat-launcher svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nx-chat.is-open .nx-chat-launcher{display:none}
.nx-chat-panel{position:absolute;right:0;bottom:0;width:380px;height:min(620px,calc(100vh - 44px));display:flex;flex-direction:column;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 24px 60px rgba(8,30,20,.28)}
.nx-chat-panel[hidden]{display:none}
.nx-chat-head{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;background:linear-gradient(90deg,#035a37,#0b8a4b);color:#fff}
.nx-chat-avatar{width:40px;height:40px;border-radius:50%;background:#fff;color:#0b7f43;display:grid;place-items:center;font-family:var(--nx-logo);font-weight:800;font-size:18px}
.nx-chat-head h2{color:#fff;font-size:16px;font-weight:600}
.nx-chat-head p{font-size:12px;opacity:.9;display:flex;align-items:center;gap:6px;margin-top:2px}
.nx-chat-head p i{width:8px;height:8px;border-radius:50%;background:#5df29b}
.nx-chat-close{margin-left:auto;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.nx-chat-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#f6f9f8}
.nx-msg{max-width:86%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.5;color:var(--nx-ink);word-wrap:break-word}
.nx-msg p+p{margin-top:6px}
.nx-msg ul{margin:6px 0 0;padding-left:18px;list-style:disc}
.nx-msg li+li{margin-top:3px}
.nx-msg a{color:#0b7f43;font-weight:500}
.nx-msg--bot{align-self:flex-start;background:#fff;border:1px solid #e3ebe7;border-bottom-left-radius:4px}
.nx-msg--me{align-self:flex-end;background:#0b8a4b;color:#fff;border-bottom-right-radius:4px}
.nx-typing{display:flex;gap:5px;padding:14px 16px}
.nx-typing span{width:7px;height:7px;border-radius:50%;background:#9aa4ad;animation:nxDot 1.2s infinite ease-in-out}
.nx-typing span:nth-child(2){animation-delay:.15s}.nx-typing span:nth-child(3){animation-delay:.3s}
@keyframes nxDot{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-4px);opacity:1}}
.nx-chat-suggest{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 10px;background:#f6f9f8}
.nx-chat-suggest[hidden]{display:none}
.nx-chat-suggest button{padding:7px 12px;border:1px solid #bfe0cd;border-radius:999px;background:#fff;color:#0b7f43;font:inherit;font-size:13px;cursor:pointer}
.nx-chat-suggest button:hover{background:#eefaf3}
.nx-chat-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid #e3ebe7}
.nx-chat-form textarea{flex:1;min-height:42px;max-height:120px;resize:none;border:1px solid #dfe8e4;border-radius:10px;padding:10px 12px;font:inherit;font-size:14px;outline:none}
.nx-chat-form textarea:focus{border-color:#0b8a4b}
.nx-chat-form button{width:42px;height:42px;flex:none;border:0;border-radius:10px;background:#0b8a4b;color:#fff;display:grid;place-items:center;cursor:pointer}
.nx-chat-form button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nx-chat-foot{padding:0 14px 10px;font-size:11px;color:#7d8794;text-align:center}
.nx-chat-foot a{color:#0b7f43}
@media (max-width:640px){
  .nx-chat{right:12px;bottom:12px}
  .nx-chat-launcher{height:52px;width:52px;padding:0;justify-content:center}
  .nx-chat-launcher span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .nx-chat.is-open{inset:0}
  .nx-chat-panel{position:fixed;inset:0;width:auto;height:auto;border-radius:0}
}
/* Tidier launcher: compact pill, collapses to a round icon once the visitor scrolls */
.nx-chat-launcher{height:50px;padding:0 20px 0 15px;font-size:14.5px;border:3px solid #fff;box-shadow:0 8px 22px rgba(6,70,40,.28);transition:padding .2s,gap .2s}
.nx-chat-launcher span{max-width:120px;overflow:hidden;white-space:nowrap;transition:max-width .25s,opacity .2s}
.nx-chat.is-compact .nx-chat-launcher{width:56px;height:56px;padding:0;gap:0;justify-content:center}
.nx-chat.is-compact .nx-chat-launcher span{max-width:0;opacity:0}
.nx-chat.is-compact .nx-chat-launcher:hover,.nx-chat.is-compact .nx-chat-launcher:focus-visible{width:auto;padding:0 20px 0 15px;gap:10px}
.nx-chat.is-compact .nx-chat-launcher:hover span,.nx-chat.is-compact .nx-chat-launcher:focus-visible span{max-width:120px;opacity:1}
@media (max-width:640px){.nx-chat-launcher{width:52px;height:52px;padding:0}.nx-chat.is-compact .nx-chat-launcher:hover{width:52px;padding:0}}
/* Launcher v2: solid bubble icon, thin ring, online dot */
.nx-chat-launcher{position:relative;height:56px;padding:0 22px 0 14px;gap:10px;border:0;box-shadow:0 0 0 4px rgba(255,255,255,.9),0 10px 24px rgba(6,70,40,.3)}
.nx-chat-launcher svg.nx-chat-ico{flex:none;width:30px;height:30px;stroke:none}
.nx-chat-online{position:absolute;top:4px;left:38px;width:11px;height:11px;border-radius:50%;background:#7ee08a;box-shadow:0 0 0 2px #0a8a4a}
.nx-chat.is-compact .nx-chat-launcher{width:58px;height:58px}
.nx-chat.is-compact .nx-chat-online{left:auto;right:9px;top:9px}
.nx-chat.is-compact .nx-chat-launcher:hover .nx-chat-online{right:auto;left:38px;top:4px}
@media (max-width:640px){.nx-chat-launcher{width:54px;height:54px;padding:0}.nx-chat-online{left:auto;right:8px;top:8px}}
