/**
 * Korhatár-kapu („Elmúltál már 18 éves?”).
 *
 * A gombok a site Etch `home-cta` gombjai, a szabályaik az
 * innowine-age-gate.php-ből jönnek inline; itt csak a szélességük van. Px,
 * mert az ACSS miatt 1rem = 10px.
 */

.iw-agegate {
	box-sizing: border-box;
	inline-size: min(720px, calc(100vw - 32px));
	max-inline-size: none;
	max-block-size: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: 8px;
	background: #fff;
	color: #111;
	box-shadow: 0 24px 64px rgb(17 18 22 / 28%);
	font-family: inherit;
	text-align: center;
}

.iw-agegate::backdrop {
	background: rgb(17 18 22 / 72%);
	backdrop-filter: blur(3px);
}

/* A kapu nyitva: a lap mögötte ne görögjön. */
html:has(.iw-agegate[open]) {
	overflow: hidden;
}

.iw-agegate:focus {
	outline: none;
}

.iw-agegate__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding: 44px 48px 36px;
}

.iw-agegate__logo {
	display: block;
	inline-size: 150px;
	block-size: auto;
}

.iw-agegate__brand {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.iw-agegate__ask,
.iw-agegate__refused {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.iw-agegate__refused:focus {
	outline: none;
}

.iw-agegate[data-state="kerdes"] .iw-agegate__refused,
.iw-agegate[data-state="nem"] .iw-agegate__ask {
	display: none;
}

.iw-agegate__title {
	margin: 0;
	color: #111;
	font-size: clamp(28px, 5.4vw, 46px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-wrap: balance;
}

.iw-agegate__text {
	max-inline-size: 560px;
	margin: 0;
	color: #3d3c39;
	font-size: 16px;
	line-height: 1.55;
	text-wrap: pretty;
}

.iw-agegate__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-block-start: 6px;
}

.iw-agegate .iw-agegate__btn {
	min-inline-size: 132px;
}

.iw-agegate__remember {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #3d3c39;
	font-size: 14px;
	line-height: 1.3;
	cursor: pointer;
}

.iw-agegate__check {
	inline-size: 18px;
	block-size: 18px;
	margin: 0;
	accent-color: #111;
	cursor: pointer;
}

.iw-agegate__check:focus-visible {
	outline: 2px solid #b3161e;
	outline-offset: 2px;
}

@media (max-width: 560px) {
	.iw-agegate__inner {
		gap: 20px;
		padding: 32px 20px 28px;
	}

	.iw-agegate__logo {
		inline-size: 120px;
	}

	.iw-agegate__text {
		font-size: 15px;
	}

	.iw-agegate__actions {
		inline-size: 100%;
	}

	.iw-agegate .iw-agegate__btn {
		flex: 1 1 0;
		min-inline-size: 0;
	}
}
