/* Abandoned Cart Recovery — popup styles
   Palette pulled from the store's own dashboard branding:
   primary green #16a34a, deep green #0f5132, warm amber for the coupon box. */

:root {
	--acr-primary: #16a34a;
	--acr-primary-dark: #0f7a38;
	--acr-ink: #0f172a;
	--acr-muted: #64748b;
	--acr-border: #e6ebf1;
	--acr-bg: #ffffff;
	--acr-amber: #f59e0b;
	--acr-amber-bg: #fff8ec;
}

.acr-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
	direction: rtl;
	font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
	animation: acr-fade-in 0.25s ease;
}

.acr-popup-overlay[hidden] {
	display: none;
}

@keyframes acr-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.acr-popup-card {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: 88vh;
	overflow-y: auto;
	background: var(--acr-bg);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
	animation: acr-pop-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes acr-pop-in {
	from { transform: translateY(16px) scale(0.97); opacity: 0; }
	to   { transform: translateY(0) scale(1); opacity: 1; }
}

.acr-popup-close-x {
	position: absolute;
	top: 14px;
	left: 14px;
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.acr-popup-header {
	background: var(--acr-primary);
	border-radius: 20px 20px 0 0;
	padding: 26px 22px 20px;
}

.acr-popup-title {
	margin: 0;
	color: #fff;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.6;
}

.acr-popup-body {
	padding: 18px 20px 4px;
}

.acr-popup-message {
	color: var(--acr-muted);
	font-size: 14px;
	line-height: 1.9;
	margin-bottom: 14px;
}

.acr-popup-products {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.acr-product-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
	border: 1px solid var(--acr-border);
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 13.5px;
	color: var(--acr-ink);
}

.acr-popup-total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 4px;
	border-top: 1px dashed var(--acr-border);
	margin-top: 6px;
	font-size: 14px;
	color: var(--acr-ink);
}

.acr-popup-total-row[hidden] {
	display: none;
}

.acr-popup-total-row strong {
	color: var(--acr-primary);
	font-size: 16px;
}

.acr-popup-coupon {
	margin: 14px 0 18px;
	background: var(--acr-amber-bg);
	border: 1.5px dashed var(--acr-amber);
	border-radius: 14px;
	padding: 14px 16px;
	text-align: center;
}

.acr-popup-coupon-label {
	font-size: 13px;
	color: #92620a;
	margin-bottom: 8px;
	font-weight: 600;
}

.acr-popup-coupon-code {
	display: inline-block;
	background: #fff;
	border: 1px solid var(--acr-amber);
	border-radius: 8px;
	padding: 6px 18px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--acr-ink);
	direction: ltr;
}

.acr-popup-actions {
	display: flex;
	gap: 10px;
	padding: 4px 20px 22px;
}

.acr-btn {
	flex: 1;
	border: none;
	border-radius: 12px;
	padding: 13px 12px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.acr-btn:active {
	transform: scale(0.97);
}

.acr-btn-primary {
	background: var(--acr-primary);
	color: #fff;
}

.acr-btn-primary:hover {
	filter: brightness(0.92);
}

.acr-btn-outline {
	background: #fff;
	color: var(--acr-muted);
	border: 1.5px solid var(--acr-border);
}

/* Tablet */
@media (max-width: 768px) {
	.acr-popup-card {
		max-width: 380px;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.acr-popup-overlay {
		padding: 14px;
		align-items: flex-end;
	}
	.acr-popup-card {
		max-width: 100%;
		width: 100%;
		border-radius: 20px 20px 0 0;
		max-height: 82vh;
	}
	.acr-popup-header {
		border-radius: 20px 20px 0 0;
		padding: 22px 18px 16px;
	}
	.acr-popup-title {
		font-size: 17px;
	}
	.acr-popup-actions {
		flex-direction: column;
	}
}

.acr-popup-custom-content[hidden],
.acr-popup-default-content[hidden] {
	display: none;
}

.acr-popup-custom-content {
	padding: 0;
}

/* Default styling for content coming from the "پاپ‌آپ سبد رها شده" Elementor
   widget, so it looks correct even before an admin customizes it further
   inside Elementor's own style tab. */
.acr-el-popup {
	font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

.acr-el-header {
	background: var(--acr-primary);
	border-radius: 20px 20px 0 0;
	padding: 26px 22px 20px;
}

.acr-el-title {
	margin: 0;
	color: #fff;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.6;
}

.acr-el-body {
	padding: 18px 20px 4px;
}

.acr-el-body p {
	color: var(--acr-muted);
	font-size: 14px;
	line-height: 1.9;
	margin: 0 0 14px;
}

.acr-el-products {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.acr-el-total {
	padding: 12px 4px;
	border-top: 1px dashed var(--acr-border);
	margin-top: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--acr-primary);
}

.acr-el-coupon {
	margin: 14px 0 18px;
	background: var(--acr-amber-bg);
	border: 1.5px dashed var(--acr-amber);
	border-radius: 14px;
	padding: 12px 16px;
	text-align: center;
	font-size: 13.5px;
	font-weight: 600;
	color: #92620a;
}

.acr-el-actions {
	display: flex;
	gap: 10px;
	padding: 4px 20px 22px;
}

.acr-el-close-btn,
.acr-el-checkout-btn {
	flex: 1;
	border: none;
	border-radius: 12px;
	padding: 13px 12px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}

.acr-el-close-btn {
	background: #fff;
	color: var(--acr-muted);
	border: 1.5px solid var(--acr-border);
}

.acr-el-checkout-btn {
	background: var(--acr-primary);
	color: #fff;
}

/* My Account tab reuses the same product-row / coupon styles */
.acr-account-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.acr-account-item {
	border: 1px solid var(--acr-border);
	border-radius: 14px;
	padding: 16px 18px;
	background: #fff;
}

.acr-account-item-date {
	font-size: 12px;
	color: var(--acr-muted);
	margin-bottom: 6px;
}

.acr-account-item-title {
	font-weight: 700;
	color: var(--acr-ink);
	margin-bottom: 4px;
}

.acr-account-item-message {
	font-size: 13.5px;
	color: var(--acr-muted);
	margin-bottom: 10px;
}

.acr-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
}

.acr-badge-unused {
	background: #ecfdf3;
	color: var(--acr-primary-dark);
}

.acr-badge-used {
	background: #f1f5f9;
	color: var(--acr-muted);
}
