@font-face {
	font-family: 'Yekan';
	src: url('../fonts/Yekan.woff2') format('woff2'),
	     url('../fonts/Yekan.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

body.macp-noscroll {
	overflow: hidden;
}

#macp-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	font-family: 'Yekan', Tahoma, Arial, sans-serif;
	direction: rtl;
}

#macp-overlay.macp-active {
	display: flex;
}

.macp-popup {
	background: #fff;
	border-radius: 16px;
	padding: 38px 26px 26px;
	max-width: 380px;
	width: 90%;
	text-align: center;
	position: relative;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
	animation: macpPopIn 0.25s ease;
}

@keyframes macpPopIn {
	from {
		transform: scale(0.85);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

#macp-close-x {
	position: absolute;
	top: 12px;
	left: 15px;
	cursor: pointer;
	font-size: 26px;
	color: #999;
	line-height: 1;
	transition: color 0.15s ease;
}

#macp-close-x:hover {
	color: #333;
}

.macp-icon {
	width: 62px;
	height: 62px;
	line-height: 62px;
	background: #4CAF50;
	color: #fff;
	border-radius: 50%;
	font-size: 30px;
	margin: 0 auto 16px;
}

.macp-text {
	font-size: 17px;
	color: #2b2b2b;
	margin: 0 0 24px;
	line-height: 1.8;
}

.macp-buttons {
	display: flex;
	gap: 10px;
}

.macp-btn {
	flex: 1;
	padding: 12px 6px;
	border-radius: 8px;
	text-decoration: none;
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
	border: none;
	transition: opacity 0.15s ease;
	display: inline-block;
}

.macp-btn:hover {
	opacity: 0.88;
}

.macp-btn-continue {
	background: #f1f1f1;
	color: #333;
}

.macp-btn-checkout {
	background: #4CAF50;
	color: #fff;
}

/* حالت لودینگ روی دکمه‌ی افزودن به سبد خرید */
.single_add_to_cart_button.macp-loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
	opacity: 0.7;
}

.single_add_to_cart_button.macp-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: macpSpin 0.6s linear infinite;
}

@keyframes macpSpin {
	to {
		transform: rotate(360deg);
	}
}
