/*
Theme Name: CUDO_wnik
Description: Motyw sklepu z ciastami na zamówienie, według projektu z spec/design-zrodla. Wymaga wtyczek WooCommerce i CUDO_wnik Sklep.
Version: 1.4.0
Requires at least: 6.5
Requires PHP: 7.4
Update URI: https://cudownik.com.pl/aktualizacje/cudownik
Text Domain: cudownik
*/

/* Kroje z własnego serwera (fonty zmienne, opis w fonty/README.md). Ten sam adres co <link rel="preload"> w functions.php. */
@font-face {
	font-family: 'Jost';
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url(fonty/jost.woff2) format('woff2');
}
@font-face {
	font-family: 'Quicksand';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url(fonty/quicksand.woff2) format('woff2');
}

/* Tokeny z projektu (spec/SPEC.md 6.1). Monochromatycznie: bez gradientów i cieni dekoracyjnych. */
:root {
	--ink: #111111;
	--paper: #ffffff;
	--ink-hover: #333333;
	--link-hover: #4a4a4a;
	--text-2: #3d3d3d;
	--text-3: #4d4d4d;
	--muted: #5c5c5c;
	--muted-warm: #66615c;
	--disabled-text: #6b6661;
	--cancel-border: #8a8580;
	--disabled-day: #9b9690;
	--footer-muted: #b5b5b5;
	--border-input: #cfcbc6;
	--border-control: #d9d6d2;
	--divider: #e6e3df;
	--divider-header: #e8e6e3;
	--divider-row: #eeece9;
	--surface-3: #ebe7e2;
	--surface-photo: #f2efeb;
	--surface-hover: #f3f2f0;
	--surface-2: #f5f3f0;
	--naglowki: 'Quicksand', system-ui, sans-serif;
	--tekst: 'Jost', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; min-height: 100vh; display: flex; flex-direction: column;
	background: var(--paper); color: var(--ink);
	font-family: var(--tekst); font-weight: 400; font-size: 16px; line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.tresc { padding-top: 48px; padding-bottom: 96px; flex: 1 0 auto; }
.tresc.waska { max-width: 840px; }
.tresc-potwierdzenie { max-width: 960px; padding-top: 72px; }
.tresc-produkt { padding-top: 32px; }
main#tresc:not(.tresc) { flex: 1 0 auto; }
.skok { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 16px; z-index: 100; }
.skok:focus { left: 16px; top: 16px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.h1 { font-family: var(--naglowki); font-weight: 300; font-size: 46px; line-height: 1.1; margin: 0 0 40px; }
.h2-sekcja { font-family: var(--naglowki); font-weight: 400; font-size: 26px; letter-spacing: .1em; text-transform: uppercase; }
.h2-linia { font-size: 24px; margin-bottom: 28px; padding-top: 28px; border-top: 1px solid var(--ink); }
.sekcja-h { margin: 0 0 20px; padding-top: 24px; border-top: 1px solid var(--ink); font-family: var(--naglowki); font-weight: 400; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; }
/* Nazwa „CUDO_wnik” zawsze w tym zapisie, także w tekstach pisanych wersalikami. */
.nazwa { text-transform: none; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 17px; line-height: 1.7; color: var(--text-2); font-weight: 300; }
.lead p + p { margin-top: 1em; }
.pomoc { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 14px; }
.meta { font-size: 14px; color: var(--muted); }
.uwaga { background: var(--surface-2); border-left: 2px solid var(--ink); padding: 14px 18px; border-radius: 6px; font-size: 15px; margin-bottom: 20px; }
.tresc.waska > p, .tresc.waska > ul { margin-bottom: 1em; }

/* ---------- Przyciski ---------- */

.btn, .woocommerce-Button, .woocommerce-button, .woocommerce-form-login__submit, .woocommerce-form-register__submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 46px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px;
	background: var(--ink); color: #fff; font-family: var(--tekst); font-weight: 500; font-size: 15px;
	letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover, .woocommerce-Button:hover, .woocommerce-button:hover { background: var(--ink-hover); border-color: var(--ink-hover); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-pelny { width: 100%; min-height: 58px; }
.btn-dis, .btn-dis:hover, .btn:disabled, .btn:disabled:hover { background: var(--divider); border-color: var(--divider); color: var(--muted); cursor: not-allowed; }
.btn.loading { opacity: .6; pointer-events: none; }
.added_to_cart { display: none; }

.acc-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 15px; }
.acc-link:hover, .acc-on { background: var(--surface-hover); color: var(--ink); }
.acc-wstecz { color: var(--text-3); }

.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--border-control); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip-on, .chip-on:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-off, .chip-off:hover { color: var(--disabled-day); border-color: var(--surface-2); background: var(--surface-2); text-decoration: line-through; cursor: not-allowed; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-control); border-radius: 999px; }
.stepper-lg { padding: 5px; }
.step { width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.step:hover:not(:disabled) { background: var(--surface-hover); }
.step:disabled { color: var(--disabled-day); cursor: not-allowed; }
.stepper-ile { min-width: 24px; text-align: center; font-size: 15px; }
.stepper-lg .step { font-size: 20px; }
.stepper-lg .stepper-ile { min-width: 36px; font-size: 17px; font-weight: 500; }

.badge { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.b-ready { background: var(--ink); color: #fff; }
.b-new { border: 1px solid var(--ink); color: var(--ink); background: #fff; }
.b-prep { background: var(--surface-2); color: var(--ink); border: 1px solid var(--border-control); }
.b-done { background: var(--surface-3); color: var(--text-2); }
.b-cancel { border: 1px dashed var(--cancel-border); color: var(--text-3); background: #fff; }

/* ---------- Pasek ogłoszeń, nagłówek, stopka ---------- */

.pasek { background: var(--ink); color: #fff; font-size: 14px; letter-spacing: .02em; }
.pasek .wrap { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; padding-top: 10px; padding-bottom: 10px; }
.pasek svg { flex: none; }
.pasek strong { font-weight: 600; }

.naglowek { border-bottom: 1px solid var(--divider-header); }
.naglowek .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; flex-wrap: wrap; }
.naglowek .naglowek-logo { justify-content: center; }
.logo { display: block; flex: 0 1 auto; min-width: 0; }
.logo-obraz { width: 220px; }
.nav { display: flex; gap: 36px; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.naglowek-akcje { display: flex; align-items: center; gap: 6px; }
.koszyk-ile { min-width: 24px; height: 24px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; }

.stopka { background: var(--ink); color: #fff; }
.stopka .wrap { padding-top: 64px; padding-bottom: 36px; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; gap: 32px; }
.foot p { font-size: 15px; line-height: 1.7; font-weight: 300; overflow-wrap: anywhere; }
.foot h2 { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--footer-muted); }
.stopka a { color: #fff; }
.stopka a:hover { color: #d0d0d0; }
.stopka .logo-obraz { filter: brightness(0) invert(1); } /* całe logo na biało */
.stopka-opis { margin-top: 20px; color: var(--footer-muted); max-width: 260px; }
.stopka-dol { border-top: 1px solid var(--ink-hover); margin-top: 48px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--footer-muted); }
.stopka-prosta { border-top: 1px solid var(--divider-header); }
.stopka-prosta .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding-top: 16px; padding-bottom: 16px; }
.stopka-linki { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Komunikaty ---------- */

.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
	margin: 0 0 28px; padding: 16px 20px; border-radius: 6px; background: var(--surface-2); font-size: 15px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
}
.woocommerce-error { border-left: 2px solid var(--ink); display: block; }
.woocommerce-error li + li { margin-top: 6px; }
.woocommerce-message .button, .woocommerce-message .wc-forward { order: 2; font-weight: 500; }
.woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce-notices-wrapper:empty { display: none; }

/* ---------- Lista ciast ---------- */

.hero-sekcja { padding-top: 72px; padding-bottom: 64px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; align-items: end; }
.eyebrow-hero { font-size: 13px; font-weight: 400; letter-spacing: .28em; margin-bottom: 20px; }
.h1-hero { font-size: 60px; line-height: 1.08; letter-spacing: .005em; margin: 0; }
.lead-hero { margin-top: 24px; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--text-3); }
.jak { border-top: 1px solid var(--divider); }
.jak li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--divider); }
.jak li > span { font-family: var(--naglowki); font-weight: 300; font-size: 28px; line-height: 1; }
.jak-t { font-weight: 500; font-size: 16px; }
.jak-o { font-size: 15px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

.lista-sekcja { padding-bottom: 104px; }
.lista-naglowek { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 28px; margin-bottom: 24px; }
.licznik { font-size: 14px; color: var(--muted); }
.siatka { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
.karta-ciasta { display: flex; flex-direction: column; gap: 14px; }
.card-link { display: block; text-decoration: none; color: var(--ink); }
.card-link:hover { color: var(--ink); }
.card-link h3 { margin: 16px 0 4px; font-weight: 500; font-size: 17px; line-height: 1.35; }
.karta-dol { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.cena { font-size: 18px; font-weight: 500; }

.ph {
	position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 4px; background: var(--surface-photo);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	color: var(--muted-warm); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-link:hover .ph img { transform: scale(1.03); }
.tag { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); padding: 6px 10px; font-size: 11px; letter-spacing: .16em; border-radius: 999px; }

/* ---------- Strona ciasta ---------- */

.wstecz { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; text-decoration: none; color: var(--text-3); margin-bottom: 20px; }
.pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
/* Galeria: kadry w poziomym torze (przesuwanie palcem), miniatury pod spodem. */
.galeria { min-width: 0; }
.galeria-tor { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.galeria-tor::-webkit-scrollbar { display: none; }
.galeria-tor:focus-visible { outline-offset: -4px; }
.galeria-kadr { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.galeria-miniatury { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.galeria-miniatury a { display: block; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid transparent; border-radius: 4px; background: var(--surface-photo); }
.galeria-miniatury a:hover, .galeria-miniatury a[aria-current] { border-color: var(--ink); }
.galeria-miniatury img { width: 100%; height: 100%; object-fit: cover; }
.pd-opis { padding-top: 8px; }
.pd-opis .eyebrow { margin-bottom: 14px; font-weight: 400; }
.pd-opis .h1 { line-height: 1.12; margin: 0; }
.pd-cena { margin-top: 16px; font-size: 26px; }
.pd-lead { margin-top: 24px; }
.specs { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--divider); font-size: 15px; }
.specs dt { color: var(--muted); }
.produkt-kup { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.produkt-dodaj { flex: 1 1 260px; }
/* Warianty: pola wyboru cech nad liczbą sztuk; cena wybranego wariantu jest przy tytule i na przycisku. */
.variations, .single_variation_wrap, .wariant-podpowiedz { flex: 1 1 100%; }
.variations { display: grid; gap: 16px; }
.woocommerce-variation { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.woocommerce-variation-price { display: none; }
.wariant-podpowiedz { margin-top: 0; }
.wariant-podpowiedz:empty { display: none; }
.single_variation_wrap:not(:has(p)) { display: none !important; } /* skrypt WooCommerce ustawia display w stylu elementu */
.pd-opis > .uwaga { margin-top: 36px; }
.akordeony { margin-top: 36px; border-top: 1px solid var(--divider); }
.akordeony details { border-bottom: 1px solid var(--divider); }
.akordeony summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-weight: 500; font-size: 16px; }
.akordeony summary::-webkit-details-marker { display: none; }
.akordeony details p { margin: 0 0 20px; font-size: 15px; line-height: 1.7; color: var(--text-2); font-weight: 300; }
.akordeony strong { font-weight: 500; color: var(--ink); }
.ak-minus, details[open] .ak-plus { display: none; }
details[open] .ak-minus { display: inline-flex; }
.podobne { margin-top: 104px; }
.rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.rel h3 { margin: 14px 0 4px; font-size: 16px; }
.rel-cena { font-size: 15px; }

/* ---------- Formularze ---------- */

label { font-size: 14px; color: var(--text-2); }
.form-row { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.form-row label { display: block; }
.required, abbr.required { text-decoration: none; border: 0; color: var(--muted); }
.optional { color: var(--muted); }
.woocommerce-input-wrapper { display: block; }
.inp, input.input-text, textarea.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select {
	min-height: 52px; width: 100%; border: 1px solid var(--border-input); border-radius: 6px; padding: 0 14px;
	font-family: var(--tekst); font-size: 16px; color: var(--ink); background: #fff;
}
.inp:focus, input.input-text:focus, textarea:focus, input:focus, select:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
textarea.input-text, textarea { padding: 14px; min-height: 96px; resize: vertical; }
.woocommerce-invalid input.input-text { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.checkout-inline-error-message, .woocommerce-password-strength, .woocommerce-password-hint { font-size: 13px; color: var(--text-3); margin: 0; }
.show-password-input { display: none; }
.password-input { display: block; }
.chk, .woocommerce-form__label-for-checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; color: var(--ink); }
.chk input, .woocommerce-form__label-for-checkbox input, input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--ink); margin: 2px 0 0; flex: none; }
fieldset { border: 0; border-top: 1px solid var(--divider); padding: 24px 0 0; margin: 32px 0 0; }
legend { font-family: var(--naglowki); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; padding: 0 16px 0 0; }

/* ---------- Koszyk i odbiór ---------- */

.co { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: start; }
.co-lewa { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.sec { padding-top: 28px; border-top: 1px solid var(--ink); }
.sec-h { display: flex; align-items: baseline; gap: 16px; margin: 0 0 24px; font-family: var(--naglowki); font-weight: 400; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; }
.num { font-family: var(--naglowki); font-weight: 300; font-size: 24px; color: var(--muted); }
.sec-wstep { margin: -8px 0 20px; font-size: 15px; color: var(--text-3); }
.sec h3 { margin: 0 0 14px; font-size: 16px; font-weight: 500; }

.termin-lead { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--text-3); max-width: 620px; }
.termin-lead strong { font-weight: 500; color: var(--ink); }
#cw-termin-opis { margin-bottom: 24px; }
.info-box { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--surface-2); border-radius: 6px; font-size: 15px; line-height: 1.55; color: var(--text-3); }
.info-box svg { flex: none; margin-top: 2px; color: var(--ink); }
.info-box-tytul { font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.termin-uklad { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
#cw-kalendarz { flex: 0 1 440px; min-width: 0; }
#cw-kalendarz:empty { display: none; }
#cw-godziny { flex: 1 1 240px; min-width: 0; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; max-width: 440px; margin-bottom: 8px; }
.cal-miesiac { font-size: 17px; font-weight: 500; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 440px; }
.wd { font-size: 12px; letter-spacing: .12em; color: var(--muted); text-align: center; padding: 6px 0; }
.day { height: 48px; border: 1px solid transparent; border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--tekst); font-size: 16px; cursor: pointer; padding: 0; }
.day:hover { border-color: var(--ink); }
.day-on, .day-on:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.day-off, .day-off:hover { color: var(--disabled-day); border-color: transparent; cursor: not-allowed; text-decoration: line-through; }
.hours { display: flex; flex-wrap: wrap; gap: 10px; }
.hours .chip { min-width: 76px; padding: 0 16px; }
#cw-kalendarz .hours { margin-bottom: 28px; }
#cw-kalendarz .hours .chip::first-letter { text-transform: uppercase; }
.godziny-dzien { margin: -8px 0 16px; font-size: 14px; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.slot { min-height: 72px; border: 1px solid var(--border-control); border-radius: 6px; background: #fff; color: var(--ink); font-family: var(--tekst); cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 0 16px; text-align: left; }
.slot:hover { border-color: var(--ink); }
.slot-on, .slot-on:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.slot-off, .slot-off:hover { background: var(--surface-2); border-color: var(--surface-2); color: var(--disabled-text); cursor: not-allowed; }
.slot-off .slot-t { text-decoration: line-through; }
.slot-t { font-size: 20px; font-weight: 500; }
.slot-s { font-size: 13px; opacity: .85; }
.termin-powod { min-height: 1.5em; margin-top: 12px; font-size: 14px; color: var(--text-3); }

.pola { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pola .form-row-wide, .pola #order_comments_field { grid-column: 1 / -1; }
.pola:empty { display: none; }
.pola + .pola, .chk-lista + .pola { margin-top: 16px; }
.chk-lista { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.cw-faktura-pole, .create-account { display: none; }
.cw-faktura-pole .optional { display: none; }

.platnosci { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pay { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 0 20px; border: 1px solid var(--border-control); border-radius: 6px; cursor: pointer; background: #fff; color: var(--ink); }
.pay:hover { border-color: var(--ink); }
.pay:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay input { margin: 0; }
.pay-txt { flex: 1; }
.pay-t { display: block; font-size: 16px; font-weight: 500; }
.pay-s { display: block; font-size: 14px; color: var(--muted); }
.pay-blik { font-weight: 600; font-size: 13px; letter-spacing: .06em; border: 1.5px solid var(--ink); border-radius: 6px; padding: 4px 7px; }

.podsumowanie { border: 1px solid var(--divider); border-radius: 8px; padding: 28px; position: sticky; top: 24px; }
.podsumowanie > h2 { margin: 0 0 20px; font-family: var(--naglowki); font-weight: 400; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; }
.woocommerce-checkout-review-order-table.laduje { opacity: .5; pointer-events: none; }
.pozycje { display: flex; flex-direction: column; gap: 18px; }
.pozycja { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
.thumb { position: relative; overflow: hidden; width: 56px; height: 70px; border-radius: 4px; background: var(--surface-3); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pozycja-gora { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.pozycja-nazwa { font-weight: 500; line-height: 1.35; }
.pozycja-kwota { white-space: nowrap; }
.pozycja-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pozycja .stepper { margin-top: 8px; }
.sum-dl { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--divider); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; font-size: 15px; }
.sum-dl dt { color: var(--muted); }
.sum-dl dd { text-align: right; }
.sum-dl .woocommerce-remove-coupon { font-size: 13px; color: var(--muted); margin-left: 6px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ink); }
.sum-total span:first-child { font-size: 16px; font-weight: 500; }
.sum-kwota { font-size: 28px; font-weight: 500; }
.kod { margin-top: 24px; }
.kod-pole { display: flex; gap: 8px; margin-top: 8px; }
.kod-pole .inp { min-height: 46px; text-transform: uppercase; }
#cw-kod-komunikat > * { margin: 10px 0 0; padding: 10px 14px; font-size: 14px; }
.podsumowanie .chk { margin-top: 20px; }
.podsumowanie .btn-pelny { margin-top: 20px; }
.brakuje { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; min-height: 1.4em; }
.prywatnosc { font-size: 13px; text-align: center; }
.blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }
.pusty-koszyk { padding: 24px 0 80px; }
.pusty-koszyk .lead { margin-bottom: 24px; font-size: 20px; }

/* ---------- Potwierdzenie ---------- */

.srodek { text-align: center; }
.srodek svg { margin: 0 auto; }
.h1-potw { font-size: 44px; line-height: 1.15; margin: 24px 0 0; }
.potw-lead { margin: 14px auto 0; max-width: 520px; line-height: 1.6; color: var(--text-3); }
.potw-lead span { color: var(--ink); font-weight: 400; }
.potw-numer { margin-top: 56px; border: 1px solid var(--ink); border-radius: 8px; padding: 44px 24px 40px; text-align: center; }
.potw-numer .eyebrow { font-size: 13px; letter-spacing: .28em; color: var(--text-3); }
.potw-numer p:last-child { margin-top: 20px; color: var(--text-2); }
.big { font-family: var(--naglowki); font-weight: 300; font-size: 120px; line-height: 1; letter-spacing: .06em; margin-top: 18px; }
.det { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.det > div { padding: 24px 28px; border-left: 1px solid var(--divider); }
.det > div:first-child { border-left: 0; padding-left: 0; }
.det .eyebrow { margin-bottom: 8px; }
.det p { font-size: 17px; line-height: 1.5; }
.potw-ciasta { margin-top: 40px; }
.potw-ciasta .eyebrow { margin-bottom: 16px; }
.potw-ciasta li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--divider-row); }
.potw-ciasta li.razem { border-bottom: 0; padding: 16px 0 0; font-weight: 500; font-size: 18px; }
.potw-akcje { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 48px; }
.potw-akcje .btn { min-height: 52px; padding: 0 26px; }
.potw-stopka { margin-top: 32px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Konto ---------- */

.powitanie { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.woocommerce-account .woocommerce:has(> .side) { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.side { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.side a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-size: 15px; white-space: nowrap; }
.side a:hover { background: var(--surface-hover); color: var(--ink); }
.side .on, .side .on:hover { background: var(--ink); color: #fff; }
.woocommerce-MyAccount-content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.woocommerce-MyAccount-content > .woocommerce-notices-wrapper { margin-bottom: -28px; }
.karty { display: flex; flex-direction: column; gap: 20px; }
.karta { border: 1px solid var(--divider); border-radius: 8px; padding: 28px; }
.karta-gotowe { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.karta-gora { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; }
.karta-numer { font-family: var(--naglowki); font-weight: 300; font-size: 40px; line-height: 1.1; letter-spacing: .04em; }
.karta-baner { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 16px 18px; background: var(--ink); color: #fff; border-radius: 6px; font-size: 15px; line-height: 1.55; }
.karta-baner svg { flex: none; margin-top: 1px; }
.karta-baner strong { font-weight: 600; }
.kroki { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; }
.kroki li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 13px; line-height: 1.35; }
.tor { display: flex; align-items: center; width: 100%; }
.ln { flex: 1; height: 1px; background: var(--border-control); }
.ln-on { background: var(--ink); }
.ln-brak { background: transparent; }
.kropka { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.k-zrobione { background: var(--ink); }
.k-biezacy { border: 1.5px solid var(--ink); background: #fff; }
.k-biezacy span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.k-przed { border: 1px solid var(--border-input); background: #fff; }
.e-przed { color: var(--disabled-text); }
.e-biezacy { font-weight: 600; }
.karta-dane { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--divider); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; font-size: 15px; }
.karta-dane dt { color: var(--muted); }
.karta-dane dd { line-height: 1.5; }
.hrow { display: grid; grid-template-columns: 80px 190px minmax(0, 1fr) 80px 190px; grid-template-areas: "nr date items amt st"; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--divider-row); font-size: 15px; }
.hhead { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 0 0 12px; }
.h-nr { grid-area: nr; font-weight: 500; }
.h-date { grid-area: date; color: var(--text-2); }
.h-items { grid-area: items; color: var(--text-2); line-height: 1.45; }
.h-amt { grid-area: amt; text-align: right; font-weight: 500; }
.h-st { grid-area: st; justify-self: end; }
.woocommerce-MyAccount-content .pomoc { margin-top: 20px; }

/* Logowanie, rejestracja, „Moje dane" — brak w projekcie, zbudowane z tych samych elementów. */
#customer_login { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
#customer_login h2, .woocommerce > h2 { font-family: var(--naglowki); font-weight: 400; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 20px; padding-top: 24px; border-top: 1px solid var(--ink); }
form.woocommerce-form-login, form.woocommerce-form-register, form.woocommerce-ResetPassword, form.lost_reset_password, form.woocommerce-EditAccountForm { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
form.woocommerce-EditAccountForm fieldset { display: flex; flex-direction: column; gap: 20px; margin-top: 12px; }
.woocommerce-form-row em { font-size: 13px; color: var(--muted); font-style: normal; }
.woocommerce-LostPassword { font-size: 14px; margin-top: 16px; }
.woocommerce-form-login__rememberme, .woocommerce-form-register .woocommerce-form__label-for-checkbox { align-items: center; }
.woocommerce-form-login__rememberme input, .woocommerce-form-register .woocommerce-form__label-for-checkbox input { margin: 0; }
.woocommerce-privacy-policy-text { font-size: 13px; color: var(--muted); }
.clear { display: none; }
.u-columns::before, .u-columns::after { display: none; }

/* ---------- Baner cookies ---------- */

.cw-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--ink); border-radius: 8px; padding: 20px 24px; display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; }
.cw-cookies p { flex: 1 1 300px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.cw-cookies strong { font-weight: 500; color: var(--ink); }
.cw-cookies-przyciski { display: flex; gap: 8px; }
.cw-cookies .button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--tekst); font-weight: 500; font-size: 14px; cursor: pointer; }
.cw-cookies .cw-przycisk-drugi { background: #fff; color: var(--ink); }

/* ---------- Breakpointy z projektu: 980, 900, 800, 700 ---------- */

@media (max-width: 980px) {
	.co { grid-template-columns: minmax(0, 1fr); gap: 56px; }
	.podsumowanie { position: static; }
}
@media (max-width: 900px) {
	.siatka { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
	.hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pd { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.rel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	#customer_login { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 800px) {
	.det { grid-template-columns: minmax(0, 1fr); }
	.det > div { border-left: 0; border-top: 1px solid var(--divider); padding: 20px 0; }
	.det > div:first-child { border-top: 0; }
	.big { font-size: 84px; }
}
@media (max-width: 700px) {
	.wrap { padding-left: 16px; padding-right: 16px; }
	.hide-sm { display: none; }
	.naglowek .wrap { flex-wrap: nowrap; gap: 8px; min-height: 72px; }
	.logo-obraz { width: 164px; }
	.koszyk-btn { min-height: 44px; padding: 0 14px; gap: 8px; }
	.acc-link { padding: 0 10px; }
	.h1 { font-size: 34px; }
	.h1-hero { font-size: 40px; }
	.chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
	.chips::-webkit-scrollbar { display: none; }
	.foot { grid-template-columns: minmax(0, 1fr); }
	.specs { grid-template-columns: 110px minmax(0, 1fr); }
	.slots { gap: 8px; }
	.slot { min-height: 56px; padding: 0; align-items: center; text-align: center; }
	.slot-s { display: none; }
	.pola { grid-template-columns: minmax(0, 1fr); }
	.sec-h { font-size: 20px; }
	.side { flex-direction: row; max-width: none; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; }
	.karta { padding: 20px; }
	.hrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nr st" "date date" "items amt"; gap: 6px 12px; }
	.hhead { display: none; }
	.karta-dane { grid-template-columns: 90px minmax(0, 1fr); }
	.kroki li { font-size: 12px; }
}
