/* Zgody na cookies (consent.php / consent.js) – tokeny motywu, działa w trybie jasnym i ciemnym */
.kc-banner, .kc-modal { --kc-bg: var(--wp--preset--color--ground-800); --kc-ink: var(--wp--preset--color--ink-100); --kc-mut: var(--wp--preset--color--ink-300); --kc-line: var(--wp--preset--color--line-300); --kc-acc: var(--wp--preset--color--patina); font: 14px/1.55 var(--wp--preset--font-family--sans); color: var(--kc-ink); }
.kc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100010; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.kc-in { display: flex; align-items: center; gap: 24px; max-width: 1180px; margin: 0 auto; padding: 18px 20px; border: 1px solid var(--kc-line); border-top: 2px solid var(--kc-acc); background: var(--kc-bg); box-shadow: 0 -8px 34px rgba(0,0,0,.28); pointer-events: auto; animation: kc-up .3s ease; }
@keyframes kc-up { from { transform: translateY(16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .kc-in { animation: none; } }
.kc-txt { flex: 1; min-width: 0; }
.kc-txt p { margin: 0; color: var(--kc-mut); }
.kc-t { margin: 0 0 4px !important; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--ink-500) !important; }
.kc-banner a, .kc-modal a { color: var(--kc-acc); text-decoration: underline; text-underline-offset: 2px; }

/* trzy równorzędne przyciski – ten sam wygląd i rozmiar */
.kc-btns { display: flex; gap: 8px; flex: none; }
.kc-b { min-height: 42px; min-width: 128px; padding: 0 16px; border: 1px solid var(--kc-ink); border-radius: 0; background: transparent; color: var(--kc-ink); font: 500 13px/1.2 var(--wp--preset--font-family--sans); letter-spacing: .03em; cursor: pointer; transition: background .15s, color .15s; touch-action: manipulation; }
.kc-b:hover { background: var(--kc-ink); color: var(--kc-bg); }
/* „Akceptuję wszystkie” wyróżnione kolorem sklepu; „Odrzuć” tej samej wielkości i dobrze widoczne; „Ustawienia” jako link */
.kc-b--yes { border-color: var(--kc-acc); background: var(--kc-acc); color: var(--wp--preset--color--ground-900); font-weight: 600; }
.kc-b--yes:hover { border-color: var(--kc-ink); background: var(--kc-ink); color: var(--kc-bg); }
.kc-link { align-self: center; min-height: 42px; padding: 0 10px; border: 0; background: none; color: var(--kc-mut); font: 500 13px/1.2 var(--wp--preset--font-family--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; touch-action: manipulation; }
.kc-link:hover { color: var(--kc-ink); } .kc-link:focus-visible { outline: 2px solid var(--kc-acc); outline-offset: 2px; }
.kc-b:focus-visible, .kc-x:focus-visible, .kc-sw input:focus-visible + .kc-sl { outline: 2px solid var(--kc-acc); outline-offset: 2px; }

/* ustawienia */
.kc-modal { position: fixed; inset: 0; z-index: 100011; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.55); }
html.kc-lock { overflow: hidden; }
.kc-box { width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 20px 22px 22px; border: 1px solid var(--kc-line); border-top: 2px solid var(--kc-acc); background: var(--kc-bg); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.kc-head { display: flex; align-items: center; justify-content: space-between; }
.kc-x { width: 34px; height: 34px; border: 0; background: none; color: var(--kc-ink); font-size: 24px; line-height: 1; cursor: pointer; }
.kc-lead { margin: 4px 0 14px; color: var(--kc-mut); }
.kc-cat { padding: 14px 0; border-top: 1px solid var(--kc-line); }
.kc-sw { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.kc-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kc-sl { position: relative; flex: none; width: 40px; height: 22px; margin-top: 1px; border: 1px solid var(--kc-line); border-radius: 11px; background: var(--wp--preset--color--ground-700); transition: background .15s, border-color .15s; }
.kc-sl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--kc-mut); transition: transform .15s, background .15s; }
.kc-sw input:checked + .kc-sl { border-color: var(--kc-acc); background: var(--kc-acc); }
.kc-sw input:checked + .kc-sl::after { transform: translateX(18px); background: var(--wp--preset--color--ground-900); }
.kc-sw input:disabled + .kc-sl { opacity: .6; }
.kc-sw input:disabled ~ .kc-ct { cursor: default; }
.kc-ct { display: flex; flex-direction: column; gap: 2px; }
.kc-ct b { font-weight: 500; color: var(--kc-ink); }
.kc-ct b em { margin-left: 6px; font-style: normal; font-weight: 400; font-size: 12px; color: var(--kc-acc); }
.kc-ct > span { color: var(--kc-mut); }
.kc-ct .kc-tools { font-size: 12.5px; color: var(--wp--preset--color--ink-500); }
.kc-box .kc-btns { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--kc-line); }
.kc-box .kc-b { flex: 1; min-width: 0; }

/* telefon */
@media (max-width: 860px) {
	.kc-in { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
	.kc-banner .kc-btns { display: grid; grid-template-columns: 1fr 1fr; }
	.kc-banner .kc-btns .kc-b--yes { grid-column: 2; grid-row: 1; } .kc-banner .kc-btns [data-kc="no"] { grid-column: 1; grid-row: 1; } .kc-banner .kc-link { grid-column: 1 / -1; grid-row: 2; min-height: 34px; }
	.kc-b { min-width: 0; padding: 0 8px; }
}
@media (max-width: 520px) {
	.kc-txt p { font-size: 13px; }
	.kc-box .kc-btns { display: grid; grid-template-columns: 1fr; }
	.kc-banner .kc-b { font-size: 12.5px; line-height: 1.2; }
	.kc-box { padding: 16px; }
}

/* tabela w polityce prywatności */
.kc-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; line-height: 1.45; }
.kc-table th, .kc-table td { padding: 8px 10px; border-bottom: 1px solid var(--wp--preset--color--line-300); text-align: left; vertical-align: top; }
.kc-table th { font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--ink-500); }
@media (max-width: 700px) {
	.kc-table thead { display: none; }
	.kc-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--wp--preset--color--line-300); }
	.kc-table td { display: block; padding: 2px 0; border: 0; }
	.kc-table td:first-child { font-weight: 500; }
}
