/* PM Prawne — baner zgód i zaślepki treści zewnętrznych */
.pmpr-cc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px));
	font-family: inherit;
	color: #1c2430;
	line-height: 1.5;
}
.pmpr-cc[hidden] { display: none; }
.pmpr-cc *,
.pmpr-cc *::before,
.pmpr-cc *::after { box-sizing: border-box; }
.pmpr-cc__box {
	max-width: 760px;
	max-height: calc(100vh - 24px);
	overflow: auto;
	margin: 0 auto;
	padding: 16px;
	background: #fff;
	border: 1px solid #dfe3e8;
	border-radius: 14px;
	box-shadow: 0 -4px 30px rgba(12, 42, 69, .22);
}
.pmpr-cc__view[hidden] { display: none; }
.pmpr-cc__title { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: #0c2a45; }
.pmpr-cc__text { margin: 0 0 12px; font-size: 14.5px; color: #2a3540; }
.pmpr-cc__text a { color: #12395c; font-weight: 600; }

.pmpr-cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pmpr-cc__btn {
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.pmpr-cc__btn:focus-visible { outline: 3px solid #1f7a8c; outline-offset: 2px; }
/* „Akceptuję” i „Odrzucam” — ten sam rozmiar i waga, bez wyróżniania jednej decyzji */
.pmpr-cc__btn--yes { background: #12395c; color: #fff; }
.pmpr-cc__btn--yes:hover { background: #0c2a45; }
.pmpr-cc__btn--no { background: #12395c; color: #fff; }
.pmpr-cc__btn--no:hover { background: #0c2a45; }
.pmpr-cc__btn--link { grid-column: 1 / -1; background: #fff; border-color: #c9d1d9; color: #12395c; }
.pmpr-cc__btn--link:hover { border-color: #12395c; }

.pmpr-cc__cats { margin: 4px 0 14px; padding: 0; list-style: none; }
.pmpr-cc__cats li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #ebeef1; }
.pmpr-cc__cat { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.pmpr-cc__cat strong { font-size: 15px; color: #0c2a45; }
.pmpr-cc__cat span { font-size: 13.5px; color: #5b6673; }

.pmpr-switch { position: relative; flex: none; width: 46px; height: 26px; }
.pmpr-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.pmpr-switch span { position: absolute; inset: 0; border-radius: 13px; background: #c9d1d9; transition: background .15s; }
.pmpr-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.pmpr-switch input:checked + span { background: #2f8f5b; }
.pmpr-switch input:checked + span::after { transform: translateX(20px); }
.pmpr-switch input:focus-visible + span { outline: 3px solid #1f7a8c; outline-offset: 2px; }
.pmpr-switch.is-locked { opacity: .6; }
.pmpr-switch.is-locked input { cursor: not-allowed; }

/* Pływający przycisk ogłoszeń nie może zasłaniać banera */
html.pmpr-cc-open .pmo-fab { bottom: 260px; }

@media (min-width: 640px) {
	.pmpr-cc { padding-bottom: 16px; }
	.pmpr-cc__box { padding: 20px 22px; }
	.pmpr-cc__actions { grid-template-columns: 1fr 1fr auto; }
	.pmpr-cc__btn--link { grid-column: auto; }
	html.pmpr-cc-open .pmo-fab { bottom: 200px; }
}

/* Zaślepka filmu / posta */
.pmpr-embed { margin: 18px 0; }
.pmpr-embed__ph {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 22px 18px;
	border-radius: 10px;
	background: #10202f;
	color: #e7eef4;
	text-align: center;
}
.pmpr-embed--video .pmpr-embed__ph { aspect-ratio: 16 / 9; }
.pmpr-embed__ph p { margin: 0; }
.pmpr-embed__title { font-weight: 800; font-size: 17px; color: #fff; }
.pmpr-embed__text { font-size: 14px; color: #b9c7d4; max-width: 460px; margin: 0 auto !important; }
.pmpr-embed__actions { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; align-items: center; margin-top: 8px !important; }
.pmpr-embed__actions a { color: #fff; }
.pmpr-embed.is-loaded iframe { max-width: 100%; }

.pmpr-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 18px;
	border: 0; border-radius: 8px;
	background: #2f8f5b; color: #fff;
	font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.pmpr-btn:hover { background: #24774a; }
