/**
 * Age verification gate — uses :root brand variables from style.css
 */

/* Set by inline head script when localStorage already has verification — prevents flash on reload */
html.hotsmoke-age-verified #hotsmoke-age-gate {
	display: none !important;
}

.hotsmoke-age-gate {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
}

.hotsmoke-age-gate--hidden {
	display: none !important;
}

.hotsmoke-age-gate__backdrop {
	position: absolute;
	inset: 0;
	/* #333333 @ 60% — matches --color-black */
	background: rgba(51, 51, 51, 0.6);
	background: color-mix(in srgb, var(--color-black) 60%, transparent);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	pointer-events: auto;
}

.hotsmoke-age-gate__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
	padding: 28px 24px 24px;
	background: var(--color-bg-white);
	border: 1px solid var(--color-border-light);
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(51, 51, 51, 0.12);
	text-align: center;
}

.hotsmoke-age-gate__icon {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.hotsmoke-age-gate__icon svg {
	display: block;
}

.hotsmoke-age-gate__title {
	margin: 0 0 16px;
	font-family: var(--font-heading, 'Poppins', sans-serif);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--color-text-secondary);
	text-transform: none;
}

.hotsmoke-age-gate__body {
	margin: 0 0 16px;
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--color-text-primary);
}

.hotsmoke-age-gate__warning {
	margin: 0 0 24px;
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--color-text-secondary);
}

.hotsmoke-age-gate__warning strong {
	font-weight: 700;
	color: var(--color-text-secondary);
}

.hotsmoke-age-gate__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hotsmoke-age-gate__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 12px 20px;
	font-family: var(--font-heading, 'Poppins', sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hotsmoke-age-gate__btn--primary {
	background: var(--color-green);
	color: var(--color-white);
}

.hotsmoke-age-gate__btn--primary:hover,
.hotsmoke-age-gate__btn--primary:focus-visible {
	background: var(--color-green-dark);
	outline: none;
}

.hotsmoke-age-gate__btn--secondary {
	background: var(--color-bg-light);
	color: var(--color-text-primary);
}

.hotsmoke-age-gate__btn--secondary:hover,
.hotsmoke-age-gate__btn--secondary:focus-visible {
	background: var(--color-variation-active);
	outline: none;
}

@media (min-width: 768px) {
	.hotsmoke-age-gate__actions {
		flex-direction: row;
	}

	.hotsmoke-age-gate__btn {
		flex: 1 1 0;
		min-width: 0;
	}
}
