/* Support Pro — استایل سمت بازدیدکننده. همه‌ی رنگ‌ها و اندازه‌ها متغیر CSS هستند (از تنظیمات افزونه یا ویجت المنتور). */

.spro-root {
	--spro-cur: var(--spro-size, 56px);
	position: fixed;
	bottom: var(--spro-dy, 28px);
	z-index: var(--spro-z, 99990);
	width: var(--spro-cur);
	height: var(--spro-cur);
	font-family: var(--spro-font, inherit);
	font-size: var(--spro-fs, 14px);
	line-height: 1.6;
	color: #111;
	text-align: start;
	-webkit-text-size-adjust: 100%;
}
.spro-root, .spro-root *, .spro-root *::before, .spro-root *::after { box-sizing: border-box; }
.spro-root [hidden] { display: none !important; }
.spro-pos-right { right: var(--spro-dx, 28px); }
.spro-pos-left { left: var(--spro-dx, 28px); }
.spro-root p, .spro-root h4 { margin: 0; padding: 0; }

@media (max-width: 767px) {
	.spro-root { --spro-cur: var(--spro-size-m, 48px); bottom: var(--spro-my, 16px); }
	.spro-pos-right { right: var(--spro-mx, 16px); }
	.spro-pos-left { left: var(--spro-mx, 16px); }
}

