/* WD Tools - Zgody (baner cookies) */
.wdn-zgody[hidden], .wdn-zgody-float[hidden], .wdn-zgody [hidden] { display: none !important; }

.wdn-zgody {
	--wdn-zgody-bg: #ffffff;
	--wdn-zgody-fg: #1f2937;
	--wdn-zgody-muted: #5b6472;
	--wdn-zgody-line: #e5e7eb;
	position: fixed;
	z-index: 2147483000;
	font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--wdn-zgody-fg);
	box-sizing: border-box;
}
.wdn-zgody *, .wdn-zgody *::before, .wdn-zgody *::after { box-sizing: border-box; }
/* Motywy (np. Divi) dokładają akapitom i przyciskom własne odstępy - zerujemy w banerze */
.wdn-zgody p { padding: 0; }
.wdn-zgody button { text-transform: none; letter-spacing: normal; }
/* Tekst w kolorze marki na białym tle: przyciemniony, żeby był czytelny także przy jasnych kolorach (złoto, żółć) */
.wdn-zgody { --wdn-zgody-ink: color-mix(in srgb, var(--wdn-zgody-c, #033ebd) 55%, #000); }

.wdn-zgody__box {
	position: relative;
	background: var(--wdn-zgody-bg);
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08);
	padding: 22px 22px 0;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}

/* Pozycje */
.wdn-zgody--rog { left: 16px; bottom: 16px; width: 420px; max-width: calc(100vw - 32px); }
.wdn-zgody--dol { left: 0; right: 0; bottom: 0; }
.wdn-zgody--dol .wdn-zgody__box { border-radius: 14px 14px 0 0; max-width: 1100px; margin: 0 auto; }
.wdn-zgody--srodek { inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.wdn-zgody--srodek .wdn-zgody__box { width: 560px; max-width: 100%; }
.wdn-zgody__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }

.wdn-zgody__title { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--wdn-zgody-fg); }
.wdn-zgody__msg { margin: 0 0 2px; color: var(--wdn-zgody-muted); font-size: 14px; }
.wdn-zgody__policy { color: var(--wdn-zgody-ink, #033ebd); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.wdn-zgody__policy:hover { text-decoration-thickness: 2px; }

/* Kategorie */
.wdn-zgody__cats { border-top: 1px solid var(--wdn-zgody-line); margin: 12px 0 0; }
.wdn-zgody__cat { padding: 12px 0; border-bottom: 1px solid var(--wdn-zgody-line); }
.wdn-zgody__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; margin: 0; }
.wdn-zgody__cat-name { font-weight: 600; font-size: 14px; }
.wdn-zgody__cat-desc { margin: 4px 0 0; color: var(--wdn-zgody-muted); font-size: 13px; }
.wdn-zgody__more { margin: 6px 0 0; font-size: 12.5px; }
.wdn-zgody__more > summary { cursor: pointer; color: var(--wdn-zgody-muted); text-decoration: underline; text-underline-offset: 2px; list-style: revert; }
.wdn-zgody__more[open] > summary { margin-bottom: 6px; }
.wdn-zgody__list { list-style: none; margin: 0; padding: 0; }
.wdn-zgody__list li { padding: 6px 0; border-top: 1px dashed var(--wdn-zgody-line); line-height: 1.45; word-break: break-word; }
.wdn-zgody__list li:first-child { border-top: 0; }
.wdn-zgody__prov, .wdn-zgody__kv, .wdn-zgody__none { color: var(--wdn-zgody-muted); }
.wdn-zgody__none { margin: 0; }

.wdn-zgody__switch { position: relative; flex: 0 0 42px; width: 42px; height: 24px; }
.wdn-zgody__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.wdn-zgody__slider { position: absolute; inset: 0; background: #cbd2dc; border-radius: 24px; transition: background-color .2s ease; }
.wdn-zgody__slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s ease; }
.wdn-zgody__switch input:checked + .wdn-zgody__slider { background: var(--wdn-zgody-c, #033ebd); }
.wdn-zgody__switch input:checked + .wdn-zgody__slider::after { transform: translateX(18px); }
.wdn-zgody__switch input:disabled { cursor: not-allowed; }
.wdn-zgody__switch input:disabled + .wdn-zgody__slider { opacity: .55; }
.wdn-zgody__switch input:focus-visible + .wdn-zgody__slider { outline: 2px solid var(--wdn-zgody-c, #033ebd); outline-offset: 2px; }

/* Przyciski - „Akceptuję" i „Odrzucam" celowo identyczne (równorzędny wybór) */
.wdn-zgody__box:focus { outline: none; }
/* Przyciski przyklejone do dołu okienka - przy długich ustawieniach zawsze widoczne */
.wdn-zgody__btns { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; bottom: 0; padding: 12px 0 18px; background: var(--wdn-zgody-bg); }
.wdn-zgody__btn {
	flex: 1 1 auto;
	min-height: 42px;
	padding: 9px 16px;
	border: 2px solid var(--wdn-zgody-c, #033ebd);
	border-radius: 10px;
	background: var(--wdn-zgody-c, #033ebd);
	color: var(--wdn-zgody-ct, #fff);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: filter .2s ease, background-color .2s ease, color .2s ease;
}
.wdn-zgody__btn:hover { filter: brightness(1.1); }
.wdn-zgody__btn:active { filter: brightness(.92); }
.wdn-zgody__btn:focus-visible { outline: 3px solid var(--wdn-zgody-c, #033ebd); outline-offset: 2px; }
.wdn-zgody__btn--ghost { background: transparent; color: var(--wdn-zgody-ink, #033ebd); }
.wdn-zgody__btn--ghost:hover { filter: none; background: color-mix(in srgb, var(--wdn-zgody-c, #033ebd) 10%, transparent); }
.wdn-zgody__btn--ghost:active { filter: none; background: color-mix(in srgb, var(--wdn-zgody-c, #033ebd) 18%, transparent); }
.wdn-zgody--rog .wdn-zgody__btn { flex-basis: calc(50% - 4px); }
.wdn-zgody--rog .wdn-zgody__btn--ghost { flex-basis: 100%; }
.wdn-zgody--dol .wdn-zgody__btns { justify-content: flex-end; }
.wdn-zgody--dol .wdn-zgody__btn { flex: 0 0 190px; }
.wdn-zgody--srodek .wdn-zgody__btn { flex: 1 1 0; }

/* Pływający przycisk do zmiany zgody */
.wdn-zgody-float {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482999;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--wdn-zgody-c, #033ebd);
	color: var(--wdn-zgody-ct, #fff);
	font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .2);
	cursor: pointer;
	opacity: .85;
	transition: opacity .2s ease, transform .2s ease;
}
.wdn-zgody-float:hover, .wdn-zgody-float:focus-visible { opacity: 1; transform: translateY(-1px); }
.wdn-zgody-float:focus-visible { outline: 3px solid var(--wdn-zgody-c, #033ebd); outline-offset: 2px; }

/* Zaślepka zamiast filmu / mapy */
.wdn-zgody-ph {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 220px;
	aspect-ratio: 16 / 9;
	background: #f1f4f8;
	border: 1px solid #dfe5ec;
	border-radius: 10px;
	text-align: center;
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1f2937;
}
.wdn-zgody-ph__in { max-width: 460px; padding: 20px; }
.wdn-zgody-ph__t { margin: 0 0 6px; font-weight: 700; }
.wdn-zgody-ph__d { margin: 0 0 14px; color: #5b6472; font-size: 13px; }
.wdn-zgody-ph__btn {
	padding: 9px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--wdn-zgody-c, #033ebd);
	color: var(--wdn-zgody-ct, #fff);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: filter .2s ease;
}
.wdn-zgody-ph__btn:hover { filter: brightness(1.1); }
.wdn-zgody-ph__btn:focus-visible { outline: 3px solid var(--wdn-zgody-c, #033ebd); outline-offset: 2px; }

/* Lista usług ([wdn_zgody_lista]) */
.wdn-zgody-lista { width: 100%; border-collapse: collapse; font-size: 14px; }
.wdn-zgody-lista th, .wdn-zgody-lista td { padding: 8px 10px; border: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.wdn-zgody-lista th { background: #f6f7f9; }

@media (max-width: 600px) {
	.wdn-zgody--rog { left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; }
	.wdn-zgody__box { padding: 18px 16px 0; }
	.wdn-zgody__btns { padding-bottom: 14px; }
	.wdn-zgody--dol .wdn-zgody__btn, .wdn-zgody--rog .wdn-zgody__btn, .wdn-zgody--srodek .wdn-zgody__btn { flex: 1 1 100%; }
	.wdn-zgody-float { left: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.wdn-zgody *, .wdn-zgody-float, .wdn-zgody-ph__btn { transition: none !important; }
}

/* Twoja zgoda: identyfikator i data */
.wdn-zgody__mine { margin: 10px 0 0; font-size: 12px; line-height: 1.5; opacity: .8; overflow-wrap: anywhere; }
.wdn-zgody-moja { font-size: .95em; overflow-wrap: anywhere; }

/* Dostępność: bez animacji, gdy użytkownik ich nie chce */
@media (prefers-reduced-motion: reduce) {
	.wdn-zgody *, .wdn-zgody-float, .wdn-zgody-ph * { transition: none !important; animation: none !important; }
}

/* Zaślepka przed widżetem (Instagram, Facebook...) - niska, bez proporcji filmu */
.wdn-zgody-ph--w { aspect-ratio: auto; margin: 0 0 12px; }
