/**
 * C'BAU age verification — Supgor child theme
 */

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

#age-verification.cbeau-age-gate {
	--cbeau-age-primary: 6, 76, 80;
	--cbeau-age-primary-hex: #064c50;
	--cbeau-age-text: #1f2937;
	--cbeau-age-muted: #6b7280;
	--cbeau-age-border: #e5e7eb;
	--cbeau-age-radius: 20px;

	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	font-family: inherit;
}

html.cbeau-age-gate-open:not(.cbeau-age-verified) #age-verification.cbeau-age-gate,
#age-verification.cbeau-age-gate.is-visible {
	display: flex;
}

#age-verification.cbeau-age-gate *,
#age-verification.cbeau-age-gate *::before,
#age-verification.cbeau-age-gate *::after {
	box-sizing: border-box;
}

.cbeau-age-gate__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.cbeau-age-gate__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 480px);
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	border-radius: var(--cbeau-age-radius);
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
	padding: 32px 28px 24px;
	text-align: center;
	color: var(--cbeau-age-text);
	animation: cbeauAgeGateIn 0.35s ease;
}

#age-verification.cbeau-age-gate.is-revisit .cbeau-age-gate__panel {
	animation: none;
}

@keyframes cbeauAgeGateIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.cbeau-age-gate__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 999px;
	background: rgba(var(--cbeau-age-primary), 0.1);
	color: var(--cbeau-age-primary-hex);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.02em;
}


.cbeau-age-gate__title {
	margin: 0 0 12px;
	font-size: clamp(22px, 4vw, 28px);
	line-height: 1.25;
	font-weight: 700;
	color: var(--cbeau-age-text);
	text-shadow: none;
}

.cbeau-age-gate__text {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--cbeau-age-muted);
	text-shadow: none;
}

.cbeau-age-gate__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-bottom: 16px;
}

.cbeau-age-gate__btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 14px 22px;
	min-height: 48px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
	text-shadow: none;
	box-shadow: none;
	width: auto;
	max-width: none;
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cbeau-age-gate__btn:focus-visible {
	outline: 2px solid rgba(var(--cbeau-age-primary), 0.35);
	outline-offset: 2px;
}

.cbeau-age-gate__btn--yes {
	background: rgb(var(--cbeau-age-primary));
	color: #fff;
	flex: 1 1 220px;
}

.cbeau-age-gate__btn--yes:hover {
	background: rgba(var(--cbeau-age-primary), 0.9);
	transform: translateY(-1px);
}

.cbeau-age-gate__btn--no {
	background: #fff;
	color: var(--cbeau-age-text);
	border-color: var(--cbeau-age-border);
	flex: 1 1 180px;
}

.cbeau-age-gate__btn--no:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}

.cbeau-age-gate__legal {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: #9ca3af;
}

@media (max-width: 480px) {
	.cbeau-age-gate__panel {
		padding: 24px 20px 20px;
		border-radius: 16px;
	}

	.cbeau-age-gate__actions {
		flex-direction: column;
	}

	.cbeau-age-gate__btn {
		width: 100%;
		flex: 1 1 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cbeau-age-gate__panel {
		animation: none;
	}

	.cbeau-age-gate__btn {
		transition: none;
	}
}
