html:has(#magicbar-age-gate[open]) {
	overflow: hidden;
}

html.magicbar-age-accepted #magicbar-age-gate {
	display: none;
}

dialog.magicbar-age-gate {
	box-sizing: border-box;
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
	border: 0;
	background: rgb(32 23 46 / 65%);
	color: #292929;
	overflow-y: auto;
	overscroll-behavior: contain;
	z-index: 2147483647;
}

dialog.magicbar-age-gate[open] {
	display: grid;
	place-items: center;
}

.magicbar-age-gate::backdrop {
	background: transparent;
}

.magicbar-age-card {
	width: min(100%, 460px);
	margin: auto;
	padding: clamp(22px, 5vw, 40px);
	border-radius: 25px;
	background: #fffef2;
	box-shadow: 0 16px 50px rgb(0 0 0 / 25%);
	text-align: center;
}

.magicbar-age-card .magicbar-age-logo {
	display: block;
	width: 180px;
	height: auto;
	margin: 0 auto 24px;
}

.magicbar-age-card h2 {
	margin: 0 0 16px;
	font-size: clamp(24px, 5vw, 30px);
	line-height: 1.25;
}

.magicbar-age-card p {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.6;
}

.magicbar-age-actions {
	display: grid;
	gap: 12px;
	margin-bottom: 22px;
}

.magicbar-age-actions form {
	margin: 0;
}

#magicbar-age-gate .magicbar-age-actions button,
#magicbar-age-gate .magicbar-age-actions .magicbar-age-exit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid #716887;
	border-radius: 25px;
	background: #716887;
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.4;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

#magicbar-age-gate .magicbar-age-actions .magicbar-age-exit {
	background: transparent;
	color: #4d4265;
}

.magicbar-age-card .magicbar-age-note,
.magicbar-age-card .magicbar-age-privacy {
	color: #50465e;
	font-size: 14px;
	line-height: 1.6;
}

.magicbar-age-card .magicbar-age-note {
	margin-bottom: 14px;
}

.magicbar-age-card .magicbar-age-privacy {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.magicbar-age-card :focus-visible {
	outline: 3px solid #31274b;
	outline-offset: 3px;
}

#magicbar-age-gate .magicbar-age-actions button:active,
#magicbar-age-gate .magicbar-age-actions .magicbar-age-exit:active {
	background: #514464;
	color: #fff;
}

@media (hover: hover) and (pointer: fine) {
	#magicbar-age-gate .magicbar-age-actions button:hover,
	#magicbar-age-gate .magicbar-age-actions .magicbar-age-exit:hover {
		background: #514464;
		color: #fff;
	}
}
