/* Altersverifikation 18+ fuer alkoholische Produkte (Bier, Wein, Likoer,
   Kinnie Spritz, Kinnie Rumba). Markup und Logik: age-gate.js /
   functions.php (salient_child_age_gate_*).

   Der Overlay wird serverseitig gerendert und ist per Default sichtbar,
   damit auf einer gesperrten Produktseite nichts aufblitzt, bevor JS
   laeuft. Das Inline-Skript im <head> setzt bei gesetztem Cookie die
   Attribut data-ml-age="ok" auf <html> und blendet ihn damit vor dem ersten
   Paint wieder aus. */

.ml-age-gate {
	position: fixed;
	inset: 0;
	z-index: 100000; /* Salient-Header liegt auf 9999 */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(18, 18, 18, 0.93);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

/* Bereits bestaetigt, bzw. auf Listenseiten: erst auf Klick oeffnen. */
html[data-ml-age="ok"] .ml-age-gate,
.ml-age-gate[data-auto="0"] {
	display: none;
}
.ml-age-gate.ml-age-gate--open {
	display: flex;
}

/* Scroll-Sperre, solange die Seite gesperrt ist. */
html[data-ml-age="locked"],
html[data-ml-age="locked"] body {
	overflow: hidden !important;
}

.ml-age-gate__box {
	width: 100%;
	max-width: 460px;
	padding: 34px 30px 26px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
	text-align: center;
}

.ml-age-gate__logo {
	display: block;
	width: 220px;
	max-width: 80%;
	height: auto;
	margin: 0 auto 22px;
}

.ml-age-gate__text {
	margin: 0 0 22px;
	font-size: 17px;
	line-height: 1.55;
	color: #333;
}

.ml-age-gate__check {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 0 18px;
	text-align: center;
	font-size: 17px;
	line-height: 1.4;
	color: #222;
	cursor: pointer;
}

/* Salient faerbt <span> in Labels mit der Akzentfarbe (#B3172D) ein -
   hier soll der Text normal lesbar bleiben. */
.ml-age-gate__check span {
	color: #222;
}

.ml-age-gate__check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: #8E1324;
	cursor: pointer;
}

.ml-age-gate__error {
	margin: -8px 0 14px;
	font-size: 15px;
	line-height: 1.4;
	color: #8E1324;
}

.ml-age-gate__confirm {
	display: block;
	width: 100%;
	padding: 13px 20px;
	border: 0;
	border-radius: 4px;
	background: #8E1324;
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.ml-age-gate__confirm:hover,
.ml-age-gate__confirm:focus {
	background: #741017;
	color: #fff;
}

.ml-age-gate__confirm[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
	background: #8E1324;
}

.ml-age-gate__decline {
	display: inline-block;
	margin: 16px 0 0;
	padding: 4px;
	border: 0;
	background: none;
	font-size: 15px;
	line-height: 1.4;
	color: #666;
	text-decoration: underline;
	cursor: pointer;
}

.ml-age-gate__decline:hover,
.ml-age-gate__decline:focus {
	color: #8E1324;
}

@media (max-width: 480px) {
	.ml-age-gate__box {
		padding: 28px 22px 22px;
	}
	.ml-age-gate__logo {
		width: 180px;
		margin-bottom: 18px;
	}
}

/* Sehr schmale Geraete (iPhone SE 1. Gen): sonst bricht die Checkbox-Zeile um
   und das Kaestchen steht mittig neben zwei Textzeilen. */
@media (max-width: 360px) {
	.ml-age-gate__box {
		padding: 26px 16px 20px;
	}
	.ml-age-gate__check {
		font-size: 15px;
	}
}
