/**
 * Age verification gate — dark premium modal.
 */

.mgp-age-gate {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.mgp-age-gate.is-active {
	display: flex;
}

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

.mgp-age-gate__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	backdrop-filter: blur(4px);
}

.mgp-age-gate__panel {
	position: relative;
	z-index: 1;
	width: min(520px, 100%);
	max-height: min(92vh, 720px);
	overflow-y: auto;
	padding: 1.5rem 1.35rem 1.25rem;
	background: #121212;
	border: 1px solid #2e2e2e;
	border-radius: 12px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
	color: #e0e0e0;
}

.mgp-age-gate__eyebrow {
	margin: 0 0 0.45rem;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ff6b78;
}

.mgp-age-gate__title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.15rem, 2.5vw, 1.4rem);
	font-weight: 800;
	line-height: 1.25;
	color: #ffffff !important;
}

.mgp-age-gate__body {
	font-size: 0.9rem;
	line-height: 1.5;
	color: #d0d0d0;
}

.mgp-age-gate__body p {
	margin: 0 0 0.75rem;
	color: #d0d0d0;
}

.mgp-age-gate__rules {
	margin: 0 0 0.85rem;
	padding: 0.65rem 0.75rem 0.65rem 1.35rem;
	background: #1a1a1a;
	border: 1px solid #2e2e2e;
	border-radius: 8px;
	list-style: disc;
}

.mgp-age-gate__rules li {
	margin: 0.3rem 0;
	color: #e0e0e0;
	font-size: 0.85rem;
}

.mgp-age-gate__note {
	margin: 0 0 1rem !important;
	font-size: 0.8rem !important;
	color: #b0b0b0 !important;
	line-height: 1.45;
}

.mgp-age-gate__note a {
	color: #ff6b78 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.mgp-age-gate__actions {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin-bottom: 0.85rem;
}

.mgp-age-gate__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	border-radius: 8px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mgp-age-gate__btn:focus {
	outline: 2px solid #e11d2e;
	outline-offset: 2px;
}

.mgp-age-gate__btn--accept {
	background: #e11d2e;
	border-color: #e11d2e;
	color: #ffffff !important;
}

.mgp-age-gate__btn--accept:hover,
.mgp-age-gate__btn--accept:focus {
	background: #c41828;
	border-color: #c41828;
	color: #fff !important;
}

.mgp-age-gate__btn--decline {
	background: transparent;
	border-color: #3a3a3a;
	color: #cfcfcf !important;
}

.mgp-age-gate__btn--decline:hover,
.mgp-age-gate__btn--decline:focus {
	border-color: #6a6a6a;
	color: #fff !important;
	background: #1a1a1a;
}

.mgp-age-gate__legal {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.45;
	color: #8a8a8a;
}

/* Lock page scroll while gate is open */
html.mgp-age-locked,
html.mgp-age-locked body {
	overflow: hidden !important;
}

/* Restricted banner (policy page after decline) */
.mgp-age-restricted-banner {
	background: #2a1216;
	border-bottom: 1px solid #5a1a22;
	color: #e0e0e0;
	padding: 0.85rem 1rem;
	font-size: 0.88rem;
	line-height: 1.45;
	text-align: center;
}

.mgp-age-restricted-banner strong {
	color: #ff6b78;
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Product-page age reminder (next to FFL notice) */
.mgp-age-notice {
	margin: 0.65rem 0 0.85rem;
	padding: 0.65rem 0.8rem;
	border-radius: 8px;
	background: rgba(201, 162, 39, 0.08);
	border: 1px solid #4a3d18;
	color: #e0e0e0;
	font-size: 0.85rem;
	line-height: 1.45;
}

.mgp-age-notice strong {
	color: #e8c96a;
}

/* Body lock while gate is open (set by age-gate.js optionally; CSS fallback). */
html.mgp-age-locked,
body.mgp-age-locked {
	overflow: hidden !important;
	height: 100%;
	touch-action: none;
}

@media (max-width: 520px) {
	.mgp-age-gate {
		align-items: flex-end;
		padding: max(0.5rem, env(safe-area-inset-top, 0px)) max(0.5rem, env(safe-area-inset-right, 0px))
			max(0.5rem, env(safe-area-inset-bottom, 0px)) max(0.5rem, env(safe-area-inset-left, 0px));
	}

	.mgp-age-gate__panel {
		width: 100%;
		max-width: 100%;
		max-height: min(90vh, 700px);
		border-radius: 14px 14px 8px 8px;
		padding: 1.15rem 1rem 1rem;
	}

	.mgp-age-gate__title {
		font-size: 1.15rem;
	}

	.mgp-age-gate__actions {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
	}

	.mgp-age-gate__btn {
		width: 100%;
		min-height: 48px;
		justify-content: center;
		font-size: 0.95rem;
	}
}

@media (min-width: 520px) {
	.mgp-age-gate__actions {
		flex-direction: row;
		flex-wrap: wrap;
	}
	.mgp-age-gate__btn {
		flex: 1 1 auto;
	}
}
