/*
 * Consent gate a fiókkereső térkép (geo.allampapir.hu iframe) elé -- lásd
 * app/Views/partials/consent_gate.php. Önálló fájl, hogy ne kelljen a main.scss
 * build-jéhez nyúlni; a view <head>-je tölti be.
 */

/*
 * A gate mögötti térkép-konténer (csak a "Hol köthetem meg?" fő térképnél, ahol a gate
 * a mapfix testvére, nem a szülője) -- kizárólag a html/js/bond.js syncConsentGates()
 * veszi le róla, lásd az indoklást app/Views/partials/consent_gate.php-ban.
 */
.consent-gate-target--hidden {
	display: none !important;
}

.consent-gate {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.consent-gate--main {
	min-height: calc(100vh - 100px);
}

.consent-gate--side {
	position: absolute;
	inset: 0;
}

.consent-gate picture,
.consent-gate__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.consent-gate__thumb {
	display: block;
	object-fit: cover;
	object-position: center;
	filter: blur(4px);
}

.consent-gate__overlay {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 24px;
	text-align: center;
	width: 100%;
}

.consent-gate--side .consent-gate__overlay {
	padding: 12px;
	gap: 10px;
}

.consent-gate__text {
	margin: 0;
	max-width: 480px;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 600;
	color: #1a1a1a !important;
	background-color: #fff;
	padding: 12px 20px;
	border-radius: 4px;
}

.consent-gate--side .consent-gate__text {
	font-size: 13px;
	max-width: none;
	padding: 8px 12px;
}

.consent-gate__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.consent-gate__accept {
	/* .btn.btn-red-ből örökli a színeket/kontrasztot (>=4.5:1, fehér a #e4003a-n) */
}

.consent-gate--side .consent-gate__accept {
	padding: 6px 16px;
	font-size: 13px;
}

.consent-gate__settings {
	cursor: pointer;
	border: none;
	background-color: #fff;
	color: #e4003a;
	font-size: 14px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 4px;
	text-decoration: underline;
}

.consent-gate--side .consent-gate__settings {
	font-size: 12px;
	padding: 4px 10px;
}

.consent-gate__settings:hover {
	color: #b3002d;
}

.consent-gate__accept:focus-visible,
.consent-gate__settings:focus-visible {
	outline: 3px solid #1a1a1a;
	outline-offset: 2px;
}

/* Windows High Contrast / forced-colors alatt is látszódjon a fókusz. */
@media (forced-colors: active) {
	.consent-gate__accept:focus-visible,
	.consent-gate__settings:focus-visible {
		outline: 3px solid CanvasText;
	}
}
