/**
 * Zenger paywall CTA card (ZEN-1009).
 *
 * Branded subscribe card shown below the teaser on gated (Flash) stories. Mirrors
 * the theme's "Listen to this article" box treatment. Hex values are inlined from
 * the theme tokens (zgr-base.css) because the plugin cannot rely on the theme's CSS
 * variables being present. Article pages are light-only — no dark-mode overrides.
 */

.zgr-paywall.zgr-paywall__cta {
	background: #f4f6f9;
	border: 1px solid #dde2ea;
	border-radius: 12px;
	padding: 34px 34px 32px;
	margin: 14px 0 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

/* Thin brand rule along the top edge, split 50/50 WhatsApp-green / Telegram-blue. */
.zgr-paywall.zgr-paywall__cta::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #25D366 0 50%, #229ED9 50% 100%);
}

.zgr-paywall__lock {
	width: 44px;
	height: 44px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #122b50;
	display: grid;
	place-items: center;
}

.zgr-paywall__lock svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: #fff;
	stroke-width: 2;
}

.zgr-paywall__eyebrow {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #122b50;
	margin: 0 0 8px;
}

.zgr-paywall__headline {
	font-family: 'Goudy Old Style', Georgia, 'Times New Roman', serif;
	font-weight: 700;
	font-size: 27px;
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0 auto 10px;
	color: #121212;
	max-width: 22ch;
}

.zgr-paywall__body {
	font-family: 'Imperial', Georgia, serif;
	font-size: 17px;
	line-height: 1.5;
	color: #757575;
	margin: 0 auto 4px;
	max-width: 44ch;
}

.zgr-paywall__price {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	color: #121212;
	margin: 14px 0 22px;
}

.zgr-paywall__buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	max-width: 520px;
	margin: 0 auto;
}

.zgr-paywall__btn {
	flex: 1 1 210px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .01em;
	padding: 14px 20px;
	border-radius: 10px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	color: #fff;
	transition: transform .12s ease, box-shadow .12s ease, filter .12s;
}

.zgr-paywall__btn svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.zgr-paywall__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35);
	filter: brightness(1.04);
	color: #fff;
}

.zgr-paywall__btn:active {
	transform: translateY(0);
}

.zgr-paywall__btn:focus-visible {
	outline: 3px solid #00a3e0;
	outline-offset: 2px;
}

.zgr-paywall__btn--subscribe {
	background: #122b50;
	flex: 0 1 auto;
	min-width: 260px;
}

/*
 * Force white label on the button regardless of the surrounding theme's link color.
 * The button is an <a> inside article content, where themes commonly set a dark
 * link color at higher specificity than `.zgr-paywall__btn { color:#fff }` — which
 * rendered navy-on-navy (invisible) text. These high-specificity rules (including
 * the inner <span> and every link state) keep the label readable everywhere.
 */
.zgr-paywall .zgr-paywall__btn,
.zgr-paywall .zgr-paywall__btn:link,
.zgr-paywall .zgr-paywall__btn:visited,
.zgr-paywall .zgr-paywall__btn:hover,
.zgr-paywall .zgr-paywall__btn:focus,
.zgr-paywall .zgr-paywall__btn span {
	color: #fff;
}

/* ── Returning-subscriber sign-in (ZEN-1035) ──────────────────────────────── */

.zgr-paywall__signin {
	margin: 20px auto 0;
	max-width: 520px;
	text-align: center;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.zgr-paywall__signin-toggle {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: #122b50;
	cursor: pointer;
	list-style: none;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.zgr-paywall__signin-toggle::-webkit-details-marker {
	display: none;
}

.zgr-paywall__signin-toggle:focus-visible {
	outline: 3px solid #00a3e0;
	outline-offset: 2px;
	border-radius: 4px;
}

.zgr-paywall__signin-form {
	margin: 14px auto 0;
	max-width: 440px;
}

.zgr-paywall__signin-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #757575;
	margin: 0 0 6px;
	text-align: left;
}

.zgr-paywall__signin-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.zgr-paywall__signin-input {
	flex: 1 1 200px;
	min-width: 0;
	padding: 11px 14px;
	font-size: 15px;
	border: 1px solid #dde2ea;
	border-radius: 8px;
	background: #fff;
	color: #121212;
}

.zgr-paywall__signin-input:focus-visible {
	outline: 3px solid #00a3e0;
	outline-offset: 1px;
	border-color: #00a3e0;
}

.zgr-paywall__signin-btn {
	flex: 0 0 auto;
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #122b50;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
}

.zgr-paywall__signin-btn:hover {
	filter: brightness(1.1);
}

.zgr-paywall__signin-btn:disabled {
	opacity: .6;
	cursor: default;
}

.zgr-paywall__signin-btn:focus-visible {
	outline: 3px solid #00a3e0;
	outline-offset: 2px;
}

.zgr-paywall__signin-status {
	margin: 10px 0 0;
	font-size: 13px;
	color: #757575;
	min-height: 1em;
}

.zgr-paywall__signin-status.is-error {
	color: #b3261e;
}

.zgr-paywall__signin-confirm {
	margin: 14px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #122b50;
}

@media (max-width: 520px) {
	.zgr-paywall.zgr-paywall__cta {
		padding: 28px 20px;
	}
	.zgr-paywall__btn {
		flex: 1 1 100%;
	}
	.zgr-paywall__signin-btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zgr-paywall__btn {
		transition: none;
	}
	.zgr-paywall__btn:hover {
		transform: none;
	}
}
