/* Stecu Cookies – wygląd dopasowuje się do motywu (zmienne --green, --ink motywu Błonie). */
body {
	--stc-accent: var(--green, #1f4b44);
	--stc-ink: var(--ink, #1b2321);
	--stc-muted: var(--muted, #56625e);
	--stc-line: var(--line, #dde1dd);
	--stc-paper: var(--paper, #f3f4f1);
	--stc-font: var(--sans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--stc-serif: var(--serif, var(--stc-font));
}
.stc {
	font: 400 16px/1.55 var(--stc-font);
	color: var(--stc-ink);
	box-sizing: border-box;
}
.stc *, .stc *::before, .stc *::after { box-sizing: border-box; }
.stc[hidden], .stc [hidden] { display: none !important; }
.stc-title { margin: 0 0 6px; font: 600 1.45rem/1.15 var(--stc-serif); color: var(--stc-ink); }

/* Przyciski: „Akceptuję” i „Tylko niezbędne” wyglądają tak samo (równorzędny wybór). */
.stc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; padding: 0 20px; border: 1.5px solid var(--stc-accent); border-radius: 999px;
	background: var(--stc-accent); color: #fff; font: 600 15px/1.2 var(--stc-font); cursor: pointer; white-space: nowrap;
	transition: filter .15s, background .15s;
}
.stc-btn:hover { filter: brightness(1.12); }
.stc-btn--ghost { background: transparent; color: var(--stc-accent); }
.stc-btn--ghost:hover { background: var(--stc-paper); filter: none; }
.stc-btn:focus-visible, .stc-link:focus-visible, .stc-close:focus-visible, .stc-float:focus-visible, .stc-switch input:focus-visible + .stc-switch__ui { outline: 3px solid var(--brick-2, #b5503d); outline-offset: 2px; }
.stc-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* Baner – pasek na dole */
.stc-banner { position: fixed; z-index: 99998; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--stc-line); box-shadow: 0 -10px 40px rgba(0, 0, 0, .14); animation: stc-up .35s ease-out; }
.stc-banner__in { width: min(100% - 32px, 1200px); margin: 0 auto; padding: 20px 0; display: flex; align-items: center; gap: 20px 32px; }
.stc-banner__text { flex: 1; }
.stc-banner__text p { margin: 0; font-size: 15px; color: var(--stc-muted); max-width: 72ch; }
.stc-banner__text a { color: var(--stc-accent); }
.stc-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
@media (max-width: 900px) {
	.stc-banner__in { flex-direction: column; align-items: stretch; padding: 16px 0 18px; }
	.stc-actions { display: grid; grid-template-columns: 1fr 1fr; }
	.stc-actions [data-stc="settings"] { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 420px) { .stc-actions { grid-template-columns: 1fr; } .stc-banner__text p { font-size: 14px; } }

/* Baner – okno na środku (opcja) */
.stc-banner--modal { top: 0; display: grid; place-items: center; padding: 16px; background: rgba(15, 20, 30, .5); border: 0; box-shadow: none; }
.stc-banner--modal .stc-banner__in { width: min(100%, 560px); flex-direction: column; align-items: stretch; padding: 26px; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.stc-banner--modal .stc-actions { display: grid; grid-template-columns: 1fr 1fr; }
.stc-banner--modal .stc-actions [data-stc="settings"] { grid-column: 1 / -1; order: 3; }
html.stc-open { overflow: hidden; }

/* Panel ustawień */
.stc-panel { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 16px; background: rgba(15, 20, 30, .55); }
.stc-panel__box { width: min(100%, 640px); max-height: min(92vh, 860px); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); outline: none; animation: stc-in .25s ease-out; }
.stc-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 12px; border-bottom: 1px solid var(--stc-line); }
.stc-panel__head .stc-title { margin: 0; }
.stc-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--stc-paper); color: var(--stc-ink); font-size: 26px; line-height: 1; cursor: pointer; }
.stc-panel__body { padding: 16px 24px; overflow-y: auto; }
.stc-panel__body > p { margin: 0 0 14px; font-size: 15px; color: var(--stc-muted); }
.stc-panel__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 24px 20px; border-top: 1px solid var(--stc-line); }
@media (max-width: 560px) { .stc-panel { padding: 0; align-items: end; } .stc-panel__box { max-height: 94vh; border-radius: 16px 16px 0 0; } .stc-panel__foot { display: grid; grid-template-columns: 1fr; } .stc-panel__foot .stc-btn { width: 100%; } }
.stc-cat { padding: 14px 0; border-top: 1px solid var(--stc-line); }
.stc-cat__head { display: flex; align-items: center; }
.stc-switch { display: flex; align-items: center; gap: 12px; flex: 1; min-height: 44px; cursor: pointer; }
.stc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stc-switch__ui { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: #c5cbc8; transition: background .2s; }
.stc-switch__ui::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 .2s; }
.stc-switch input:checked + .stc-switch__ui { background: var(--stc-accent); }
.stc-switch input:checked + .stc-switch__ui::after { transform: translateX(20px); }
.stc-switch input:disabled + .stc-switch__ui { opacity: .55; }
.stc-switch input:disabled ~ * { cursor: default; }
.stc-cat__label { font-weight: 600; font-size: 16px; }
.stc-cat__always { margin-left: auto; font-size: 13px; color: var(--stc-muted); }
.stc-cat__desc { margin: 4px 0 6px 58px; font-size: 14px; color: var(--stc-muted); }
.stc-cat__list { margin-left: 58px; font-size: 14px; }
.stc-cat__list summary { cursor: pointer; color: var(--stc-accent); font-weight: 600; padding: 4px 0; }
.stc-cat__list ul { margin: 6px 0 0; padding-left: 18px; }
.stc-cat__list li { margin-bottom: 4px; }
.stc-cat__list span { color: var(--stc-muted); }
.stc-cat__list p { margin: 6px 0 0; color: var(--stc-muted); }
.stc-id { margin: 12px 0 0; font-size: 12.5px; color: var(--stc-muted); overflow-wrap: anywhere; }
@media (max-width: 480px) { .stc-cat__desc, .stc-cat__list { margin-left: 0; } }

/* Przycisk ponownego otwarcia ustawień */
.stc-float { position: fixed; z-index: 99990; left: 16px; bottom: 16px; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid var(--stc-line); border-radius: 50%; background: #fff; color: var(--stc-accent); box-shadow: 0 6px 20px rgba(0, 0, 0, .15); cursor: pointer; }
.stc-float svg { width: 26px; height: 26px; }
.stc-float:hover { background: var(--stc-paper); }
@media print { .stc-banner, .stc-panel, .stc-float { display: none !important; } }

/* Zablokowane osadzenia */
iframe[data-cookieconsent][data-src] { display: none; }
.stc-placeholder { display: grid; align-content: center; gap: 4px; min-height: 220px; margin: 1em 0; padding: 24px; border: 1px dashed var(--line, #c9cfcc); border-radius: 12px; background: var(--paper, #f3f4f1); font: 400 15px/1.5 var(--sans, system-ui, sans-serif); text-align: center; }
.stc-placeholder p { margin: 0 0 8px; }

/* Deklaracja cookies */
.stc-declaration .stc-state { padding: 18px 20px; margin-bottom: 24px; border-radius: 12px; background: var(--paper, #f3f4f1); }
.stc-declaration .stc-state p { margin: 0 0 8px; }
.stc-state__meta { font-size: .9em; color: var(--muted, #56625e); overflow-wrap: anywhere; }
.stc-state__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px !important; }
.stc-table-wrap { overflow-x: auto; }
.stc-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.stc-table th, .stc-table td { padding: 9px 10px; border-bottom: 1px solid var(--line, #dde1dd); text-align: left; vertical-align: top; }
.stc-table th { background: var(--paper, #f3f4f1); }
.stc-empty { color: var(--muted, #56625e); font-style: italic; }
@media (max-width: 600px) {
	.stc-table thead { display: none; }
	.stc-table tr { display: grid; padding: 8px 0; border-bottom: 1px solid var(--line, #dde1dd); }
	.stc-table td { border: 0; padding: 2px 0; }
	.stc-table td::before { content: attr(data-l) ": "; font-weight: 600; }
}

@keyframes stc-up { from { transform: translateY(100%); } }
@keyframes stc-in { from { transform: translateY(12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stc-banner, .stc-panel__box { animation: none; } }
