/* ==========================================================================
   AGE CONFIRMATION DIALOG (avallone-live-fixes, parts 7 and 8)
   Theme tokens (settings/tokens.css) with literal fallbacks. No color-mix(),
   :has() or nesting: the same on Chrome 109 / Windows 7 as on current browsers.
   ========================================================================== */

body.age-gate-open {
	overflow: hidden;
}

.age-gate {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2147483000;
	display: -webkit-box;
	display: flex;
	-webkit-box-align: center;
	align-items: center;
	-webkit-box-pack: center;
	justify-content: center;
	padding: 24px 16px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	background-color: rgba(19, 23, 26, 0.86);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.age-gate[hidden] {
	display: none;
}

.age-gate__panel {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 520px;
	margin: auto;
	padding: 48px 48px 40px;
	border-radius: var(--radius-lg, 16px);
	background-color: var(--color-cream, #FCF9F8);
	box-shadow: var(--shadow-xl, 0 16px 48px rgba(0, 0, 0, 0.16));
	color: var(--color-text, #5B403C);
	text-align: center;
	outline: none;
}

.age-gate__brand {
	margin: 0 auto 32px;
}

.age-gate__logo {
	display: block;
	width: 180px;
	max-width: 60%;
	height: auto;
	margin: 0 auto;
}

.age-gate__wordmark {
	margin: 0;
	font-family: var(--font-display, 'Playfair Display', Georgia, serif);
	font-size: 32px;
	line-height: 40px;
	color: var(--color-ink, #1B1C1C);
}

.age-gate__nb {
	white-space: nowrap;
}

.age-gate__view[hidden] {
	display: none;
}

.age-gate__title {
	margin: 0 0 16px;
	padding-top: 24px;
	border-top: 1px solid var(--color-rose, #E4BEB8);
	font-family: var(--font-heading, 'Libre Caslon Text', Georgia, serif);
	font-weight: 400;
	font-size: 28px;
	line-height: 36px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-ink, #1B1C1C);
}

.age-gate__text {
	margin: 0 auto 32px;
	max-width: 400px;
	font-family: var(--font-ui, 'Work Sans', sans-serif);
	font-size: 16px;
	line-height: 26px;
	color: var(--color-text, #5B403C);
}

.age-gate__actions {
	display: -webkit-box;
	display: flex;
	-webkit-box-orient: vertical;
	flex-direction: column;
	margin: 0;
}

.age-gate .age-gate__btn {
	box-sizing: border-box;
	width: 100%;
	min-height: 56px;
	height: auto;
	margin: 0;
	padding: 14px 24px;
	font-family: var(--font-ui, 'Work Sans', sans-serif);
	font-weight: 500;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0.08em;
	white-space: normal;
}

.age-gate .age-gate__btn + .age-gate__btn {
	margin-top: 12px;
}

.age-gate .btn--outline.age-gate__btn {
	background-color: transparent;
	box-shadow: none;
}

.age-gate .age-gate__btn:focus-visible {
	outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, #A20007);
	outline-offset: var(--focus-ring-offset, 3px);
}

/* Part 8: the account's box above the buttons. */
.age-gate__check {
	display: -webkit-box;
	display: flex;
	-webkit-box-align: start;
	align-items: flex-start;
	margin: 0 0 20px;
	padding: 16px;
	border: 1px solid var(--color-rose, #E4BEB8);
	border-radius: var(--radius-button, 12px);
	background-color: #FFFFFF;
	font-family: var(--font-ui, 'Work Sans', sans-serif);
	font-size: 16px;
	line-height: 24px;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	color: var(--color-ink, #1B1C1C);
	cursor: pointer;
}

.age-gate__check input {
	-webkit-box-flex: 0;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 12px 0 0;
	accent-color: var(--color-primary, #A20007);
	cursor: pointer;
}

.age-gate__error {
	margin: -8px 0 16px;
	font-family: var(--font-ui, 'Work Sans', sans-serif);
	font-size: 14px;
	line-height: 20px;
	text-align: left;
	color: var(--color-error, #A20007);
}

.age-gate__error[hidden] {
	display: none;
}

.age-gate__meta {
	margin: 20px 0 0;
	font-family: var(--font-meta, 'Inter', sans-serif);
	font-size: 13px;
	line-height: 20px;
	color: #6F5753;
	word-break: break-word;
}

@media (max-width: 599px) {
	.age-gate {
		padding: 16px 12px;
	}

	.age-gate__panel {
		padding: 36px 24px 28px;
	}


	.age-gate__brand {
		margin-bottom: 24px;
	}

	.age-gate__logo {
		width: 150px;
	}

	.age-gate__title {
		padding-top: 20px;
		font-size: 24px;
		line-height: 32px;
	}

	.age-gate__text {
		margin-bottom: 24px;
		font-size: 15px;
		line-height: 24px;
	}
}

/* Short landscape phones: the dialog scrolls inside the veil, never off-screen. */
@media (max-height: 520px) {
	.age-gate {
		-webkit-box-align: start;
		align-items: flex-start;
	}

	.age-gate__brand {
		margin-bottom: 16px;
	}

	.age-gate__logo {
		width: 120px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.age-gate__panel {
		-webkit-animation: age-gate-in 240ms ease-out both;
		animation: age-gate-in 240ms ease-out both;
	}
}

@-webkit-keyframes age-gate-in {
	from { opacity: 0; -webkit-transform: translateY(8px); transform: translateY(8px); }
	to { opacity: 1; -webkit-transform: none; transform: none; }
}

@keyframes age-gate-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}
