/**
 * MaklerPress Consent – Zwei-Klick-Platzhalter (DSGVO).
 *
 * Styling für den Einwilligungs-Platzhalter, der externe Einbettungen
 * (Google Maps, 360°-Tour, Video) überdeckt, bis der Besucher zustimmt.
 * Nutzt die zentralen --mp-*-Tokens mit robusten Fallbacks.
 *
 * @since 1.54.0-dev
 */

/* Host-Element (Karten-/iFrame-Container) trägt den Platzhalter absolut. */
.mp-consent-host {
	position: relative;
}

.mp-consent {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	text-align: center;
	background-color: var(--mp-bg-subtle, #f1f3f6);
	background-size: cover;
	background-position: center;
	border-radius: inherit;
}

/* Mit Objekt-Titelbild als Poster: abdunkeln für Lesbarkeit des Hinweises. */
.mp-consent--poster::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(13, 13, 13, 0.55);
	border-radius: inherit;
}

.mp-consent__box {
	position: relative;
	z-index: 1;
	max-width: 32rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1.25rem 1.5rem;
	background: var(--mp-bg-surface-color, #ffffff);
	border: 1px solid var(--mp-border, rgba(0, 0, 0, 0.1));
	border-radius: var(--mp-radius-m, 12px);
	box-shadow: 0 6px 24px var(--mp-shadow-color, rgba(13, 13, 13, 0.18));
}

.mp-consent--poster .mp-consent__box {
	background: var(--mp-bg-surface-color, rgba(255, 255, 255, 0.96));
}

.mp-consent__title {
	margin: 0;
	font-family: var(--mp-font-heading, inherit);
	font-size: var(--mp-head-m, 1.1rem);
	font-weight: 600;
	color: var(--mp-text-heading-color, #141925);
}

.mp-consent__body {
	margin: 0;
	font-family: var(--mp-font-body, inherit);
	font-size: 0.9rem;
	line-height: var(--mp-leading-normal, 1.5);
	color: var(--mp-text-body-color, #4a5568);
}

.mp-consent__btn {
	margin-top: 0.35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.4rem;
	font-family: var(--mp-font-body, inherit);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	color: #ffffff;
	background: var(--mp-primary-color, var(--mp-primary, #df5634));
	border: none;
	border-radius: var(--mp-radius-full, 999px);
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.05s ease;
}

.mp-consent__btn:hover {
	filter: brightness(0.94);
}

.mp-consent__btn:active {
	transform: translateY(1px);
}

.mp-consent__btn:focus-visible {
	outline: 2px solid var(--mp-border-focus, var(--mp-primary-color, #df5634));
	outline-offset: 2px;
}
