/* Front */
.coupon-overlay {
	--coupon-overlay-opacity: 0.65;
	--coupon-image-veil: 0.45;
	--coupon-text-main: #222;
	--coupon-text-secondary: #555;

	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, var(--coupon-overlay-opacity));
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	padding: 20px;
}

.coupon-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.coupon-card {
	position: relative;
	width: 92%;
	max-width: 520px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	animation: popupIn 0.3s ease;
}

@keyframes popupIn {
	from {
		transform: scale(0.95);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.coupon-close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: none;
	background: none;
	font-size: 28px;
	cursor: pointer;
	color: #555;
	z-index: 3;
	line-height: 1;
	padding: 0;
}

.coupon-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, #9f7b40, #7b5b2d);
	padding: 8px 12px;
	border-radius: 999px;
	z-index: 3;
}

.coupon-card.has-bg .coupon-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 1;
}

.coupon-card.has-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, var(--coupon-image-veil));
	z-index: 1;
}

.coupon-content {
	position: relative;
	z-index: 2;
	padding: 50px 24px 24px;
	text-align: center;
}

.coupon-title {
	margin: 0 0 10px;
	font-size: 22px;
	color: var(--coupon-text-main);
}

.coupon-text {
	font-size: 15px;
	color: var(--coupon-text-secondary);
	margin-bottom: 18px;
}

.coupon-text p {
	margin: 0;
}

.coupon-text strong {
	color: var(--coupon-text-main);
}

.coupon-code {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px dashed rgba(0, 0, 0, 0.25);
	border-radius: 14px;
	margin-bottom: 14px;
}

.coupon-code-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--coupon-text-secondary);
}

.coupon-code-pill {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.15);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.coupon-code-pill:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.coupon-code-pill.no-copy {
	cursor: default;
}

.coupon-code-pill.is-copied .coupon-copy {
	color: #0f9d58;
}

.coupon-code-text {
	font-weight: 800;
	letter-spacing: 0.1em;
	color: #000;
}

.coupon-copy {
	font-size: 12px;
	color: #9f7b40;
	border-left: 1px solid rgba(0, 0, 0, 0.15);
	padding-left: 10px;
}

.coupon-note {
	font-size: 12.5px;
	color: var(--coupon-text-secondary);
	margin-bottom: 18px;
}

.coupon-note p {
	margin: 0;
}

.coupon-cta {
	display: block;
	text-decoration: none;
	background: #9f7b40;
	color: #fff;
	font-weight: 700;
	padding: 14px;
	border-radius: 12px;
	transition: background 0.2s ease, transform 0.1s ease;
}

.coupon-cta:hover {
	background: #7b5b2d;
	transform: translateY(-1px);
	color: #fff;
}

body.coupon-popup-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.coupon-content {
		padding: 46px 18px 20px;
	}

	.coupon-code {
		flex-direction: column;
	}
}
