/* وس — دکمهٔ «تماس با پشتیبانی» به‌جای قیمت صفر */

.was-pc {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 13px 4px 11px;
	border: 1px solid rgba(32, 64, 149, .25);
	border-radius: 999px;
	background: rgba(32, 64, 149, .06);
	color: var(--wd-primary-color, #204095) !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.9;
	text-decoration: none !important;
	white-space: nowrap;
	vertical-align: middle;
	max-width: 100%;
	/* کارت محصول وودمارت overflow:clip دارد؛ بدون این‌ها لبهٔ گرد دکمه در
	   چیدمان دوستونی موبایل بریده می‌شد. z-index هم لمس را مطمئن می‌کند. */
	position: relative;
	z-index: 2;
	touch-action: manipulation;
	transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* در موبایل دو محصول کنار هم می‌نشینند و عرض هر کارت حدود ۱۵۴ پیکسل است،
   پس دکمه باید جمع‌وجورتر شود تا کامل داخل کارت جا بگیرد. */
@media (max-width: 767px) {
	.was-pc {
		gap: 5px;
		padding: 4px 10px 4px 8px;
		font-size: 12.5px;
		line-height: 1.85;
	}

	.was-pc-i {
		width: 12px;
		height: 12px;
	}
}

@media (max-width: 400px) {
	.was-pc {
		padding: 4px 8px 4px 7px;
		font-size: 12px;
	}
}

.was-pc:hover,
.was-pc:focus-visible {
	background: var(--wd-primary-color, #204095);
	border-color: var(--wd-primary-color, #204095);
	color: #fff !important;
	box-shadow: 0 5px 16px rgba(32, 64, 149, .25);
	transform: translateY(-1px);
}

.was-pc-i {
	display: inline-flex;
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}

.was-pc-i svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.was-pc:hover .was-pc-i {
	animation: was-pc-ring .6s ease;
}

@keyframes was-pc-ring {
	0%, 100% { transform: rotate(0); }
	25%      { transform: rotate(-14deg); }
	75%      { transform: rotate(14deg); }
}

.single-product .elementor-widget-container > .price > .was-pc,
.single-product .summary > .price > .was-pc,
.single-product .woocommerce-variation-price .price > .was-pc {
	font-size: 15.5px;
	padding: 8px 20px 8px 16px;
}

.price .was-pc {
	font-size: 14px;
}

/* ───────── پنجرهٔ دسکتاپ ───────── */

.was-pc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}

.was-pc-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.was-pc-back {
	position: absolute;
	inset: 0;
	background: rgba(14, 20, 40, .55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.was-pc-box {
	position: relative;
	width: 100%;
	max-width: 340px;
	padding: 30px 26px 24px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(10, 18, 45, .3);
	text-align: center;
	direction: rtl;
	transform: translateY(14px) scale(.96);
	transition: transform .24s cubic-bezier(.2, .9, .3, 1.1);
}

.was-pc-modal.is-open .was-pc-box {
	transform: none;
}

.was-pc-x {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f3f7;
	color: #6b7280;
	font-size: 17px;
	line-height: 30px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.was-pc-x:hover {
	background: #e3e7ef;
	color: #111;
}

.was-pc-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: rgba(32, 64, 149, .09);
	color: var(--wd-primary-color, #204095);
}

.was-pc-badge svg {
	width: 25px;
	height: 25px;
	fill: currentColor;
}

.was-pc-h {
	margin: 0 0 4px;
	color: #16203a;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.7;
}

.was-pc-s {
	margin: 0 0 16px;
	color: #7a8299;
	font-size: 12.5px;
	line-height: 1.9;
}

.was-pc-num {
	display: block;
	margin: 0 0 14px;
	color: var(--wd-primary-color, #204095) !important;
	font-size: 29px;
	font-weight: 800;
	letter-spacing: 1px;
	text-decoration: none !important;
	direction: ltr;
	unicode-bidi: isolate;
}

.was-pc-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 20px;
	border: 1px solid rgba(32, 64, 149, .25);
	border-radius: 999px;
	background: transparent;
	color: var(--wd-primary-color, #204095);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background .16s ease, color .16s ease;
}

.was-pc-copy:hover {
	background: var(--wd-primary-color, #204095);
	color: #fff;
}

.was-pc-copy.is-done {
	border-color: #1f9d55;
	background: #1f9d55;
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.was-pc,
	.was-pc-box,
	.was-pc-modal { transition: none; }
	.was-pc:hover .was-pc-i { animation: none; }
}
