/* MSG – baner zgody na pliki cookies i zaślepki treści zewnętrznych */
.msg-cc {
	position: fixed;
	z-index: 9990;
	left: 1.25rem;
	bottom: 1.25rem;
	width: min(400px, calc(100vw - 2.5rem));
	padding: 1.25rem 1.35rem 1rem;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 18px 50px rgba(0, 0, 0, .22);
	color: var(--msg-ink, #1a1a1a);
	font-size: .9375rem;
	line-height: 1.5;
	animation: msg-cc-in .35s ease-out both;
}
.msg-cc[hidden] { display: none; }
@keyframes msg-cc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg-cc { animation: none; } }
.msg-cc__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.msg-cc__icon { flex: none; color: var(--msg-accent, #930e12); }
.msg-cc__title { margin: 0; font-size: 1.0625rem; font-weight: 800; line-height: 1.3; }
.msg-cc__text { margin: 0 0 1rem; color: #333; }
.msg-cc__text a, .msg-ccd__more a { color: var(--msg-accent, #930e12); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; white-space: nowrap; }
/* „Odrzuć” i „Akceptuj” – ten sam rozmiar, kolor i waga (bez nakłaniania do zgody) */
.msg-cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.msg-cc__btn {
	min-height: 44px;
	padding: .5rem 1rem;
	border: 2px solid var(--msg-accent, #930e12);
	border-radius: 8px;
	background: var(--msg-accent, #930e12);
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.msg-cc__btn:hover { background: var(--msg-accent-dark, #6d0a0d); border-color: var(--msg-accent-dark, #6d0a0d); }
.msg-cc__btn--ghost { background: #fff; color: var(--msg-accent, #930e12); }
.msg-cc__btn--ghost:hover { background: #f7f1f1; color: var(--msg-accent-dark, #6d0a0d); }
.msg-cc__link {
	display: block;
	width: 100%;
	min-height: 40px;
	margin-top: .35rem;
	padding: .35rem;
	border: 0;
	background: none;
	color: #444;
	font: inherit;
	font-size: .9375rem;
	text-decoration: underline;
	text-underline-offset: .18em;
	cursor: pointer;
}
.msg-cc__link:hover { color: var(--msg-accent, #930e12); }
.msg-cc__btn:focus-visible, .msg-cc__link:focus-visible, .msg-ccd__close:focus-visible, .msg-ccd__switch:focus-visible, .msg-ext__btn:focus-visible, .msg-cc-open:focus-visible {
	outline: 3px solid var(--msg-focus, #ffbf47);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #1a1a1a;
}
@media (max-width: 599.98px) {
	.msg-cc { left: .5rem; right: .5rem; bottom: .5rem; width: auto; padding: 1rem 1rem .75rem; }
	.msg-cc__text { margin-bottom: .75rem; }
}

/* Ustawienia */
.msg-ccd {
	width: min(560px, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
	color: var(--msg-ink, #1a1a1a);
}
.msg-ccd::backdrop { background: rgba(10, 12, 16, .55); }
.msg-ccd__inner { padding: 1.4rem 1.5rem 1.25rem; }
.msg-ccd__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.msg-ccd__title { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.msg-ccd__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -.6rem; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.msg-ccd__close:hover { background: #f3f1ee; }
.msg-ccd__lead { margin: .4rem 0 1rem; color: #444; font-size: .9375rem; }
.msg-ccd__list { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.msg-ccd__item { padding: .9rem 1rem; border-radius: 10px; background: #f6f4f1; }
.msg-ccd__item + .msg-ccd__item { margin-top: .6rem; }
.msg-ccd__row { display: flex; align-items: center; gap: .75rem; }
.msg-ccd__label { flex: 1; font-weight: 700; cursor: pointer; }
.msg-ccd__always { color: #545454; font-size: .875rem; font-weight: 600; }
.msg-ccd__desc { margin: .3rem 0 0; color: #3d3d3d; font-size: .875rem; line-height: 1.5; }
/* Przełącznik (checkbox z role="switch") */
.msg-ccd__switch {
	flex: none;
	position: relative;
	width: 48px;
	height: 28px;
	margin: 0;
	border: 2px solid #6b6b6b;
	border-radius: 14px;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.msg-ccd__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #6b6b6b;
	transition: transform .15s;
}
.msg-ccd__switch:checked { border-color: var(--msg-accent, #930e12); background: var(--msg-accent, #930e12); }
.msg-ccd__switch:checked::after { background: #fff; transform: translateX(20px); }
.msg-ccd__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.msg-ccd__actions [data-msg-cc="save"] { grid-column: 1 / -1; }
.msg-ccd__more { margin: .9rem 0 0; font-size: .9375rem; text-align: center; }

/* Przycisk „Ustawienia plików cookies” (stopka, polityka prywatności) */
.msg-cc-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* Zaślepka treści zewnętrznej */
.msg-ext {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: var(--ext-ratio, 16 / 9);
	min-height: 260px;
	margin: 1rem 0;
	overflow: hidden;
	border-radius: var(--msg-radius, 6px);
	background: #1c1f24;
	color: #fff;
}
.msg-ext.is-loaded { display: block; min-height: 0; background: #000; }
.msg-ext__frame { display: block; width: 100%; height: 100%; border: 0; }
.msg-ext__box { max-width: 34rem; padding: 1.25rem 1.5rem; text-align: center; }
.msg-ext__title { margin: 0 0 .4rem; font-size: 1.125rem; font-weight: 800; }
.msg-ext__text { margin: 0 0 1rem; font-size: .9375rem; line-height: 1.5; }
.msg-ext__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 .75rem; }
.msg-ext__btn { min-height: 44px; padding: .5rem 1rem; border: 2px solid #fff; border-radius: var(--msg-radius, 6px); background: #fff; color: #1a1a1a; font: inherit; font-weight: 700; cursor: pointer; }
.msg-ext__btn:hover { text-decoration: underline; }
.msg-ext__btn--ghost { background: transparent; color: #fff; }
.msg-ext__alt { margin: 0; font-size: .9375rem; }
.msg-ext__alt a { color: #fff; text-decoration: underline; }
html.a11y-contrast .msg-cc, html.a11y-contrast .msg-ccd { border: 2px solid #fff; }
@media (max-width: 479.98px) {
	.msg-ccd__actions { grid-template-columns: 1fr; }
	.msg-ccd__inner { padding: 1.1rem 1.1rem 1rem; }
}
