/*
 * VapeEra Core: age gate. Colours, radii and fonts come from the theme's tokens (--vc-*) when they
 * exist. A theme that styles the gate itself declares
 * add_theme_support( 'vapeera-core', array( 'age-gate-styles' ) ) and this file is not loaded.
 * The structural rules (fixed overlay, hidden once verified) are printed inline in <head>.
 */
.vapeera-age-gate {
	padding: 16px;
	background: rgb(15 23 42 / 88%);
	backdrop-filter: blur(6px);
}

.vapeera-age-gate__dialog {
	position: relative;
	width: 100%;
	max-width: 460px;
	margin: auto;
	padding: 36px 24px 24px;
	border-radius: var(--vc-radius, 12px);
	background: var(--vc-surface, #fff);
	color: var(--vc-ink, #0f172a);
	box-shadow: var(--vc-shadow-lg, 0 12px 40px rgb(15 23 42 / 16%));
	text-align: center;
	outline: 0;
}

.vapeera-age-gate__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
	border: 3px solid var(--vc-primary-deep, #29a7ab);
	border-radius: 50%;
	color: var(--vc-primary-ink, #0b5f62);
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.vapeera-age-gate__title {
	margin: 0 0 10px;
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
	line-height: 1.2;
}

.vapeera-age-gate__text {
	margin: 0 0 12px;
	color: var(--vc-ink-soft, #334155);
	line-height: 1.55;
}

.vapeera-age-gate__warning {
	margin: 0;
	padding: 10px 12px;
	border-radius: var(--vc-radius-sm, 8px);
	background: var(--vc-surface-alt, #f5f8fa);
	color: var(--vc-ink, #0f172a);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.45;
}

.vapeera-age-gate__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
}

.vapeera-age-gate__confirm,
.vapeera-age-gate__decline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	border-radius: var(--vc-radius-pill, 999px);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.vapeera-age-gate__confirm {
	border: 0;
	background: var(--vc-primary-deep, #29a7ab);
	color: #fff;
}

.vapeera-age-gate__confirm:hover {
	background: var(--vc-primary-ink, #0b5f62);
}

.vapeera-age-gate__decline {
	border: 1px solid var(--vc-line, #e2e8f0);
	background: transparent;
	color: var(--vc-ink, #0f172a);
}

.vapeera-age-gate__decline:hover {
	border-color: var(--vc-ink, #0f172a);
}

.vapeera-age-gate__note,
.vapeera-age-gate__noscript {
	margin: 16px 0 0;
	color: var(--vc-muted, #64748b);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.vapeera-age-gate__noscript {
	color: var(--vc-danger, #b91c1c);
	font-weight: 600;
}

.vapeera-age-gate__confirm:focus-visible,
.vapeera-age-gate__decline:focus-visible {
	outline: 3px solid var(--vc-primary, #39c2c5);
	outline-offset: 2px;
}

@media (max-height: 560px) {
	.vapeera-age-gate__dialog {
		padding-top: 20px;
	}

	.vapeera-age-gate__badge {
		width: 48px;
		height: 48px;
		margin-bottom: 8px;
		font-size: 1.125rem;
	}
}
