/* Piąte Kąty – Cookies */
#pk-cc {
	--pkc-accent: #E0603F;
	--pkc-bg: #ffffff;
	--pkc-ink: #1F2430;
	--pkc-muted: #5b6070;
	--pkc-line: #e4e0d8;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.55;
	color: var(--pkc-ink);
}
[data-theme="dark"] #pk-cc { --pkc-bg: #1E2330; --pkc-ink: #F1ECE4; --pkc-muted: #b4b7bf; --pkc-line: #333a49; }
#pk-cc [hidden] { display: none !important; }
#pk-cc * { box-sizing: border-box; }

/* Baner */
.pkc-banner {
	position: fixed; z-index: 99999; left: 16px; right: 16px; bottom: 16px;
	background: var(--pkc-bg); color: var(--pkc-ink);
	border: 1px solid var(--pkc-line); border-radius: 18px;
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35);
	animation: pkc-up .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes pkc-up { from { transform: translateY(20px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pkc-banner { animation: none; } }
.pkc-banner-inner { max-width: 1200px; margin: 0 auto; padding: 20px 24px; display: flex; gap: 24px; align-items: center; }
.pkc-copy { flex: 1; min-width: 0; }
.pkc-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; }
.pkc-text { margin: 0; color: var(--pkc-muted); }
.pkc-text a { color: var(--pkc-ink); text-decoration: underline; text-underline-offset: 2px; }
.pkc-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }

/* Układ: pudełko w lewym dolnym rogu */
.pkc-layout-box .pkc-banner { right: auto; max-width: 420px; }
.pkc-layout-box .pkc-banner-inner { flex-direction: column; align-items: stretch; }
.pkc-layout-box .pkc-actions .pkc-btn { flex: 1; }

/* Przyciski – „Akceptuję” i „Odrzucam” celowo tak samo widoczne */
.pkc-btn {
	appearance: none; border: 2px solid var(--pkc-ink); background: var(--pkc-ink); color: var(--pkc-bg);
	padding: .62em 1.15em; border-radius: 999px; font: inherit; font-weight: 600; font-size: .92rem;
	cursor: pointer; white-space: nowrap; transition: transform .15s, background-color .15s, color .15s;
}
.pkc-btn:hover { background: var(--pkc-accent); border-color: var(--pkc-accent); color: #fff; }
.pkc-btn:focus-visible { outline: 3px solid var(--pkc-accent); outline-offset: 2px; }
.pkc-btn-ghost { background: transparent; color: var(--pkc-ink); }
.pkc-inline-btn { margin: .5em 0 1em; }

/* Okno ustawień */
.pkc-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(10, 12, 18, .55); display: grid; place-items: center; padding: 16px; }
.pkc-modal-box {
	position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
	background: var(--pkc-bg); color: var(--pkc-ink); border-radius: 20px; padding: 28px; outline: none;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
.pkc-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--pkc-ink); font-size: 26px; line-height: 1; cursor: pointer; border-radius: 50%; }
.pkc-close:hover { background: rgba(127, 127, 127, .15); }
.pkc-modal .pkc-title { font-size: 1.25rem; padding-right: 32px; }
.pkc-cats { list-style: none; margin: 18px 0 22px; padding: 0; }
.pkc-cat { padding: 14px 0; border-top: 1px solid var(--pkc-line); }
.pkc-cat-desc { margin: 6px 0 0 58px; color: var(--pkc-muted); font-size: .9rem; }
.pkc-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.pkc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pkc-slider { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: #c5c8cf; transition: background-color .2s; }
.pkc-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.pkc-switch input:checked + .pkc-slider { background: var(--pkc-accent); }
.pkc-switch input:checked + .pkc-slider::after { transform: translateX(20px); }
.pkc-switch input:disabled + .pkc-slider { opacity: .55; }
.pkc-switch input:focus-visible + .pkc-slider { outline: 3px solid var(--pkc-accent); outline-offset: 2px; }
.pkc-modal .pkc-actions { justify-content: flex-end; }
html.pkc-modal-open { overflow: hidden; }

/* Pływający przycisk */
.pkc-float {
	position: fixed; z-index: 99998; left: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--pkc-line); background: var(--pkc-bg); color: var(--pkc-ink); cursor: pointer;
	display: grid; place-items: center; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35); opacity: .85; transition: opacity .2s, transform .2s;
}
.pkc-float:hover { opacity: 1; transform: rotate(-12deg); }

/* Tabela w polityce prywatności */
.pkc-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pkc-table th, .pkc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(127, 127, 127, .25); vertical-align: top; }
.pkc-table tbody th { background: rgba(127, 127, 127, .08); }

@media (max-width: 760px) {
	.pkc-banner { left: 10px; right: 10px; bottom: 10px; }
	.pkc-banner-inner { flex-direction: column; align-items: stretch; padding: 18px; gap: 14px; }
	.pkc-actions { flex-direction: column-reverse; }
	.pkc-actions .pkc-btn { width: 100%; }
	.pkc-cat-desc { margin-left: 0; }
}
