/*! Car-Rex Consent 1.0.0 | GPL-2.0-or-later | pływający przycisk i placeholdery osadzeń (spec §5.2, §6.2, ZMIANA 1) */

/* Ikona zgody zawsze w LEWYM dolnym rogu (ZMIANA 1), 44×44 px, z-index ≤ 9990. */
button.cr-consent-fab {
	align-items: center;
	background: #1d2327;
	border: 2px solid #ffffff;
	border-radius: 50%;
	bottom: max(16px, env(safe-area-inset-bottom));
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	left: max(16px, env(safe-area-inset-left));
	line-height: 1;
	margin: 0;
	min-height: 44px;
	min-width: 44px;
	padding: 0;
	position: fixed;
	right: auto;
	top: auto;
	width: 44px;
	z-index: 9990;
}

button.cr-consent-fab:hover,
button.cr-consent-fab:focus {
	background: #000000;
	border-color: #ffffff;
	color: #ffffff;
}

button.cr-consent-fab:focus-visible {
	outline: 3px solid #0a4bb5;
	outline-offset: 2px;
}

button.cr-consent-fab svg {
	display: block;
	height: 24px;
	pointer-events: none;
	width: 24px;
}

@media print {
	button.cr-consent-fab {
		display: none;
	}
}

/* B1/C6: [cr_consent_settings_link] = <button> wyglądający jak link (Enter i Spacja), fokus niezależny od motywu. */
button.cr-consent-settings-link {
	appearance: none;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	display: inline;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	margin: 0;
	min-height: 0;
	padding: 0;
	text-align: inherit;
	text-decoration: underline;
	text-transform: inherit;
	text-underline-offset: 2px;
}

button.cr-consent-settings-link:hover,
button.cr-consent-settings-link:focus {
	background: none;
	color: inherit;
	text-decoration: underline;
}

button.cr-consent-settings-link:focus-visible {
	outline: 3px solid #0a4bb5;
	outline-offset: 2px;
}

/* ---------- Osadzenia zablokowane do zgody ---------- */
.cr-embed {
	background: #f0f0f1;
	border: 1px solid #c3c4c7;
	box-sizing: border-box;
	color: #1d2327;
	display: block;
	max-width: var(--cr-embed-w, 100%);
	min-height: var(--cr-embed-h, 300px);
	position: relative;
	width: 100%;
}

.cr-embed[style*="--cr-embed-ratio"] {
	aspect-ratio: var(--cr-embed-ratio);
	min-height: 0;
}

@media (max-width: 1024px) {
	.cr-embed {
		min-height: var(--cr-embed-h-tablet, var(--cr-embed-h, 300px));
	}
}

@media (max-width: 767px) {
	.cr-embed {
		min-height: var(--cr-embed-h-mobile, var(--cr-embed-h-tablet, var(--cr-embed-h, 300px)));
	}
}

.cr-embed__placeholder {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	justify-content: center;
	line-height: 1.5;
	min-height: inherit;
	padding: 1rem;
	text-align: center;
}

.cr-embed__placeholder p {
	margin: 0;
	max-width: 40em;
}

button.cr-embed__btn {
	background: #1d2327;
	border: 2px solid #1d2327;
	border-radius: 6px;
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	min-height: 44px;
	min-width: 44px;
	padding: 0.6em 1.2em;
}

button.cr-embed__btn:hover,
button.cr-embed__btn:focus {
	background: #000000;
	border-color: #000000;
	color: #ffffff;
}

button.cr-embed__btn:focus-visible,
a.cr-embed__link:focus-visible {
	outline: 3px solid #0a4bb5;
	outline-offset: 2px;
}

a.cr-embed__link {
	color: #0a4bb5;
	text-decoration: underline;
}

.cr-embed__sr {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	white-space: nowrap;
	width: 1px;
}

.cr-embed--active {
	background: transparent;
	border: 0;
}

/* B2: region role=status zawsze w drzewie dostępności (ukryty wizualnie, bez display:none). */
.cr-embed__status {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* Zero specyficzności: CSS motywu/Elementora (np. .elementor-widget-google_maps iframe) ma pierwszeństwo. */
:where(.cr-embed--active) iframe {
	border: 0;
	display: block;
	height: var(--cr-embed-h, 300px);
	width: 100%;
}

:where(.cr-embed--active[style*="--cr-embed-ratio"]) iframe {
	aspect-ratio: var(--cr-embed-ratio);
	height: auto;
}
