/* NEXANET — دکمه شناور تماس (front-end)
   Positions, colours and sizes come from inline CSS variables printed by
   Core\CallButton::dynamic_css(). This file only holds the static shell. */

.nxcb-root{
	position:fixed;
	z-index:99990;
	display:flex;
	flex-direction:column;
	gap:14px;
	font-family:inherit;
	line-height:1.7;
}

.nxcb-root *,
.nxcb-root *::before,
.nxcb-root *::after{box-sizing:border-box}

/* ------------------------------------------------------------------ */
/* Floating button                                                     */
/* ------------------------------------------------------------------ */

.nxcb-fab{
	position:relative;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:9px;
	min-width:var(--nxcb-size,56px);
	height:var(--nxcb-size,56px);
	padding:0;
	border:0;
	border-radius:999px;
	cursor:pointer;
	color:var(--nxcb-ic,#fff);
	background:linear-gradient(135deg,var(--nxcb-c1,#3b5bff),var(--nxcb-c2,#2417c9));
	box-shadow:0 10px 26px rgba(20,25,60,.28);
	transition:transform .22s ease,box-shadow .22s ease,border-radius .22s ease;
	-webkit-tap-highlight-color:transparent;
}

.nxcb-fab:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(20,25,60,.34)}
.nxcb-fab:active{transform:scale(.96)}
.nxcb-fab:focus-visible{outline:3px solid rgba(255,255,255,.9);outline-offset:3px}

.nxcb-fab-glyph,
.nxcb-fab-close{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:calc(var(--nxcb-size,56px) * .48);
	height:calc(var(--nxcb-size,56px) * .48);
	flex:0 0 auto;
	transition:transform .25s ease,opacity .18s ease;
}

.nxcb-fab-glyph svg,
.nxcb-fab-close svg{width:100%;height:100%;display:block}
.nxcb-fab-glyph img{width:100%;height:100%;object-fit:contain;display:block;border-radius:6px}

/* The X sits on top of the normal glyph and swaps in when open. */
.nxcb-fab-close{position:absolute;inset:0;margin:auto;opacity:0;transform:rotate(-90deg) scale(.6);pointer-events:none}

.nxcb-fab-text{
	font-size:14px;
	font-weight:700;
	white-space:nowrap;
	padding-inline-end:18px;
	transition:opacity .18s ease,max-width .25s ease;
	max-width:240px;
	overflow:hidden;
}

.nxcb-fab.nxcb-has-text .nxcb-fab-glyph{margin-inline-start:16px}
.nxcb-fab.nxcb-no-icon .nxcb-fab-glyph{display:none}.nxcb-fab.nxcb-no-icon .nxcb-fab-text{padding-inline:18px}.nxcb-root.is-open .nxcb-fab.nxcb-no-icon .nxcb-fab-close{display:inline-flex}

/* Open state → turns into a plain round close button. */
.nxcb-root.is-open .nxcb-fab-glyph{opacity:0;transform:rotate(90deg) scale(.6)}
.nxcb-root.is-open .nxcb-fab-close{opacity:1;transform:rotate(0) scale(1)}
.nxcb-root.is-open .nxcb-fab-text{opacity:0;max-width:0;padding-inline-end:0}
.nxcb-root.is-open .nxcb-fab{min-width:var(--nxcb-size,56px);width:var(--nxcb-size,56px)}
.nxcb-root.is-open .nxcb-fab .nxcb-fab-glyph{margin-inline-start:0}

/* ------------------------------------------------------------------ */
/* Blink / attention pulse                                             */
/* ------------------------------------------------------------------ */

.nxcb-fab.nxcb-blink::before,
.nxcb-fab.nxcb-blink::after{
	content:"";
	position:absolute;
	inset:0;
	border-radius:999px;
	background:linear-gradient(135deg,var(--nxcb-c1,#3b5bff),var(--nxcb-c2,#2417c9));
	z-index:-1;
	animation:nxcb-pulse 2.2s ease-out infinite;
}

.nxcb-fab.nxcb-blink::after{animation-delay:1.1s}

.nxcb-root.is-open .nxcb-fab::before,
.nxcb-root.is-open .nxcb-fab::after{animation:none;opacity:0}

@keyframes nxcb-pulse{
	0%{transform:scale(1);opacity:.55}
	70%{transform:scale(1.55);opacity:0}
	100%{transform:scale(1.55);opacity:0}
}

@media (prefers-reduced-motion:reduce){
	.nxcb-fab.nxcb-blink::before,
	.nxcb-fab.nxcb-blink::after{animation:none;opacity:0}
	.nxcb-panel,.nxcb-fab,.nxcb-fab-glyph,.nxcb-fab-close{transition:none!important}
}

/* ------------------------------------------------------------------ */
/* Pop-up card                                                         */
/* ------------------------------------------------------------------ */

.nxcb-panel{
	width:min(320px,calc(100vw - 32px));
	background:var(--nxcb-panel-bg,#fff);
	border-radius:20px;
	padding:16px;
	box-shadow:0 18px 46px rgba(20,25,60,.20),0 2px 8px rgba(20,25,60,.08);
	opacity:0;
	transform:translateY(14px) scale(.94);
	transition:opacity .2s ease,transform .22s cubic-bezier(.2,.9,.3,1.2);
	max-height:min(72vh,620px);
	overflow-y:auto;
	overscroll-behavior:contain;
}

.nxcb-panel[hidden]{display:none}
.nxcb-root.is-open .nxcb-panel{opacity:1;transform:translateY(0) scale(1)}

.nxcb-panel-head{text-align:center;padding:6px 4px 14px;border-bottom:1px solid rgba(20,25,60,.08);margin-bottom:12px}
.nxcb-panel-title{margin:0 0 4px;font-size:16px;font-weight:800;color:var(--nxcb-title,#151a33);line-height:1.6}
.nxcb-panel-sub{margin:0;font-size:12.5px;color:var(--nxcb-text,#2b3050);opacity:.7;line-height:1.7}

.nxcb-list{display:flex;flex-direction:column;gap:10px}

.nxcb-item{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	padding:9px 12px 9px 9px;
	border-radius:14px;
	background:rgba(20,25,60,.035);
	text-decoration:none;
	box-shadow:none;
	transition:background .16s ease,transform .16s ease;
}

.nxcb-item:focus-visible{outline:2px solid color-mix(in srgb,var(--nxcb-item-c1,#5b3ff5) 55%,#fff);outline-offset:2px;text-decoration:none}
.nxcb-item.nxcb-hover-enabled:hover{
	background:linear-gradient(135deg,color-mix(in srgb,var(--nxcb-item-c1,#5b3ff5) 18%,transparent),color-mix(in srgb,var(--nxcb-item-c2,#3b82f6) 13%,transparent));
	box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--nxcb-item-c1,#5b3ff5) 22%,transparent),0 7px 18px rgba(20,25,60,.08);
	transform:translateY(-1px);text-decoration:none
}

.nxcb-item-label{
	flex:1;
	font-size:13.5px;
	font-weight:700;
	color:var(--nxcb-text,#2b3050);
	text-align:start;
}

.nxcb-item-icon{
	flex:0 0 auto;
	width:46px;
	height:46px;
	border-radius:14px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	color:#fff;
	box-shadow:0 6px 16px rgba(20,25,60,.18);
	overflow:hidden;
}

.nxcb-item-icon svg{width:24px;height:24px;display:block}
.nxcb-item-icon img{width:100%;height:100%;object-fit:cover;display:block}

@media (max-width:480px){
	.nxcb-panel{width:calc(100vw - 28px)}
	.nxcb-fab-text{font-size:13px}
}

/* Themes */
.nxcb-theme-rail .nxcb-panel{background:transparent;box-shadow:none;padding:0;overflow:visible;width:auto;max-width:none}.nxcb-theme-rail .nxcb-panel-head{display:none}.nxcb-theme-rail .nxcb-list{align-items:flex-end;gap:8px}.nxcb-theme-rail .nxcb-item{width:58px;min-width:58px;max-width:58px;height:58px;gap:0;background:var(--nxcb-panel-bg,#fff);box-shadow:0 8px 22px rgba(20,25,60,.18);padding:6px;border-radius:14px;overflow:hidden;justify-content:flex-end;transition:width .22s ease,max-width .22s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}.nxcb-theme-rail .nxcb-item-label{flex:0 0 auto;max-width:0;width:0;opacity:0;overflow:hidden;white-space:nowrap;padding:0;transition:max-width .22s ease,width .22s ease,opacity .16s ease,padding .22s ease}.nxcb-theme-rail .nxcb-item.nxcb-hover-enabled:hover{width:auto;max-width:260px}.nxcb-theme-rail .nxcb-item.nxcb-hover-enabled:hover .nxcb-item-label{width:auto;max-width:180px;opacity:1;padding-inline:8px 6px}.nxcb-theme-rail .nxcb-item-icon{width:46px;height:46px;min-width:46px;flex-basis:46px}.nxcb-theme-rail .nxcb-chat-launch{width:58px;max-width:58px}
.nxcb-theme-compact .nxcb-panel{background:#eef1f6;border-radius:22px;padding:12px}.nxcb-theme-compact .nxcb-list{background:var(--nxcb-panel-bg,#fff);padding:10px;border-radius:18px}.nxcb-theme-compact .nxcb-item{background:#fff;border:1px solid rgba(20,25,60,.07);box-shadow:0 4px 12px rgba(20,25,60,.06)}
.nxcb-theme-agents .nxcb-panel{border:1px solid rgba(20,25,60,.08);box-shadow:0 18px 50px rgba(20,25,60,.2)}.nxcb-theme-agents .nxcb-item{border-radius:999px;background:#fff;border:1px solid rgba(20,25,60,.1);padding:6px 10px}.nxcb-theme-agents .nxcb-item-icon{border-radius:50%}
.nxcb-theme-glass .nxcb-panel{
	position:relative;isolation:isolate;overflow:hidden;
	background:linear-gradient(145deg,rgba(255,255,255,.32),rgba(255,255,255,.10));
	-webkit-backdrop-filter:blur(24px) saturate(165%);backdrop-filter:blur(24px) saturate(165%);
	border:1px solid rgba(255,255,255,.52);
	box-shadow:0 24px 70px rgba(15,23,42,.24),inset 0 1px 0 rgba(255,255,255,.58),inset 0 -1px 0 rgba(255,255,255,.10)
}
.nxcb-theme-glass .nxcb-panel::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 15% 0%,rgba(255,255,255,.42),transparent 40%),linear-gradient(135deg,color-mix(in srgb,var(--nxcb-c1,#5b3ff5) 9%,transparent),color-mix(in srgb,var(--nxcb-c2,#3b82f6) 7%,transparent))}
.nxcb-theme-glass .nxcb-panel-head{border-bottom-color:rgba(255,255,255,.30);text-shadow:0 1px 1px rgba(255,255,255,.22)}
.nxcb-theme-glass .nxcb-item{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.34);box-shadow:inset 0 1px 0 rgba(255,255,255,.30),0 8px 20px rgba(15,23,42,.07);-webkit-backdrop-filter:blur(12px) saturate(140%);backdrop-filter:blur(12px) saturate(140%)}
.nxcb-theme-glass .nxcb-item.nxcb-hover-enabled:hover{background:linear-gradient(135deg,color-mix(in srgb,var(--nxcb-item-c1,#5b3ff5) 23%,rgba(255,255,255,.16)),color-mix(in srgb,var(--nxcb-item-c2,#3b82f6) 18%,rgba(255,255,255,.10)));border-color:rgba(255,255,255,.58);box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 12px 28px rgba(15,23,42,.12)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.nxcb-theme-glass .nxcb-panel{background:rgba(238,242,255,.92)}.nxcb-theme-glass .nxcb-item{background:rgba(255,255,255,.72)}}
.nxcb-chat-launch{border:0;width:100%;font:inherit;cursor:pointer}.nxcb-chat-icon{background:linear-gradient(135deg,var(--nxchat-p1),var(--nxchat-p2))}
.nxcb-chat-standalone{display:flex;align-items:center;gap:9px;border:0;border-radius:999px;padding:0 18px;height:var(--nxcb-size,56px);cursor:pointer;color:#fff;background:linear-gradient(135deg,var(--nxchat-p1),var(--nxchat-p2));box-shadow:0 12px 30px rgba(20,25,60,.28);font:inherit;font-weight:800}.nxcb-chat-standalone svg{width:25px;height:25px}
/* Live chat */
.nxchat-window{width:min(360px,calc(100vw - 28px));height:min(540px,72vh);background:var(--nxchat-bg,#fff);color:var(--nxchat-text,#151a33);border-radius:22px;box-shadow:0 22px 60px rgba(15,23,42,.28);overflow:hidden;display:flex;flex-direction:column;border:1px solid rgba(20,25,60,.08)}.nxchat-window[hidden]{display:none}.nxchat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 16px;color:#fff;background:linear-gradient(135deg,var(--nxchat-p1),var(--nxchat-p2))}.nxchat-head strong{display:block;font-size:15px}.nxchat-head small{display:block;opacity:.86;font-size:11.5px;margin-top:3px}.nxchat-head button{border:0;background:rgba(255,255,255,.16);color:#fff;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:22px;line-height:1}.nxchat-body{flex:1;overflow:auto;padding:14px;background:linear-gradient(180deg,color-mix(in srgb,var(--nxchat-bg) 94%,#f4f6fb),var(--nxchat-bg));overscroll-behavior:contain}.nxchat-welcome{background:rgba(20,25,60,.045);padding:11px 13px;border-radius:14px;font-size:12.5px;line-height:1.8;margin-bottom:12px}.nxchat-msg{max-width:82%;padding:9px 11px;margin:8px 0;border-radius:15px;font-size:13px;line-height:1.75;white-space:pre-wrap;word-break:break-word}.nxchat-msg.visitor{margin-right:auto;background:linear-gradient(135deg,var(--nxchat-p1),var(--nxchat-p2));color:#fff;border-bottom-left-radius:5px}.nxchat-msg.admin{margin-left:auto;background:rgba(20,25,60,.065);color:var(--nxchat-text);border-bottom-right-radius:5px}.nxchat-msg time{display:block;font-size:9px;opacity:.65;margin-top:4px}.nxchat-form{display:flex;align-items:flex-end;gap:8px;padding:10px;border-top:1px solid rgba(20,25,60,.08);background:var(--nxchat-bg)}.nxchat-form textarea{flex:1;min-height:42px;max-height:110px;border:1px solid rgba(20,25,60,.14);border-radius:14px;padding:10px 12px;resize:none;font:inherit;color:inherit;background:transparent;outline:none}.nxchat-form textarea:focus{border-color:var(--nxchat-p1);box-shadow:0 0 0 3px color-mix(in srgb,var(--nxchat-p1) 13%,transparent)}.nxchat-form button{width:42px;height:42px;border:0;border-radius:13px;color:#fff;background:linear-gradient(135deg,var(--nxchat-p1),var(--nxchat-p2));cursor:pointer}.nxchat-form button:disabled{opacity:.5}.nxchat-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
@media(max-width:480px){.nxchat-window{height:min(520px,72vh)}}
/* Live chat 2.0 additions */
.nxchat-presence{display:block;margin-top:5px;font-size:10.5px;opacity:.9}.nxchat-presence.is-online{color:#dcfce7}.nxchat-prechat{padding:18px;background:var(--nxchat-bg);overflow:auto;flex:1}.nxchat-prechat>strong{display:block;font-size:16px;margin-bottom:4px}.nxchat-prechat>p{font-size:12px;opacity:.7;margin:0 0 14px}.nxchat-prechat form{display:grid;gap:9px}.nxchat-prechat input{width:100%;height:42px;border:1px solid rgba(20,25,60,.14);border-radius:12px;padding:0 12px;font:inherit}.nxchat-prechat button{height:42px;border:0;border-radius:12px;color:#fff;background:linear-gradient(135deg,var(--nxchat-p1),var(--nxchat-p2));font:inherit;font-weight:800;cursor:pointer}.nxchat-msg.ai{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--nxchat-p1) 20%,transparent)}.nxchat-msg img{display:block;max-width:220px;max-height:240px;border-radius:11px;object-fit:cover}.nxchat-upload{width:40px;height:40px;border-radius:12px;border:1px solid rgba(20,25,60,.12);display:grid;place-items:center;cursor:pointer;font-size:22px;font-weight:500;flex:0 0 40px}.nxchat-upload.is-loading{opacity:.45;pointer-events:none}.nxchat-proactive{max-width:250px;border:0;border-radius:16px;background:#fff;color:#1f2937;padding:11px 14px;box-shadow:0 12px 35px rgba(15,23,42,.2);font:inherit;font-size:12px;line-height:1.7;cursor:pointer;animation:nxcb-pop .2s ease}.nxchat-proactive:before{content:'💬';margin-left:7px}
.nxchat-head-actions{display:flex;align-items:center;gap:6px}.nxchat-head .nxchat-human{width:auto;height:30px;border-radius:999px;padding:0 9px;font-size:10px;font-weight:800;background:rgba(255,255,255,.16)}
.nxchat-head-actions{display:flex;align-items:center;gap:6px}.nxchat-head .nxchat-human{width:auto;height:30px;border-radius:999px;padding:0 9px;font-size:10px;font-weight:800;background:rgba(255,255,255,.16)}
/* AI reply is requested after the visitor message has already been stored. */
.nxchat-typing{min-width:92px}
.nxchat-typing-dots{display:flex;align-items:center;gap:4px;height:18px}
.nxchat-typing-dots span{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.35;animation:nxchat-dot 1s ease-in-out infinite}
.nxchat-typing-dots span:nth-child(2){animation-delay:.15s}.nxchat-typing-dots span:nth-child(3){animation-delay:.3s}
.nxchat-msg a{color:inherit;text-decoration:underline;text-underline-offset:2px;word-break:break-all}
@keyframes nxchat-dot{0%,60%,100%{transform:translateY(0);opacity:.28}30%{transform:translateY(-4px);opacity:.85}}
@media (prefers-reduced-motion:reduce){.nxchat-typing-dots span{animation:none}}
.nxchat-system-notice{margin:10px auto;padding:8px 11px;max-width:92%;border-radius:10px;background:rgba(245,158,11,.10);color:#92400e;font-size:11px;line-height:1.7;text-align:center;border:1px solid rgba(245,158,11,.18)}

/* NEXANET Chat 3.53 — speed, desktop side panel, products and orders */
.nxchat-pending{opacity:.72}.nxchat-pending time:before{content:'• ';animation:nxchat-pulse-dot 1s ease-in-out infinite}.nxchat-failed{outline:1px solid rgba(220,38,38,.22);background:#fee2e2!important;color:#991b1b!important}.nxchat-failed time{color:#b91c1c}
@keyframes nxchat-pulse-dot{0%,100%{opacity:.25}50%{opacity:1}}
.nxchat-product-list{display:grid;gap:9px;margin:10px 0 14px;max-width:94%}.nxchat-product-card{display:flex;align-items:center;gap:10px;padding:9px;background:color-mix(in srgb,var(--nxchat-bg,#fff) 93%,#eef2ff);border:1px solid rgba(20,25,60,.08);border-radius:15px;color:var(--nxchat-text,#151a33)!important;text-decoration:none!important;box-shadow:0 5px 16px rgba(15,23,42,.05);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.nxchat-product-card:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--nxchat-p1) 40%,transparent);box-shadow:0 9px 24px rgba(15,23,42,.10)}.nxchat-product-card img{width:58px;height:58px;flex:0 0 58px;border-radius:12px;object-fit:cover;background:#fff}.nxchat-product-info{min-width:0;display:grid;gap:2px}.nxchat-product-info strong{font-size:12.5px;line-height:1.6}.nxchat-product-info small{font-size:10.5px;opacity:.72}.nxchat-product-info em{font-size:10.5px;font-style:normal;color:var(--nxchat-p1);font-weight:800}
.nxchat-tools{padding:8px 10px 0;background:var(--nxchat-bg,#fff);display:flex;gap:8px}.nxchat-order-toggle{border:1px solid color-mix(in srgb,var(--nxchat-p1) 65%,#fff);background:transparent;color:var(--nxchat-p1);border-radius:999px;padding:6px 12px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.nxchat-orders{max-height:62%;overflow:auto;background:var(--nxchat-bg,#fff);border-bottom:1px solid rgba(20,25,60,.08);padding:10px}.nxchat-orders-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.nxchat-orders-head strong{font-size:13px}.nxchat-orders-head button{border:0;background:rgba(20,25,60,.06);width:29px;height:29px;border-radius:50%;cursor:pointer;font-size:18px;color:inherit}.nxchat-order-card{width:100%;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;text-align:right;border:1px solid rgba(20,25,60,.08);background:#fff;border-radius:15px;padding:9px;margin:7px 0;color:inherit;cursor:pointer;font:inherit}.nxchat-order-card:hover{border-color:color-mix(in srgb,var(--nxchat-p1) 38%,transparent);box-shadow:0 6px 18px rgba(15,23,42,.07)}.nxchat-order-icon{width:34px;height:34px;border-radius:50%;background:#f2f5f9;display:grid;place-items:center}.nxchat-order-card strong{display:block;font-size:12px}.nxchat-order-card small{display:block;font-size:9.5px;opacity:.62;margin-top:2px}.nxchat-order-card em{font-style:normal;font-size:9.5px;padding:4px 7px;border-radius:999px;background:#e9f8ee;color:#237a43;font-weight:800}.nxchat-orders-loading,.nxchat-orders-empty{padding:20px;text-align:center;font-size:12px;opacity:.68}.nxchat-order-detail{display:grid;gap:9px;font-size:11.5px}.nxchat-order-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border-radius:12px;background:#f6f7fb}.nxchat-order-status b{color:var(--nxchat-p1)}.nxchat-order-status span{opacity:.65}.nxchat-order-total{font-size:12px}.nxchat-order-item,.nxchat-track{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px dashed rgba(20,25,60,.10);color:inherit;text-decoration:none}.nxchat-order-detail h4{margin:7px 0 0;font-size:12px}.nxchat-order-note{padding:8px 10px;background:#f7f8fb;border-radius:10px}.nxchat-order-note span,.nxchat-order-note small{display:block}.nxchat-order-note small{opacity:.55;margin-top:3px;font-size:9px}
@media (min-width:783px){.nxchat-layout-sidebar.nxchat-open .nxchat-window{position:fixed!important;top:0!important;bottom:0!important;height:100dvh!important;max-height:none!important;width:min(430px,100vw)!important;border-radius:0!important;box-shadow:0 0 42px rgba(15,23,42,.24)!important}.nxchat-layout-sidebar .nxchat-body{padding:16px 18px}.nxchat-layout-sidebar .nxchat-head{padding:18px}.nxchat-layout-sidebar .nxchat-form{padding:12px 14px}.nxchat-layout-sidebar .nxchat-orders{max-height:55vh}}
@media(max-width:782px){.nxchat-product-list{max-width:100%}.nxchat-orders{max-height:55vh}}

/* NEXANET Chat 3.54 — visual refinement, inline order tracking, product showcase */
.nxcb-root{font-family:Vazirmatn,IRANSansX,Tahoma,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.nxchat-window{width:min(392px,calc(100vw - 24px));height:min(640px,82vh);border-radius:26px;box-shadow:0 24px 70px rgba(15,23,42,.20),0 5px 24px rgba(15,23,42,.10);border-color:rgba(15,23,42,.07)}
.nxchat-head{padding:18px 18px 16px;background:linear-gradient(135deg,var(--nxchat-p1),var(--nxchat-p2));position:relative;overflow:hidden}
.nxchat-head:before{content:"";position:absolute;inset:auto -40px -55px auto;width:130px;height:130px;border-radius:50%;background:rgba(255,255,255,.11)}
.nxchat-head strong{font-size:16px;font-weight:900;letter-spacing:-.01em}.nxchat-head small{font-size:12px;opacity:.92;line-height:1.8}.nxchat-presence{font-size:11px;margin-top:6px}
.nxchat-body{padding:14px 14px 16px;background:linear-gradient(180deg,#f7f9fc 0%,#ffffff 100%)}
.nxchat-welcome{background:linear-gradient(135deg,rgba(22,163,74,.10),rgba(59,130,246,.06));border:1px solid rgba(20,25,60,.05);padding:12px 14px;border-radius:18px;font-size:12.5px;line-height:1.95;color:#334155}
.nxchat-msg{max-width:86%;padding:11px 13px;border-radius:18px;font-size:13px;line-height:2;box-shadow:0 4px 18px rgba(15,23,42,.04)}
.nxchat-msg.visitor{border-bottom-left-radius:8px}.nxchat-msg.admin{background:#eef2f7;border-bottom-right-radius:8px}.nxchat-msg.ai{background:#edf4ff;box-shadow:inset 0 0 0 1px rgba(59,130,246,.12),0 4px 18px rgba(15,23,42,.04)}
.nxchat-msg time{font-size:10px;margin-top:6px}
.nxchat-prechat{padding:20px 18px 18px}.nxchat-prechat>strong{font-size:17px;font-weight:900}.nxchat-prechat>p{font-size:12px;line-height:1.9}
.nxchat-prechat input,.nxchat-form textarea{font-size:13px}
.nxchat-form{padding:11px 12px 13px;gap:9px;background:#fff}.nxchat-form textarea{min-height:44px;border-radius:16px;padding:11px 13px;line-height:1.9;background:#fbfcfe}
.nxchat-form button{width:44px;height:44px;border-radius:14px;box-shadow:0 8px 22px rgba(37,99,235,.22)}
.nxchat-upload{width:42px;height:42px;border-radius:14px;background:#fbfcfe}
.nxchat-footer-tools{padding:0 12px 8px;background:#fff}.nxchat-order-toggle{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:14px;border:1px solid color-mix(in srgb,var(--nxchat-p1) 26%,#dfe7f5);background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--nxchat-p1) 3%,#fff));font-size:12.5px;font-weight:900;color:var(--nxchat-p1);box-shadow:0 8px 20px rgba(15,23,42,.04)}
.nxchat-order-toggle:before{content:"🧾"}
.nxchat-inline-panel{margin:12px 0 8px;padding:12px;border-radius:18px;background:#f2f6fb;border:1px solid rgba(15,23,42,.06);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.nxchat-stream-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.nxchat-stream-head strong{display:block;font-size:13.5px;font-weight:900;color:#1e293b}.nxchat-stream-head span{display:block;font-size:10.5px;color:#64748b;margin-top:3px}.nxchat-stream-back{border:0;background:#fff;color:var(--nxchat-p1);padding:8px 11px;border-radius:12px;font:inherit;font-size:11px;font-weight:900;box-shadow:0 3px 10px rgba(15,23,42,.06);cursor:pointer}
.nxchat-order-list{display:grid;gap:8px}.nxchat-order-card{background:#fff;border:1px solid rgba(15,23,42,.07);border-radius:16px;padding:11px 10px;box-shadow:0 6px 18px rgba(15,23,42,.05)}
.nxchat-order-card strong{font-size:12.5px}.nxchat-order-card small{font-size:10.5px}.nxchat-order-card em{font-size:10px}.nxchat-order-icon{width:38px;height:38px;background:#eef4ff;border-radius:12px}
.nxchat-orders-loading,.nxchat-orders-empty{padding:16px 10px;text-align:center;font-size:12px;color:#64748b}
.nxchat-order-detail{display:grid;gap:10px}.nxchat-order-status{padding:12px 13px;border-radius:15px;background:#fff;border:1px solid rgba(15,23,42,.06)}.nxchat-order-status b{font-size:13px}
.nxchat-order-total,.nxchat-order-shipping{background:rgba(255,255,255,.7);padding:10px 12px;border-radius:13px;font-size:12px}
.nxchat-order-items{display:grid;gap:3px}.nxchat-order-item,.nxchat-track{background:#fff;padding:10px 12px;border-radius:12px;border:1px dashed rgba(15,23,42,.09)}
.nxchat-order-detail h4{margin:4px 0 0;font-size:12px;font-weight:900;color:#334155}.nxchat-order-note{background:#fff;border:1px solid rgba(15,23,42,.05);padding:10px 12px;border-radius:12px}.nxchat-order-note small{font-size:9.5px}
.nxchat-product-showcase{margin:8px 0 14px;max-width:100%}.nxchat-showcase-title{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-bottom:8px;padding:0 2px}.nxchat-showcase-title strong{font-size:13px;font-weight:900;color:#0f172a}.nxchat-showcase-title span{font-size:10.5px;color:#64748b}
.nxchat-product-grid{display:grid;grid-template-columns:1fr;gap:9px}.nxchat-product-card{display:grid;grid-template-columns:72px 1fr;align-items:stretch;gap:10px;padding:10px;background:#fff;border:1px solid rgba(15,23,42,.07);border-radius:18px;box-shadow:0 10px 22px rgba(15,23,42,.05);text-decoration:none!important;color:#0f172a!important}
.nxchat-product-card:hover{transform:translateY(-1px);box-shadow:0 16px 28px rgba(15,23,42,.08);border-color:color-mix(in srgb,var(--nxchat-p1) 28%,#dbe6f5)}
.nxchat-product-thumb{display:flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:16px;background:linear-gradient(180deg,#f8fafc,#eef2f7);overflow:hidden}.nxchat-product-thumb img{width:100%;height:100%;object-fit:cover;border-radius:16px}.nxchat-noimg{font-size:22px}
.nxchat-product-info{display:grid;gap:5px;min-width:0}.nxchat-product-info strong{font-size:12.5px;line-height:1.8;font-weight:900}.nxchat-product-info small{font-size:10.5px;line-height:1.9;color:#64748b;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nxchat-product-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.nxchat-product-meta b{font-size:12px;color:var(--nxchat-p1)}.nxchat-product-meta em{font-style:normal;font-size:10px;font-weight:900;color:#166534;background:#dcfce7;padding:4px 8px;border-radius:999px}.nxchat-product-link{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:900;color:var(--nxchat-p1)}.nxchat-product-link:after{content:"‹";font-size:14px;line-height:1}
.nxchat-system-notice{border-radius:14px;padding:10px 12px;font-size:11px}
@media(min-width:520px){.nxchat-product-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.nxchat-window{width:calc(100vw - 16px);height:min(86vh,680px);border-radius:22px}.nxchat-head{padding:16px}.nxchat-body{padding:12px}.nxchat-product-card{grid-template-columns:64px 1fr}.nxchat-product-thumb{width:64px;height:64px}}
@media (min-width:783px){.nxchat-layout-sidebar.nxchat-open .nxchat-window{width:min(470px,100vw)!important}.nxchat-layout-sidebar .nxchat-body{padding:18px}.nxchat-layout-sidebar .nxchat-window{border-radius:0!important}}

/* 3.55: one accessible, text-only product presentation. */
#nxchat-body .nxchat-product-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
#nxchat-body .nxchat-product-card.nxchat-product-text{display:block;padding:16px;border:1px solid #dfe6eb;border-radius:18px;background:#f5f8fa;box-shadow:0 3px 12px #0f172a08;color:#243647;text-align:right;min-width:0}
#nxchat-body .nxchat-product-text h3{font:inherit;font-weight:800;font-size:14px;line-height:1.9;margin:0 0 10px;color:inherit}
#nxchat-body .nxchat-product-text ul{padding:0 18px 0 0;margin:0;list-style:circle;font-size:13px;line-height:2.1;color:#526779}
#nxchat-body .nxchat-product-text li{margin:2px 0;overflow-wrap:anywhere}
#nxchat-body .nxchat-product-text p{font-size:12px;line-height:1.9;margin:10px 0;color:#526779}
#nxchat-body .nxchat-product-text .nxchat-product-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid currentColor;border-radius:10px;padding:7px 15px;margin-top:12px;background:#fff;color:#167044;text-decoration:none;font-size:12px;font-weight:700;min-height:36px}
#nxchat-body .nxchat-product-text .nxchat-product-link:hover{background:#eaf5ef}
#nxchat-body .nxchat-product-link:focus-visible{outline:3px solid #72a891;outline-offset:3px}
#nxchat-body .nxchat-product-showcase{width:100%;max-width:100%}
