/* ===================== پاپ‌آپ ===================== */
.rzg-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}
.rzg-popup-overlay[data-overlay="0"] {
	background: transparent;
	pointer-events: none;
}
.rzg-popup-overlay[data-overlay="0"] .rzg-popup-box {
	pointer-events: auto;
}
.rzg-popup-overlay.rzg-active {
	display: flex;
}
.rzg-popup-box {
	position: relative;
	background: #fff;
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
	direction: rtl;
	text-align: center;
	max-height: 92vh;
	overflow-y: auto;
}
.rzg-popup-image img {
	width: 100%;
	display: block;
}
.rzg-popup-content {
	padding: 20px 24px 26px;
}
.rzg-popup-title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 900;
	color: #222;
}
.rzg-popup-desc {
	margin: 0 0 18px;
	color: #555;
	line-height: 1.9;
	font-size: 14px;
}
.rzg-popup-btn {
	display: inline-block;
	padding: 12px 30px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	font-size: 15px;
	transition: filter 0.2s, transform 0.2s;
}
.rzg-popup-btn:hover {
	filter: brightness(1.12);
	transform: translateY(-2px);
	color: inherit;
}

/* ===================== بنر چسبان ===================== */
.rzg-banner {
	display: none;
	position: fixed;
	bottom: 20px;
	z-index: 999998;
	max-width: 260px;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
	direction: rtl;
}
.rzg-banner.rzg-active {
	display: block;
}
.rzg-banner.rzg-pos-bottom-right {
	right: 20px;
}
.rzg-banner.rzg-pos-bottom-left {
	left: 20px;
}
.rzg-banner.rzg-pos-bottom-center {
	left: 50%;
	transform: translateX(-50%);
}
.rzg-banner-link {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}
.rzg-banner img {
	width: 100%;
	display: block;
}
.rzg-banner-title {
	display: block;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 700;
	color: #222;
	text-align: center;
}

/* ===================== دکمه بستن ===================== */
.rzg-close {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.rzg-close:hover {
	background: rgba(0, 0, 0, 0.8);
}

/* ===================== انیمیشن‌ها ===================== */
@keyframes rzg-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes rzg-slide-up {
	from { opacity: 0; transform: translateY(40px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes rzg-slide-up-banner {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes rzg-zoom-in {
	from { opacity: 0; transform: scale(0.85); }
	to { opacity: 1; transform: scale(1); }
}

.rzg-popup-overlay.rzg-active.rzg-anim-fade {
	animation: rzg-fade-in 0.35s ease;
}
.rzg-popup-overlay.rzg-active.rzg-anim-slide .rzg-popup-box {
	animation: rzg-slide-up 0.4s ease;
}
.rzg-popup-overlay.rzg-active.rzg-anim-zoom .rzg-popup-box {
	animation: rzg-zoom-in 0.35s ease;
}

.rzg-banner.rzg-active.rzg-anim-fade {
	animation: rzg-fade-in 0.35s ease;
}
.rzg-banner.rzg-active.rzg-anim-slide {
	animation: rzg-slide-up-banner 0.4s ease;
}
.rzg-banner.rzg-active.rzg-anim-zoom {
	animation: rzg-zoom-in 0.35s ease;
}
.rzg-banner.rzg-pos-bottom-center.rzg-active.rzg-anim-slide,
.rzg-banner.rzg-pos-bottom-center.rzg-active.rzg-anim-zoom {
	animation-name: rzg-fade-in;
}

/* ===================== ریسپانسیو ===================== */
@media (max-width: 600px) {
	.rzg-popup-box {
		max-width: 94% !important;
		border-radius: 12px;
	}
	.rzg-popup-title {
		font-size: 18px;
	}
	.rzg-banner {
		max-width: 78vw;
	}
	.rzg-banner.rzg-pos-bottom-left,
	.rzg-banner.rzg-pos-bottom-right {
		bottom: 12px;
	}
}
