/**
 * Auto-triggering marketing popup modal (includes/popup.php). Shares
 * field/checkbox/honeypot classes with club.css ([bcc_club]) since it's
 * the same signup, just a timed dialog instead of an inline band -- only
 * the dialog chrome (backdrop, positioning, close button) is new here.
 */
.bcc-popup {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--bcc-space);
}

.bcc-popup[hidden] {
	display: none;
}

.bcc-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(27 23 38 / .6);
}

.bcc-popup__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: calc(var(--bcc-space) * 1.25);
	background: var(--bcc-purple-900);
	color: #fff;
	border: var(--bcc-border-width) solid var(--bcc-gold-400);
	animation: bcc-popup-in .25s ease;
}

@keyframes bcc-popup-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bcc-popup__dialog {
		animation: none;
	}
}

.bcc-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	background: none !important;
	border: var(--bcc-border-width) solid var(--bcc-cream);
	border-radius: var(--bcc-radius-sm);
	color: var(--bcc-cream) !important;
	font-size: 16px;
	cursor: pointer;
}

.bcc-popup__eyebrow {
	font-family: var(--bcc-font-mono);
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--bcc-gold-400);
	margin: 0 0 6px;
}

.bcc-popup__offer {
	font-family: var(--bcc-font-display);
	font-weight: 900;
	text-transform: uppercase;
	font-size: clamp(1.6rem, 5vw, 2.25rem);
	line-height: .95;
	margin: 0 0 10px;
	color: var(--bcc-gold-400);
}

.bcc-popup__copy {
	font-size: 14px;
	line-height: 1.4;
	margin: 0 0 16px;
	opacity: .9;
}

.bcc-popup__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bcc-popup__status {
	font-size: 13px;
	font-weight: 600;
	margin: 0;
	min-height: 1.2em;
}

.bcc-popup__status.is-error {
	color: var(--bcc-lucuma);
}

.bcc-popup__status.is-ok {
	color: var(--bcc-gold-400);
}

.bcc-popup__skip {
	margin: 10px 0 0;
	text-align: center;
}

.bcc-popup__skip button {
	background: none !important;
	border: none;
	color: var(--bcc-cream) !important;
	font-size: 12px;
	text-decoration: underline;
	opacity: .75;
	cursor: pointer;
}

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