/* پاپ‌آپ کد تخفیف - نوار بالای سایت */
#dpwc-topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999999;
	background: linear-gradient(90deg, #ff6b6b 0%, #f06595 50%, #cc5de8 100%);
	color: #fff;
	font-family: Tahoma, Vazirmatn, "Segoe UI", sans-serif;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	direction: rtl;
	padding: 10px 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 14px;
	line-height: 1.6;
}

#dpwc-topbar.dpwc-hidden {
	display: none !important;
}

.dpwc-close-btn {
	position: absolute;
	top: 6px;
	left: 12px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
	padding: 4px;
}

.dpwc-close-btn:hover {
	opacity: 1;
}

.dpwc-bar-collapsed,
.dpwc-bar-expanded {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.dpwc-bar-expanded.dpwc-hidden {
	display: none !important;
}

.dpwc-icon {
	font-size: 18px;
}

.dpwc-title {
	font-weight: bold;
	font-size: 15px;
}

.dpwc-btn {
	background: #fff;
	color: #cc3d7a;
	border: none;
	border-radius: 30px;
	padding: 8px 18px;
	font-weight: bold;
	cursor: pointer;
	font-size: 13px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dpwc-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.dpwc-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.dpwc-code-label {
	font-weight: bold;
}

.dpwc-code-text {
	background: rgba(255, 255, 255, 0.2);
	border: 2px dashed #fff;
	border-radius: 6px;
	padding: 4px 14px;
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 2px;
}

.dpwc-copy-btn {
	white-space: nowrap;
}

.dpwc-timer-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	background: rgba(0, 0, 0, 0.15);
	padding: 5px 12px;
	border-radius: 20px;
}

.dpwc-countdown {
	font-weight: bold;
	font-variant-numeric: tabular-nums;
	direction: ltr;
	display: inline-block;
}

/* اعلان کوچک کپی شدن کد */
.dpwc-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: #222;
	color: #fff;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 13px;
	z-index: 9999999;
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
	font-family: Tahoma, Vazirmatn, "Segoe UI", sans-serif;
}

.dpwc-toast.dpwc-hidden {
	display: none;
}

.dpwc-toast.dpwc-show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* واکنش‌گرا برای موبایل */
@media (max-width: 600px) {
	#dpwc-topbar {
		padding: 10px 40px;
		font-size: 12px;
	}

	.dpwc-title {
		font-size: 13px;
	}

	.dpwc-code-text {
		font-size: 15px;
		padding: 3px 10px;
	}
}