/* ------------------------------ دکمه‌ی شناور ------------------------------ */
.spro-root .spro-launcher {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	color: var(--spro-launcher-fg, #fff);
	background: var(--spro-launcher-bg, #00bad1);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
	cursor: pointer;
	transition: transform .2s, opacity .2s, box-shadow .2s;
	-webkit-tap-highlight-color: transparent;
}
.spro-root .spro-launcher:hover { transform: scale(1.06); box-shadow: 0 6px 18px rgba(0, 0, 0, .26); }
.spro-root .spro-launcher:focus-visible { outline: 3px solid var(--spro-btn-bg, #2a75bb); outline-offset: 3px; }
.spro-root .spro-licon { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.spro-root .spro-licon svg, .spro-root .spro-licon img { display: block; width: calc(var(--spro-cur) * .44); height: calc(var(--spro-cur) * .44); object-fit: contain; }
.spro-root .spro-ping {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--spro-ping, #00bad1);
	border-radius: 50%;
	opacity: .3;
	animation: spro-ping 2.6s cubic-bezier(0, 0, .2, 1) infinite;
	pointer-events: none;
}
@keyframes spro-ping {
	0% { transform: scale(1); opacity: .35; }
	75%, 100% { transform: scale(1.9); opacity: 0; }
}
.spro-root .spro-badge {
	position: absolute;
	top: -4px;
	inset-inline-end: -4px;
	z-index: 2;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	background: #e5383b;
	border-radius: 9px;
}
.spro-root .spro-dot {
	position: absolute;
	bottom: 1px;
	inset-inline-end: 1px;
	z-index: 2;
	width: 13px;
	height: 13px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #9ca3af;
}
.spro-root .spro-dot.is-online { background: #22c55e; }
.spro-root.spro-is-open .spro-launcher { opacity: 0; transform: scale(.6); pointer-events: none; }
.spro-root.spro-nolauncher .spro-launcher { display: none; }
html.spro-lock { overflow: hidden; }

/* ------------------------------ کارت خوش‌آمد ------------------------------ */
.spro-root .spro-teaser {
	position: absolute;
	bottom: calc(100% + 12px);
	display: flex;
	align-items: center;
	gap: 2px;
	width: max-content;
	max-width: min(260px, calc(100vw - 32px));
	padding: 4px;
	color: #111;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
	animation: spro-pop .3s ease-out;
}
.spro-pos-right .spro-teaser { right: 0; }
.spro-pos-left .spro-teaser { left: 0; }
.spro-root .spro-teaser-text { padding: 8px 12px; font: inherit; font-weight: 600; color: inherit; text-align: start; background: none; border: 0; cursor: pointer; }
.spro-root .spro-teaser-x { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; color: #667085; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.spro-root .spro-teaser-x:hover { background: #f1f4f7; }
@keyframes spro-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

/* --------------------------------- پنل --------------------------------- */
.spro-root .spro-panel {
	position: absolute;
	bottom: 0;
	display: block;
	width: var(--spro-panel-w, 360px);
	height: var(--spro-panel-h, 632px);
	max-height: calc(100vh - 2 * var(--spro-dy, 28px));
	max-height: calc(100dvh - 2 * var(--spro-dy, 28px));
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	color: #111;
	background: var(--spro-panel-bg, #fff);
	border-radius: var(--spro-panel-radius, 16px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
	outline: 0;
	visibility: hidden;
	opacity: 0;
	transform: translateY(14px) scale(.96);
	transform-origin: bottom right;
	transition: opacity .2s, transform .2s, visibility 0s .2s;
	scrollbar-width: thin;
}
.spro-pos-right .spro-panel { right: 0; }
.spro-pos-left .spro-panel { left: 0; transform-origin: bottom left; }
.spro-root .spro-panel.spro-show { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s, visibility 0s; }

/* هدر */
.spro-root .spro-head {
	position: relative;
	padding: 0 0 48px;
	color: var(--spro-head-fg, #fff);
	background: linear-gradient(var(--spro-angle, 90deg), var(--spro-h1, #00b7fd), var(--spro-h2, #2a75bb));
	border-radius: 0 0 var(--spro-panel-radius, 16px) var(--spro-panel-radius, 16px);
}
.spro-root .spro-sub .spro-head, .spro-root .spro-panel.spro-sub .spro-head { padding-bottom: 38px; }
.spro-root .spro-bar {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 16px 18px;
}
.spro-root .spro-panel.spro-scrolled .spro-bar { background: linear-gradient(var(--spro-angle, 90deg), var(--spro-h1, #00b7fd), var(--spro-h2, #2a75bb)); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.spro-root .spro-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	color: var(--spro-head-fg, #fff);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .15s;
}
.spro-root .spro-iconbtn:hover, .spro-root .spro-iconbtn:focus-visible { background: rgba(255, 255, 255, .22); outline: 0; }
.spro-root .spro-back { position: absolute; top: 16px; inset-inline-end: 18px; }
.spro-root[dir="ltr"] .spro-back svg { transform: scaleX(-1); }
.spro-root .spro-sub .spro-logo { visibility: hidden; }
.spro-root .spro-logo { width: var(--spro-logo-w, 110px); max-height: 38px; margin-inline-start: auto; object-fit: contain; }
.spro-root .spro-head-lines { padding: 6px 28px 0; font-weight: 500; }
.spro-root .spro-head-lines p { margin: 0 0 6px; }
.spro-root .spro-phone a { color: inherit; font-weight: 700; text-decoration: none; direction: ltr; unicode-bidi: isolate; }
.spro-root .spro-htitle { padding: 6px 28px 0; font-size: 1.2em; font-weight: 800; }
.spro-root .spro-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 2px 12px; font-size: .86em; font-weight: 600; background: rgba(255, 255, 255, .18); border-radius: 99px; }
.spro-root .spro-status::before { content: ""; width: 8px; height: 8px; background: #9ca3af; border-radius: 50%; }
.spro-root .spro-status.is-online::before { background: #4ade80; }

/* بدنه */
.spro-root .spro-body { position: relative; z-index: 2; padding: 0 22px 24px; margin-top: -34px; }
.spro-root .spro-panel.spro-sub .spro-body { margin-top: -24px; }
.spro-root .spro-cards, .spro-root .spro-explist { display: flex; flex-direction: column; gap: 12px; }
.spro-root .spro-note { padding: 10px 12px; font-size: .88em; font-weight: 600; color: #7a4d00; background: #fff7e0; border-radius: var(--spro-card-radius, 8px); }
.spro-root .spro-empty { padding: 18px 12px; text-align: center; opacity: .6; background: var(--spro-card-bg, #fff); border-radius: var(--spro-card-radius, 8px); box-shadow: 0 0 8px rgba(0, 0, 0, .1); }

/* کارت */
.spro-root .spro-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 20px 16px;
	background: var(--spro-card-bg, #fff);
	border-radius: var(--spro-card-radius, 8px);
	box-shadow: 0 0 8px rgba(0, 0, 0, .1);
}
.spro-root .spro-card-title { margin: 4px 0; font-weight: 700; line-height: 1.7; color: var(--spro-card-title, #111); }
.spro-root .spro-card-desc { margin: 0 0 18px; font-weight: 500; color: var(--spro-card-desc, #111); opacity: var(--spro-desc-op, .5); white-space: pre-line; }

/* دکمه */
.spro-root .spro-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	align-self: flex-end;
	margin: 0;
	padding: 8px 14px;
	font: inherit;
	font-size: .9em;
	font-weight: 600;
	line-height: 1.5;
	color: var(--spro-btn-outline, #2a75bb);
	text-decoration: none;
	background: transparent;
	border: 1.6px solid var(--spro-btn-outline, #2a75bb);
	border-radius: var(--spro-btn-radius, 96px);
	cursor: pointer;
	transition: background-color .15s, color .15s, filter .15s, border-color .15s;
}
.spro-root .spro-btn:hover, .spro-root .spro-btn:focus-visible { color: #fff; background: var(--spro-btn-outline, #2a75bb); }
.spro-root .spro-btn-filled { color: var(--spro-btn-fg, #fff); background: var(--spro-btn-bg, #2a75bb); border-color: var(--spro-btn-bg, #2a75bb); }
.spro-root .spro-btn-filled:hover, .spro-root .spro-btn-filled:focus-visible { color: var(--spro-btn-fg, #fff); background: var(--spro-btn-bg, #2a75bb); filter: brightness(.9); }
.spro-root .spro-btn:focus-visible { outline: 2px solid var(--spro-btn-bg, #2a75bb); outline-offset: 2px; }
.spro-root .spro-btn[disabled] { opacity: .6; cursor: default; }

/* کارشناسان */
.spro-root .spro-exp { padding: 14px; background: var(--spro-card-bg, #fff); border-radius: calc(var(--spro-card-radius, 8px) + 4px); box-shadow: 0 0 8px rgba(0, 0, 0, .1); }
.spro-root .spro-exp-name { font-weight: 700; color: var(--spro-card-title, #111); }
.spro-root .spro-exp-role { margin: 2px 0 10px; font-size: .86em; font-weight: 600; color: var(--spro-card-desc, #111); opacity: .55; }
.spro-root .spro-exp-row { display: flex; align-items: flex-start; gap: 12px; }
.spro-root .spro-avatar { flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.spro-root .spro-avatar-ph { display: inline-flex; align-items: center; justify-content: center; color: var(--spro-chip-fg, #111); font-weight: 700; background: var(--spro-chip-bg, #f1f4f7); }
.spro-root .spro-chatin { flex: 1 1 auto; min-width: 0; padding: 8px 10px; background: var(--spro-chip-bg, #f1f4f7); border-radius: 16px; }
.spro-root .spro-chatin-t { margin-bottom: 6px; font-size: .82em; font-weight: 600; color: var(--spro-chip-fg, #111); }
.spro-root .spro-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.spro-root .spro-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px;
	font-size: .84em;
	font-weight: 600;
	line-height: 1.6;
	color: var(--spro-chip-fg, #111);
	text-decoration: none;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 99px;
	transition: transform .15s, box-shadow .15s;
}
.spro-root .spro-chip:hover, .spro-root .spro-chip:focus-visible { color: var(--spro-chip-fg, #111); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0, 0, 0, .12); outline: 0; }
.spro-root .spro-chip-dot { width: 8px; height: 8px; border-radius: 50%; }
.spro-root .spro-chip-ico { width: 16px; height: 16px; object-fit: contain; }

/* فرم */
.spro-root .spro-formwrap, .spro-root .spro-success { padding: 16px; background: var(--spro-card-bg, #fff); border-radius: var(--spro-card-radius, 8px); box-shadow: 0 0 8px rgba(0, 0, 0, .1); }
.spro-root .spro-form-desc { margin: 0 0 12px; color: var(--spro-card-desc, #111); opacity: var(--spro-desc-op, .5); white-space: pre-line; }
.spro-root .spro-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.spro-root .spro-field { flex: 1 1 100%; min-width: 0; }
.spro-root .spro-field.is-half { flex: 1 1 calc(50% - 5px); }
.spro-root .spro-label { display: block; margin: 0 0 4px; font-size: .86em; font-weight: 600; color: var(--spro-card-title, #111); }
.spro-root .spro-input {
	display: block;
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 8px 12px;
	font: inherit;
	line-height: 1.5;
	color: #111;
	background: #fff;
	border: 1px solid #d0d5dd;
	border-radius: var(--spro-card-radius, 8px);
	box-shadow: none;
}
.spro-root textarea.spro-input { min-height: 84px; resize: vertical; }
.spro-root .spro-input:focus { outline: 2px solid var(--spro-btn-bg, #2a75bb); outline-offset: 0; border-color: var(--spro-btn-bg, #2a75bb); }
.spro-root .spro-radios { display: flex; flex-direction: column; gap: 6px; }
.spro-root .spro-radio { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; cursor: pointer; }
.spro-root .spro-radio input { margin: 0; }
.spro-root .spro-err { margin-top: 2px; font-size: .82em; color: #d92d20; }
.spro-root .spro-err:empty { display: none; }
.spro-root .spro-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.spro-root .spro-formmsg { margin: 10px 0 0; font-size: .88em; }
.spro-root .spro-formmsg:empty { display: none; }
.spro-root .spro-formmsg.is-err { color: #d92d20; }
.spro-root .spro-submit { align-self: auto; width: 100%; margin-top: 12px; }
.spro-root .spro-success { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px; text-align: center; }
.spro-root .spro-success p { white-space: pre-line; }
.spro-root .spro-ok { width: 48px; height: 48px; color: #fff; font-size: 26px; line-height: 48px; text-align: center; background: #16a34a; border-radius: 50%; }
.spro-root .spro-success .spro-btn { align-self: center; }

@media (prefers-reduced-motion: reduce) {
	.spro-root .spro-ping { animation: none; opacity: 0; }
	.spro-root .spro-panel, .spro-root .spro-launcher, .spro-root .spro-teaser { transition: none; animation: none; }
}
