/* استایل ماژول‌های فاز ۱ — کاملاً RTL با ویژگی‌های منطقی. */

/* ایمن‌سازی در برابر هر قالب: box-sizing و تصاویر داخل بلوک‌های ما را کنترل می‌کنیم
   (بدون نشت به استایل قالب؛ فقط فرزندان عناصر خودمان). */
.sp-block,
.sp-block *,
.sp-cr-overlay,
.sp-cr-overlay *,
.sp-xs-overlay,
.sp-xs-overlay * {
	box-sizing: border-box;
}

.sp-block img {
	max-inline-size: 100%;
	block-size: auto;
}

.sp-block {
	direction: rtl;
	text-align: start;
	margin-block: 8px;
	max-inline-size: 100%;
	font-size: 13px;
}

/* نشان‌های اعتماد */
.sp-trust-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.sp-trust-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #444;
}

.sp-trust-badge img {
	block-size: 44px;
	inline-size: auto;
	object-fit: contain;
}

/* جعبه‌ی پرداخت امن */
.sp-secure-box {
	border: 1px solid #c3e6cb;
	background: #f3fbf5;
	border-radius: 8px;
	padding: 12px 14px;
}

.sp-secure-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #1a7f37;
}

.sp-secure-box .sp-trust-badges {
	margin-block-start: 10px;
}

/* ضمانت (مینیمال) */
.sp-guarantee {
	display: flex;
	align-items: center;
	gap: 8px;
	border: none;
	border-inline-start: 3px solid #f0a500;
	background: transparent;
	border-radius: 0;
	padding: 4px 12px;
	color: #475467;
}

.sp-guarantee-icon {
	font-size: 18px;
}

/* اثبات اجتماعی */
.sp-social-proof {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-block: 8px;
}

.sp-sp-rating {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sp-sp-units {
	color: #d63638;
	font-weight: 600;
}

.sp-sp-recent {
	color: #646970;
	font-size: 13px;
}

/* پاداش آستانه‌ای */
.sp-threshold {
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 14px;
	background: #fff;
}

.sp-threshold-tier {
	margin-block-end: 12px;
}

.sp-threshold-tier:last-child {
	margin-block-end: 0;
}

.sp-threshold-msg {
	font-weight: 600;
	margin-block-end: 6px;
}

.sp-threshold-track {
	background: #f0f0f1;
	border-radius: 6px;
	block-size: 14px;
	overflow: hidden;
}

.sp-threshold-fill {
	background: linear-gradient(90deg, #1a7f37, #46b450);
	block-size: 100%;
	border-radius: 6px;
	transition: inline-size 0.3s ease;
}

.sp-threshold-tier.sp-reached .sp-threshold-msg {
	color: #1a7f37;
}

/* خرید با هم */
.sp-fbt {
	border-block-start: 1px solid #eee;
	padding-block-start: 16px;
}

.sp-fbt-title {
	font-size: 18px;
	margin-block-end: 12px;
}

.sp-fbt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 14px;
}

.sp-fbt-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: center;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 10px;
}

.sp-fbt-item img {
	inline-size: 100%;
	block-size: auto;
	border-radius: 6px;
}

.sp-fbt-name {
	font-size: 13px;
	display: block;
}

.sp-fbt-add-all {
	margin-block-start: 14px;
	display: inline-block;
}

/* مزایا (مینیمال) */
.sp-benefits {
	background: transparent;
	border: none;
	border-inline-start: 3px solid #d6e8fb;
	border-radius: 0;
	padding: 4px 12px;
}

.sp-benefits-title {
	font-weight: 700;
	margin-block-end: 6px;
	color: #475467;
	font-size: 13px;
}

.sp-benefits-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sp-benefits-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-block: 4px;
}

.sp-check {
	color: #1a7f37;
	font-weight: 700;
}

/* ترکیبات (مینیمال) */
.sp-ingredients {
	border: none;
	border-inline-start: 3px solid #e6d6fb;
	background: transparent;
	border-radius: 0;
	padding: 4px 12px;
}

.sp-ingredients-title {
	font-weight: 700;
	margin-block-end: 6px;
	color: #475467;
	font-size: 13px;
}

.sp-ingredients-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sp-ingredients-list li {
	display: flex;
	gap: 8px;
	margin-block: 4px;
}

.sp-ingredient-amount {
	font-weight: 700;
	color: #6b21a8;
	min-inline-size: 90px;
}

/* مدت مصرف (مینیمال، خط‌چین سبک) */
.sp-consumption {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #475467;
	font-size: 13px;
	border: none;
	border-inline-start: 3px solid #2271b1;
	background: transparent;
	border-radius: 0;
	padding: 4px 12px;
}

.sp-consumption-icon {
	font-size: 17px;
}

/* نشانگر مراحل تسویه‌حساب */
.sp-progress-steps {
	display: flex;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	gap: 6px;
}

.sp-progress-steps .sp-step {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 6px;
	justify-content: center;
	padding: 8px 6px;
	border-radius: 6px;
	background: #f0f0f1;
	color: #646970;
	font-size: 13px;
}

.sp-progress-steps .sp-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 22px;
	block-size: 22px;
	border-radius: 50%;
	background: #c3c4c7;
	color: #fff;
}

.sp-progress-steps .sp-current {
	background: #2271b1;
	color: #fff;
}

.sp-progress-steps .sp-current .sp-step-num {
	background: #fff;
	color: #2271b1;
}

.sp-progress-steps .sp-done {
	background: #d7f0dd;
	color: #1a7f37;
}

.sp-progress-steps .sp-done .sp-step-num {
	background: #1a7f37;
}

/* تأیید شماره تماس */
.sp-address-confidence {
	border: 1px solid #ffe1a8;
	background: #fff8e6;
	border-radius: 8px;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.sp-confidence-phone {
	direction: ltr;
	unicode-bidi: embed;
	color: #b26a00;
	overflow-wrap: anywhere;
}

/* ===== واکنش‌گرا (موبایل) ===== */
@media (max-width: 480px) {
	/* خرید با هم: دو ستون روی موبایل */
	.sp-fbt-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.sp-fbt-title {
		font-size: 16px;
	}

	/* نشانگر مراحل: جمع‌وجورتر و بدون سرریز */
	.sp-progress-steps {
		gap: 4px;
	}

	.sp-progress-steps .sp-step {
		flex-direction: column;
		gap: 3px;
		padding: 6px 2px;
		font-size: 11px;
		min-inline-size: 0;
		text-align: center;
	}

	.sp-progress-steps .sp-step-label {
		line-height: 1.2;
	}

	/* نشان‌های اعتماد کمی فشرده‌تر */
	.sp-trust-badge img {
		block-size: 38px;
	}

	/* ترکیبات: عرض ثابت مقدار را آزاد کن تا سرریز نشود */
	.sp-ingredient-amount {
		min-inline-size: 64px;
	}
}

@media (max-width: 360px) {
	.sp-fbt-grid {
		grid-template-columns: 1fr;
	}
}
