/* EPO 1.11.0: konfigurator krokowy (szablon „steps”). Etap 0: szkielet. Widoczny tylko gdy przełącznik w „Wygląd sklepu” pozwala:
   data-scope="m" – tylko telefon (≤689 px), data-scope="all" – wszędzie. Klasyczne pola pod spodem zostają bez zmian. */
.wc-epo-steps { display: none; margin: 4px 0 18px; }
.wc-epo-steps[data-scope="all"] { display: block; }
@media (max-width: 689px) { .wc-epo-steps[data-scope="m"] { display: block; } }

.wc-epo-steps__note { font-size: 12px; line-height: 1.4; padding: 8px 10px; border-radius: 8px; background: #fff7e6; color: #8a5a00; margin: 0 0 10px; }
.wc-epo-steps__head { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 12px; font-size: 22px; line-height: 1.2; color: var(--dw-accent, #a32f7b); }
.wc-epo-steps__sec { margin: 0 0 10px; }
.wc-epo-steps__title { margin: 0 0 6px; padding: 6px 10px; font-size: 17px; font-weight: 700; background: #f4f5f7; border-radius: 6px; }
.wc-epo-steps__extras > summary { cursor: pointer; list-style: none; }
.wc-epo-steps__extras > summary::-webkit-details-marker { display: none; }
.wc-epo-steps__extras > summary::after { content: "▾"; float: right; }
.wc-epo-steps__extras[open] > summary::after { content: "▴"; }
.wc-epo-steps__body { min-height: 40px; padding: 6px 2px; }
.wc-epo-steps__wip { display: inline-block; font-size: 12px; color: #888; border: 1px dashed #ccc; border-radius: 6px; padding: 6px 10px; }
.wc-epo-steps__summary { background: #f7f7f9; border-radius: 12px; padding: 8px; }

/* ---------- etap 1: kafelki kolorów ---------- */
.wc-epo-steps-moved { display: none !important; }
.wc-epo-steps__tiles { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.wc-epo-steps__tile {
	flex: 0 0 auto; width: 82px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 4px;
	padding: 6px 4px 6px; margin: 0; background: #fff !important; color: #212121 !important; border: 2px solid transparent !important;
	border-radius: 12px !important; box-shadow: 0 2px 8px rgba(0,0,0,.10); cursor: pointer; min-height: 0 !important; height: auto !important;
}
.wc-epo-steps__tile::before, .wc-epo-steps__tile::after { display: none !important; }
.wc-epo-steps__img { display: block; width: 66px; height: 66px; border-radius: 8px; overflow: hidden; background: #f4f5f7; }
.wc-epo-steps__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wc-epo-steps__noimg { display: block; width: 100%; height: 100%; }
.wc-epo-steps__lbl { font-size: 12px; line-height: 1.2; font-weight: 600; text-align: center; white-space: normal; word-break: break-word; }
.wc-epo-steps__tile.is-active { border-color: var(--dw-accent, #a32f7b) !important; }
.wc-epo-steps__tile.is-disabled { opacity: .45; cursor: not-allowed; }
/* globalna reguła sklepu (.woocommerce button { border-radius: 999px !important }) robi z kafelków pigułki – mocniejszy selektor */
html body .wc-epo-steps button.wc-epo-steps__tile.wc-epo-steps__tile { border-radius: 12px !important; padding: 6px 4px !important; width: 78px; line-height: 1.2; font-weight: 600; letter-spacing: 0; }
/* 1.11.3 (właściciel): kafelek kończy się zaraz pod napisem, a zdjęcie przy samej górze */
.wc-epo-steps__tiles { align-items: flex-start; }
html body .wc-epo-steps button.wc-epo-steps__tile.wc-epo-steps__tile { padding: 3px 3px 4px !important; gap: 2px; }
.wc-epo-steps__img { width: 70px; height: 70px; }
.wc-epo-steps__lbl { line-height: 1.15; margin: 0; padding: 0; }
/* 1.11.4 (właściciel, wg projektu): biały kafelek = samo zdjęcie, nazwa koloru POD kafelkiem */
html body .wc-epo-steps button.wc-epo-steps__tile.wc-epo-steps__tile {
	width: 76px; padding: 0 !important; gap: 5px; background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
}
.wc-epo-steps__tile .wc-epo-steps__img {
	width: 72px; height: 72px; padding: 3px; box-sizing: border-box; background: #fff; border-radius: 12px; border: 2px solid transparent;
	box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.wc-epo-steps__tile.is-active .wc-epo-steps__img { border-color: var(--dw-accent, #a32f7b); }
.wc-epo-steps__tile .wc-epo-steps__lbl { font-size: 12px; color: #212121; }
.wc-epo-steps__tile.is-active .wc-epo-steps__lbl { color: var(--dw-accent, #a32f7b); }

/* ---------- etap 2: karty zestawu ---------- */
.wc-epo-steps__sets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wc-epo-steps__sets[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body .wc-epo-steps button.wc-epo-steps__set.wc-epo-steps__set {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
	min-height: 0 !important; height: auto !important; margin: 0; padding: 10px 6px 10px !important;
	background: #fff !important; color: #212121 !important; border: 2px solid #e6e6e6 !important; border-radius: 12px !important;
	box-shadow: 0 2px 8px rgba(0,0,0,.06); text-align: center; letter-spacing: 0; font-weight: 400; line-height: 1.2;
}
.wc-epo-steps__set::before, .wc-epo-steps__set::after { display: none !important; }
.wc-epo-steps__set-n { font-size: 26px; font-weight: 800; line-height: 1; }
.wc-epo-steps__set-items { white-space: pre-line; font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.wc-epo-steps__set-gift { font-size: 11.5px; line-height: 1.25; margin-top: 2px; }
.wc-epo-steps__set-gift b { color: #e0218a; }
html body .wc-epo-steps button.wc-epo-steps__set.is-active { border-color: #35b7e8 !important; box-shadow: 0 2px 10px rgba(53,183,232,.25); }
.wc-epo-steps__check { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; display: none; }
.wc-epo-steps__set.is-active .wc-epo-steps__check { display: block; }
.wc-epo-steps__check::after { content: ""; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px; border: solid #35b7e8; border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* ---------- 1.12.0: kolor akcentu sklepu (definiowalny w „Wygląd sklepu”) zamiast niebieskiego ---------- */
html body .wc-epo-steps button.wc-epo-steps__set.is-active { border-color: var(--dw-accent, #a32f7b) !important; box-shadow: 0 2px 10px color-mix(in srgb, var(--dw-accent, #a32f7b) 25%, transparent); }
.wc-epo-steps__check::after { border-color: var(--dw-accent, #a32f7b); }
.wc-epo-steps__set-gift b { color: var(--dw-accent, #a32f7b); }

/* ---------- etap 3: fotelik w konfiguratorze ---------- */
/* widoczność wg zestawu: 2w1 – bez fotelika; 3w1 – bez bazy; brak wyboru – bez fotelika */
.wc-epo-steps[data-set="2"] [data-sec="seat"],
.wc-epo-steps[data-set=""] [data-sec="seat"],
.wc-epo-steps:not([data-set]) [data-sec="seat"] { display: none; }
.wc-epo-steps[data-set="3"] .wc-epo-steps-pick .wc-epo-seat-baseslot { display: none; }

.wc-epo-steps-pick { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.wc-epo-steps-pick > .wc-epo-field-label { display: none !important; }
.wc-epo-steps-pick .wc-epo-seat-card.is-none { display: none !important; } /* zastępuje go karta 2w1 */

/* karty modeli – karuzela białych kart */
.wc-epo-steps-pick .wc-epo-seat-cards { gap: 10px; padding: 4px 2px 10px; }
html body .wc-epo-steps-pick button.wc-epo-seat-card.wc-epo-seat-card {
	flex: 0 0 150px; background: #fff !important; border: 2px solid #ececec !important; border-radius: 12px !important;
	box-shadow: 0 2px 8px rgba(0,0,0,.07); position: relative;
}
html body .wc-epo-steps-pick button.wc-epo-seat-card.is-active { border-color: var(--dw-accent, #a32f7b) !important; box-shadow: 0 2px 10px color-mix(in srgb, var(--dw-accent, #a32f7b) 25%, transparent); }
html body .wc-epo-steps-pick button.wc-epo-seat-card.is-active::after {
	display: block !important; content: ""; position: absolute; right: 10px; bottom: 10px; width: 7px; height: 13px;
	border: solid var(--dw-accent, #a32f7b); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.wc-epo-steps-pick .wc-epo-seat-card__name { font-weight: 700; text-align: center; }

/* podpisy sekcji „Wybierz kolor fotelika” / „Wybierz bazę” jak tytuły kroków */
.wc-epo-steps-pick .wc-epo-seat-sub[data-steps-t],
.wc-epo-steps-pick .wc-epo-base-title[data-steps-t] { font-size: 0 !important; margin: 14px 0 8px !important; padding: 0 !important; }
.wc-epo-steps-pick .wc-epo-seat-sub[data-steps-t]::before,
.wc-epo-steps-pick .wc-epo-base-title[data-steps-t]::before {
	content: attr(data-steps-t); display: block; font-size: 17px; font-weight: 700; line-height: 1.3; padding: 6px 10px; background: #f4f5f7; border-radius: 6px; color: #212121;
}
.wc-epo-steps-pick .wc-epo-seat-sub small { display: none; }
.wc-epo-steps-pick .wc-epo-seatbase > .wc-epo-field-label { display: none !important; }
.wc-epo-steps-pick .wc-epo-seatbase { margin: 0 !important; padding: 0 !important; border: 0 !important; }

/* kolory fotelika – te same kafelki co kolory wózka, nazwa pod kafelkiem */
.wc-epo-steps-pick .wc-epo-seat-colors .wc-epo-swatches { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; align-items: flex-start; }
html body .wc-epo-steps-pick .wc-epo-seat-colors button.wc-epo-swatch.wc-epo-swatch {
	flex: 0 0 auto; width: 78px; height: auto !important; min-height: 0 !important; display: flex; flex-direction: column; align-items: center; gap: 5px;
	padding: 0 !important; margin: 0; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
.wc-epo-steps-pick .wc-epo-seat-colors .wc-epo-swatch img {
	width: 72px !important; height: 72px !important; padding: 3px; box-sizing: border-box; object-fit: contain; background: #fff;
	border-radius: 12px; border: 2px solid transparent; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.wc-epo-steps-pick .wc-epo-seat-colors .wc-epo-swatch.is-active img { border-color: var(--dw-accent, #a32f7b); }
.wc-epo-steps-pick .wc-epo-seat-colors .wc-epo-swatch .wc-epo-steps__lbl { font-size: 12px; font-weight: 600; line-height: 1.15; color: #212121; text-align: center; }
.wc-epo-steps-pick .wc-epo-seat-colors .wc-epo-swatch.is-active .wc-epo-steps__lbl { color: var(--dw-accent, #a32f7b); }
.wc-epo-steps-pick .wc-epo-seat-colors .wc-epo-swatch.is-disabled { opacity: .45; }
.wc-epo-steps-pick .wc-epo-seat-colorname { font-size: 12.5px; margin-top: 2px; color: #555; }

/* baza – karty w dwóch kolumnach */
.wc-epo-steps-pick .wc-epo-base-ui { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wc-epo-steps-pick .wc-epo-base-toggle {
	display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 10px; background: #fff; border: 2px solid #ececec; border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,.07); font-size: 13px; line-height: 1.3; cursor: pointer;
}
.wc-epo-steps-pick .wc-epo-base-toggle:has(input:checked) { border-color: var(--dw-accent, #a32f7b); }
.wc-epo-steps-pick .wc-epo-base-toggle input { accent-color: var(--dw-accent, #a32f7b); margin-top: 2px; }
.wc-epo-steps-pick .wc-epo-base-hint { font-size: 13px; }
/* nazwa fotelika zawijana zamiast ucinana */
.wc-epo-steps-pick .wc-epo-seat-card__name { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; display: block; }

/* 1.12.2: bazy jako karty ze zdjęciem – jak karty fotelików */
.wc-epo-steps-pick .wc-epo-base-ui { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wc-epo-steps-pick .wc-epo-base-toggle { position: relative; flex-direction: column; align-items: center; text-align: center; padding: 8px; gap: 6px; }
.wc-epo-steps-pick .wc-epo-base-toggle .wc-epo-base-img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #f6f6f7; border-radius: 8px; }
.wc-epo-steps-pick .wc-epo-base-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.wc-epo-steps-pick .wc-epo-base-toggle .t { font-size: 13px; line-height: 1.3; }
.wc-epo-steps-pick .wc-epo-base-toggle .t b { display: block; margin-top: 2px; }
.wc-epo-steps-pick .wc-epo-base-toggle:has(input:checked)::after {
	content: ""; position: absolute; right: 12px; bottom: 12px; width: 7px; height: 13px;
	border: solid var(--dw-accent, #a32f7b); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
/* 1.12.4: karty baz tej samej wielkości co karty fotelików (karuzela 150 px) */
.wc-epo-steps-pick .wc-epo-base-ui { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; }
.wc-epo-steps-pick .wc-epo-base-toggle { flex: 0 0 150px; box-sizing: border-box; }
.wc-epo-steps-pick .wc-epo-base-toggle .wc-epo-base-img { aspect-ratio: auto; height: 120px; }
.wc-epo-steps-pick .wc-epo-base-toggle .t { font-weight: 700; }
/* ptaszek bazy w prawym górnym rogu (nie na tekście dostępności) */
.wc-epo-steps-pick .wc-epo-base-toggle:has(input:checked)::after { top: 12px; bottom: auto; right: 14px; }
.wc-epo-steps-pick .wc-epo-base-toggle .wc-epo-base-img { height: 110px; }

/* ---------- etap 4: dodatki + adapter ---------- */
.wc-epo-steps-pick .wc-epo-seat-gift { display: none !important; }            /* GRATIS opisany na kafelku 3w1/4w1 */
.wc-epo-steps:not([data-set="2"]) .wc-epo-steps__extras .wc-epo-steps-adapter { display: none !important; } /* adapter tylko przy 2w1 */
.wc-epo-steps:not([data-set="2"]) .wc-epo-steps__extras[data-only-adapter] { display: none; }               /* same adaptery – sekcja tylko przy 2w1 */
.wc-epo-steps__extras .wc-epo-steps__body { padding: 6px 4px 2px; }
.wc-epo-steps__extras .wc-epo-field { margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; }

/* ---------- etap 6: podsumowanie + przycisk ---------- */
.wc-epo-steps__summary { background: #f4f5f7; border-radius: 14px; padding: 14px 14px 12px; margin-top: 14px; }
.wc-epo-steps__total { font-size: 22px; font-weight: 800; line-height: 1.2; margin: 0 0 8px; }
.wc-epo-steps__picked-t { font-size: 16px; font-weight: 700; margin: 4px 0 2px; }
.wc-epo-steps__picked { list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; line-height: 1.45; }
.wc-epo-steps__picked li { margin: 0; padding: 0; }
.wc-epo-steps__picked li::before, .wc-epo-steps__picked li::marker { content: none; }
.wc-epo-steps__sum { text-align: center; font-size: 20px; font-weight: 800; margin-top: 6px; }

/* gdy konfigurator widoczny: bez starej linii ceny, pływających kółek i pola ilości; pełny napis na przycisku */
body.wc-epo-steps-on .wc-epo-fields > .wc-epo-total,
body.wc-epo-steps-on .wc-epo-rail,
body.wc-epo-steps-on .wc-epo-picked { display: none !important; }
body.wc-epo-steps-on form.cart .quantity { display: none !important; }
html body.wc-epo-steps-on form.cart button.single_add_to_cart_button.single_add_to_cart_button.button.button {
	width: 100% !important; flex: 1 1 100% !important; font-size: 17px !important; height: 54px !important; min-height: 54px !important;
	gap: 10px; letter-spacing: .01em;
}
html body.wc-epo-steps-on form.cart button.single_add_to_cart_button.single_add_to_cart_button.button.button::after { content: none !important; display: none !important; }

/* ---------- 1.13.1: góra pod zdjęciem wg projektu (tylko gdy konfigurator widoczny) ---------- */
body.wc-epo-steps-on .entry-summary h1.product_title { text-align: center; margin-bottom: 10px; }
body.wc-epo-steps-on .entry-summary > .price,
body.wc-epo-steps-on .entry-summary > .dw-delivery-time-badge,
body.wc-epo-steps-on .entry-summary > .ct-product-divider,
body.wc-epo-steps-on .entry-summary .ct-product-add-to-cart > .stock,
body.wc-epo-steps-on .entry-summary form.cart > .stock,
body.wc-epo-steps-on .entry-summary p.stock { display: none !important; }
body.wc-epo-steps-on .entry-summary .ct-product-add-to-cart { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
.wc-epo-steps__info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 10px; }
.wc-epo-steps__info[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wc-epo-steps__info[data-cols="1"] { grid-template-columns: minmax(0, 1fr); }
.wc-epo-steps__info-c { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 0 6px; }
.wc-epo-steps__info-c + .wc-epo-steps__info-c { border-left: 1px solid #d9d9de; }
.wc-epo-steps__info-c span { font-size: 13px; font-weight: 600; line-height: 1.2; }
.wc-epo-steps__info-c b { font-size: 17px; font-weight: 800; line-height: 1.2; }
.wc-epo-steps__info-c small { font-size: 12px; line-height: 1.25; }
.wc-epo-steps__omni { text-align: center; font-size: 12px; margin: -4px 0 8px; }
.wc-epo-steps__omni:empty { display: none; }

/* 1.13.4: niedostępne zestawy (brak fotelików / brak bazy do fotelika) ukryte; pozostałe karty dzielą szerokość */
.wc-epo-steps__sets { display: flex !important; }
.wc-epo-steps__sets > .wc-epo-steps__set { flex: 1 1 0; min-width: 0; }
html body .wc-epo-steps button.wc-epo-steps__set.is-hidden { display: none !important; }

/* 1.13.6 (właściciel): minimalne przerwy między sekcjami – jak na wizualizacji */
.wc-epo-steps__head { margin: 2px 0 6px; }
.wc-epo-steps__sec { margin: 0 0 4px; }
.wc-epo-steps__title { margin: 0 0 4px; padding: 3px 10px; font-size: 16px; line-height: 1.3; }
.wc-epo-steps__body { min-height: 0; padding: 0 2px; }
.wc-epo-steps__tiles { padding: 2px 2px 4px; }
.wc-epo-steps-pick .wc-epo-seat-cards { padding: 2px 2px 4px; }
.wc-epo-steps-pick .wc-epo-seat-sub[data-steps-t],
.wc-epo-steps-pick .wc-epo-base-title[data-steps-t] { margin: 4px 0 4px !important; }
.wc-epo-steps-pick .wc-epo-seat-sub[data-steps-t]::before,
.wc-epo-steps-pick .wc-epo-base-title[data-steps-t]::before { padding: 3px 10px; font-size: 16px; }
.wc-epo-steps-pick .wc-epo-seat-colors .wc-epo-swatches { padding: 2px 2px 2px; }
.wc-epo-steps-pick .wc-epo-seat-colorname { margin: 0 0 2px; }
.wc-epo-steps-pick .wc-epo-base-ui { padding: 2px 2px 4px; }
.wc-epo-steps-pick .wc-epo-seat-baseslot, .wc-epo-steps-pick .wc-epo-seatbase { margin: 0 !important; }
.wc-epo-steps__summary { margin-top: 8px; padding: 10px 12px; }

/* 1.13.7 (właściciel: „przytnij”): karty fotelików kończą się zaraz pod ceną/plakietką (bez wyrównywania do najwyższej) */
.wc-epo-steps-pick .wc-epo-seat-cards { align-items: flex-start !important; }
html body .wc-epo-steps-pick button.wc-epo-seat-card.wc-epo-seat-card { min-height: 0 !important; height: auto !important; align-self: flex-start; justify-content: flex-start; }
html body .wc-epo-steps-pick button.wc-epo-seat-card.is-active::after { right: auto; left: 12px; top: 10px; bottom: auto; z-index: 2; }

/* 1.13.8 (właściciel): mniejsza przerwa między miniaturkami galerii a tytułem (było 45 px) */
body.wc-epo-steps-on.single-product .woocommerce-product-gallery { margin-bottom: 10px !important; }

/* 1.14.1 (właściciel): bez dopisków „w zestawie −10%” i „chwilowo niedostępny” na kartach fotelików (niedostępny dalej wyszarzony) */
.wc-epo-steps-pick .wc-epo-seat-card__badge, .wc-epo-steps-pick .wc-epo-seat-card__off { display: none !important; }

/* 1.14.2 (właściciel): zdjęcia fotelików na kartach większe o 75% (68 → 119 px) */
html body .wc-epo-steps-pick .wc-epo-seat-card .wc-epo-seat-card__img { height: 119px !important; aspect-ratio: auto !important; }
