/* ── Rewarded Gate ─────────────────────────────────────────────────── */

/**
 * Blur target: wraps the gated portion of the drug article
 * (from recipe heading through release form).
 * Blur is applied via --active class; removed by JS on unlock.
 */
.rewarded-gate-blur-target--active {
	position: relative;
}

.rewarded-gate-blur-target--active .rewarded-gate-blur-target__inner {
	pointer-events: none;
	user-select: none;
}

/* Blur only the content divs — h2 section headings remain visible */
.rewarded-gate-blur-target--active .rewarded-gate-blur-target__inner > div {
	filter: blur(6px);
}
/* ── Gate overlay ──────────────────────────────────────────────────── */

.rewarded-gate-overlay {
	position: sticky;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 49;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 16px;
	height: 100vh;
	pointer-events: none;
}

@media (max-width: 600px) {
	.rewarded-gate-overlay {
		padding: 0;
		padding-bottom: 15vh;
	}
}

.rewarded-gate-overlay__inner {
	background: #f1f4f7;
	border: 1px solid #379ae6;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	pointer-events: auto;
	padding: 24px 28px;
	max-width: 480px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}

.rewarded-gate-overlay__message {
	font-size: 16px;
	line-height: 1.2;
	color: #374151;
	margin: 0;
	margin-bottom: 5px;
}

.rewarded-gate-overlay__divider {
	height: 1px;
	width: 100%;
	background: #e5e7eb;
	margin: 5px 0;
}

.rewarded-gate-overlay__divider-text {
	font-size: 14px;
	color: #6b7280;
	margin: 0 auto;
	line-height: 1.2;
}

/* ── Gate buttons ──────────────────────────────────────────────────── */

.rewarded-gate-btn {
	display: block;
	width: 100%;
	padding: 13px 20px;
	border-radius: 10px;
	line-height: 1.2;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	transition:
		background 0.15s,
		opacity 0.15s;
	border: none;
	max-width: 240px;
}

.rewarded-gate-btn--primary {
	background: #379ae6;
	color: #fff;
	box-shadow: 0 2px 8px rgba(61, 169, 252, 0.12);
	padding-right: 16px;
}
.rewarded-gate-btn--primary:hover,
.rewarded-gate-btn--primary:focus {
	background: #287cd6;
	color: #fff;
	opacity: 0.95;
}

.rewarded-gate-btn--primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.rewarded-gate-btn--outline {
	background: #bbf7d0;
	color: #15803d;
	border: 1.5px solid #4ade80;
	font-size: 14px;
	font-weight: 500;
	transition:
		background 0.15s,
		color 0.15s,
		border-color 0.15s;
}
.rewarded-gate-btn--outline:hover,
.rewarded-gate-btn--outline:focus {
	background: #bbf7d0;
	color: #15803d;
	border-color: #4ade80;
}

/* ── Store badges row ──────────────────────────────────────────────── */

.rewarded-gate-stores {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.rewarded-gate-badge-link {
	display: flex;
	align-items: center;
	flex: 1 1 120px;
	max-width: 180px;
}

.rewarded-gate-badge {
	width: 100%;
	height: auto;
}

/* ── Promo viewer overlay ──────────────────────────────────────────── */

.rewarded-promo-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	flex-direction: column;
	background: rgba(10, 14, 20, 0.94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.rewarded-promo-overlay--active {
	display: flex;
}

/* ── Top bar ────────────────────────────────────────────────────────── */

.rewarded-promo-topbar {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Countdown ring ─────────────────────────────────────────────────── */

.rewarded-promo-ring-wrap {
	position: relative;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rewarded-promo-ring {
	position: absolute;
	inset: 0;
	/* Start ring from 12 o'clock instead of 3 o'clock */
	transform: rotate(-90deg);
}

.rewarded-promo-ring__track {
	fill: none;
	stroke: rgba(255, 255, 255, 0.12);
	stroke-width: 3;
}

.rewarded-promo-ring__progress {
	fill: none;
	stroke: #fff;
	stroke-width: 3;
	stroke-linecap: round;
	/* stroke-dasharray / stroke-dashoffset driven by JS — no transition */
}

.rewarded-promo-ring__number {
	position: relative;
	z-index: 1;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

/* ── Close / continue button ────────────────────────────────────────── */

.rewarded-promo-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 100px;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	padding: 11px 22px;
	min-height: 44px;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	transition:
		background 0.25s,
		border-color 0.25s,
		color 0.25s,
		opacity 0.25s,
		box-shadow 0.25s;
}

/* While counting: same pill, barely visible, not clickable */
.rewarded-promo-close--disabled {
	opacity: 0.22;
	cursor: not-allowed;
	pointer-events: none;
}

/* Timer complete: full visibility, clickable CTA */
.rewarded-promo-close--ready {
	opacity: 1;
	background: #fff;
	border-color: #fff;
	color: #111827;
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.rewarded-promo-close--ready:hover {
	background: #f3f4f6;
	border-color: #f3f4f6;
}

/* ── Content area ───────────────────────────────────────────────────── */

.rewarded-promo-content-area {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px 40px;
	overflow-y: auto;
}

/* ── Content card ───────────────────────────────────────────────────── */

.rewarded-promo-card {
	background: #fff;
	border-radius: 24px;
	padding: 24px 20px 20px;
	max-width: 420px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

/* ── Promo panel ────────────────────────────────────────────────────── */

.rewarded-promo-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.rewarded-promo-panel__image {
	width: 100%;
	/* max-width: 240px; */
	border-radius: 16px;
	object-fit: cover;
}

.rewarded-promo-panel__shop-icon {
	font-size: 64px;
	line-height: 1;
}

.rewarded-promo-panel__title {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	margin: 0 !important;
}

.rewarded-promo-panel__text {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
	line-height: 1.2;
}

.rewarded-promo-panel__badges {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	width: 100%;
}

.rewarded-promo-panel__badge-link {
	flex: 1 1 120px;
	max-width: 160px;
	display: flex;
}

.rewarded-promo-panel__badge {
	width: 100%;
	height: auto;
}

.rewarded-promo-panel__cta-btn {
	display: inline-block;
	background: #03a250;
	color: #fff;
	padding: 12px 28px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: background 0.15s;
}
.rewarded-promo-panel__cta-btn:hover {
	background: #038a40;
	color: #fff;
}

/* ── Ad loading overlay ─────────────────────────────────────────────── */

.rewarded-ad-loading-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9998;
	align-items: center;
	justify-content: center;
	background: rgba(10, 14, 20, 0.94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.rewarded-ad-loading-overlay--active {
	display: flex;
}

.rewarded-ad-loading-overlay__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 24px;
	text-align: center;
}

.rewarded-ad-loading-spinner {
	width: 48px;
	height: 48px;
	border: 3px solid rgba(255, 255, 255, 0.15);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rewarded-ad-loading-spin 0.8s linear infinite;
}

@keyframes rewarded-ad-loading-spin {
	to {
		transform: rotate(360deg);
	}
}

.rewarded-ad-loading-overlay__text {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.4;
	max-width: 280px;
}
