/* ============================================================
   Collibre — Checkout (Faza 2 scaffold). Natywny WooCommerce checkout
   opakowany w nasz chrome + ostylowany na markę. Szablon: woocommerce/checkout/form-checkout.php.
   Wskaźnik kroków współdzielony z koszykiem (.tech-steps — patrz koszyk.css).
   ============================================================ */

/* ---------- kroki (paging) ---------- */
.tech-cstep { display: flex; flex-direction: column; gap: 1.25rem; }
.tech-cstep[hidden] { display: none; }
/* tytuł kroku ze strzałką wstecz (mockup: arrow + h1) */
.tech-cstep__head { display: flex; align-items: center; gap: 0.75rem; }
/* Astra nadaje h1 margin/line-height → flex centruje pudełko z marginesem i strzałka „ucieka" w pionie.
   Zerujemy margin i ścieśniamy line-height, by kółko było równo z tekstem (jak mockup). */
.tech-cstep__head .tech-checkout__title { margin: 0 !important; line-height: 1.1; }
.tech-cstep__backarrow {
	flex: 0 0 auto;
	/* Astra styluje gołe <button> (min-width/padding) → wymuszamy okrągły kształt 1:1 z mockupem */
	width: 2.5rem !important; height: 2.5rem !important; min-width: 2.5rem !important;
	padding: 0 !important; cursor: pointer; line-height: 0;
	border-radius: var(--tech-radius-pill);
	border: 1px solid #E5E7EB; background: var(--tech-white);
	color: var(--tech-ink); display: flex; align-items: center; justify-content: center;
	transition: background 0.15s ease;
}
/* Astra narzuca własny hover/focus na gołe <button> → twardy reset, zostaje tylko nasz */
.tech-cstep__backarrow:hover,
.tech-cstep__backarrow:focus,
.tech-cstep__backarrow:active {
	background: var(--tech-mist) !important;
	color: var(--tech-ink) !important;
	border-color: #E5E7EB !important;
	box-shadow: none !important;
	outline: none;
	transform: none !important;
}
.tech-cstep__backarrow .tech-icon { width: 1.25rem !important; height: 1.25rem !important; display: block; margin: 0; }

/* CTA w karcie podsumowania (Przejdź do… / Zamów i zapłać) */
.tech-sum__cta {
	margin-top: 1.25rem; width: 100%; height: 3.5rem; border: 0; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	border-radius: var(--tech-radius-pill);
	background: var(--tech-ink); color: var(--tech-white);
	font-weight: var(--tech-fw-semibold); font-size: var(--tech-fs-base);
	transition: background 0.15s ease;
}
.tech-sum__cta:hover { background: var(--tech-ink-hover); }
.tech-sum__err { margin: 0.75rem 0 0; text-align: center; color: #b42318; font-weight: var(--tech-fw-semibold); font-size: var(--tech-fs-sm); }
.tech-sum__note {
	margin: 0.75rem 0 0;
	display: flex; align-items: center; justify-content: center; gap: 0.5rem;
	font-size: var(--tech-fs-xs); color: var(--tech-slate);
}
.tech-sum__note .tech-icon { width: 0.95rem; height: 0.95rem; }

/* wskaźnik kroków: kursor na osiągniętych */
.tech-steps__item--done { cursor: pointer; }

/* ---------- krok 2: logowanie (układ 1:1 z mockupu Logowanie.html) ----------
   Pełna szerokość bez prawego podsumowania (jak osobna strona Logowanie). */
.tech-checkout.is-login .tech-checkout__aside { display: none; }
.tech-checkout.is-login .tech-checkout__grid { grid-template-columns: 1fr; }
/* Krok 2 (logowanie) stoi POZA <form name="checkout"> — patrz form-checkout.php. Gdy jest aktywny,
   chowamy cały formularz zamówienia, żeby nie zostawiał pustego bloku pod panelem logowania.
   `display:none` nie wpływa na wysyłkę pól (formularz i tak submitowany jest dopiero w kroku 5). */
.tech-checkout.is-login .tech-checkout__form { display: none; }

.tech-login__intro { margin-top: 0.75rem; font-size: var(--tech-fs-lg); color: var(--tech-slate); max-width: 42rem; }
.tech-login { margin-top: 2.25rem; display: grid; gap: 1.5rem; align-items: start; }
.tech-login__side { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.tech-login__title { font-size: var(--tech-fs-xl); font-weight: var(--tech-fw-bold); letter-spacing: var(--tech-tracking-tight); }
.tech-login__lead { margin-top: 0.375rem; font-size: var(--tech-fs-sm); color: var(--tech-slate); }
.tech-login__benefits { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.tech-login__benefits li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--tech-ink); }
.tech-login__check { width: 1.1rem; height: 1.1rem; color: var(--tech-mint); flex: 0 0 auto; margin-top: 0.15rem; }
.tech-login__btn {
	margin-top: 1.5rem; width: 100%; height: 3.5rem; border: 0; cursor: pointer;
	border-radius: var(--tech-radius-pill);
	background: var(--tech-ink); color: var(--tech-white); font-weight: var(--tech-fw-semibold);
	transition: background 0.15s ease;
}
.tech-login__btn:hover { background: var(--tech-ink-hover); }
.tech-login__btn--outline { background: var(--tech-white); color: var(--tech-ink); border: 1px solid var(--tech-ink); }
.tech-login__btn--outline:hover { background: var(--tech-ink); color: var(--tech-white); }
.tech-login__guest { background: var(--tech-mist); }
.tech-login__guesthead { display: flex; align-items: center; gap: 0.75rem; }
.tech-login__guesticon { width: 2.5rem; height: 2.5rem; border-radius: var(--tech-radius-pill); background: var(--tech-white); border: 1px solid #E5E7EB; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tech-login__guesticon .tech-icon { width: 1.25rem; height: 1.25rem; color: var(--tech-ink); }

/* własny formularz logowania (natywne name'y WC: username/password/login + nonce) */
.tech-loginform { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.tech-loginform__row { display: flex; flex-direction: column; }
.tech-loginform__row label { font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink); margin-bottom: 0.375rem; }
.tech-loginform__input { width: 100%; border-radius: 0.75rem !important; border: 1px solid #E5E7EB; padding: 0.75rem 1rem; font-size: var(--tech-fs-base); transition: border-color 0.15s ease; }
.tech-loginform__input:focus { outline: none; border-color: var(--tech-ink); }
.tech-loginform__pass { position: relative; }
.tech-loginform__pass .tech-loginform__input { padding-right: 3rem; }
.tech-loginform__eye { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--tech-slate); line-height: 0; padding: 0; }
.tech-loginform__eye:hover { color: var(--tech-ink); }
.tech-loginform__eye .tech-eye { width: 1.25rem; height: 1.25rem; }
.tech-loginform__eye .tech-eye--off { display: none; }
.tech-loginform__pass.is-shown .tech-eye--on { display: none; }
.tech-loginform__pass.is-shown .tech-eye--off { display: inline-block; }
.tech-loginform__forgot a { font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink); text-decoration: underline; text-underline-offset: 2px; }
.tech-loginform__forgot a:hover { opacity: 0.7; }
.tech-loginform .tech-login__btn { margin-top: 0; }

@media (min-width: 1024px) {
	.tech-login { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ---------- krok 5: recap ---------- */
.tech-review { display: flex; flex-direction: column; gap: 1.25rem; }
.tech-review__card { border-radius: var(--tech-radius-lg); border: 1px solid #E5E7EB; padding: 1.5rem; }
.tech-review__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.tech-review__head h3 { font-size: var(--tech-fs-lg); font-weight: var(--tech-fw-bold); letter-spacing: var(--tech-tracking-tight); }
.tech-review__edit { background: none; border: 0; padding: 0; cursor: pointer; color: var(--tech-ink); font-weight: var(--tech-fw-semibold); font-size: var(--tech-fs-sm); text-decoration: underline; text-underline-offset: 2px; }
.tech-review__edit:hover,
.tech-review__edit:focus,
.tech-review__edit:active { background: none !important; color: var(--tech-ink) !important; box-shadow: none !important; outline: none; opacity: 0.7; }
.tech-review__body { margin-top: 1rem; font-size: var(--tech-fs-base); color: var(--tech-slate); line-height: 1.5; }
.tech-review__line { }
.tech-review__line strong { color: var(--tech-ink); }
.tech-review__muted { color: var(--tech-slate); }

/* ---------- chrome / układ ---------- */
.tech-checkout__inner {
	max-width: var(--tech-container);
	margin: 0 auto;
	padding: 2rem var(--tech-gutter) 2.5rem;
}
.tech-checkout__title { font-size: var(--tech-fs-3xl); font-weight: var(--tech-fw-extrabold); letter-spacing: var(--tech-tracking-tight); }
.tech-checkout__grid { margin-top: 1.75rem; display: grid; gap: 1.5rem; align-items: start; }
/* min-width:0 → grid nie pęka, gdy natywna tabela order_review ma duże min-content */
.tech-checkout__main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.tech-checkout__aside { min-width: 0; }
.tech-checkout__subtitle { font-size: var(--tech-fs-lg); font-weight: var(--tech-fw-bold); letter-spacing: var(--tech-tracking-tight); margin-bottom: 1rem; overflow-wrap: break-word; word-break: normal; }

@media (min-width: 640px) {
	.tech-checkout__inner { padding-left: var(--tech-gutter-sm); padding-right: var(--tech-gutter-sm); padding-top: 2.5rem; }
	.tech-checkout__title { font-size: var(--tech-fs-4xl); }
}
@media (min-width: 1024px) {
	.tech-checkout__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; }
	.tech-checkout__aside { position: sticky; top: 7rem; }
}

/* ---------- panele (karty sekcji) ---------- */
.tech-checkout__panel,
.tech-checkout__aside {
	border-radius: var(--tech-radius-lg);
	border: 1px solid #E5E7EB;
	padding: 1.5rem;
	background: var(--tech-white);
}
@media (min-width: 640px) {
	.tech-checkout__panel { padding: 2rem; }
}

/* ---------- krok 3: „Dane" rozłożone na karty-sekcje mockupu (Dane.html) ---------- */
.tech-dane { display: flex; flex-direction: column; gap: 1.25rem; }
.tech-dane__title { font-size: var(--tech-fs-lg); font-weight: var(--tech-fw-bold); color: var(--tech-ink); letter-spacing: var(--tech-tracking-tight); margin: 0 0 1.25rem; }

/* siatka pól: 2 kolumny na ≥640, pełna szerokość dla pól „wide" (email/telefon/ulica/kraj) */
.tech-dane__grid { display: grid; grid-template-columns: 1fr; gap: 1rem 1.25rem; }
/* WC narzuca form-row-first/last width:47% + float → kasujemy, pole wypełnia komórkę gridu */
.tech-dane__grid .form-row { margin: 0; width: 100% !important; float: none !important; padding: 0 !important; }
@media (min-width: 640px) {
	.tech-dane__grid { grid-template-columns: 1fr 1fr; }
	.tech-dane__grid .form-row { grid-column: span 2; }              /* domyślnie pełna szerokość */
	.tech-dane__grid .form-row-first,
	.tech-dane__grid .form-row-last { grid-column: span 1; }          /* imię/nazwisko itp. = pół */
}

/* konto / hasło (rejestracja) — checkbox „Założyć konto?" sterujemy z kroku 2, więc go chowamy */
.tech-dane__account > p.create-account { display: none; }
.tech-dane__account .create-account { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--tech-border); }
.tech-dane__accnote { display: flex; align-items: flex-start; gap: 0.625rem; margin-bottom: 1rem; }
.tech-dane__accnote .tech-icon { width: 1.1rem; height: 1.1rem; color: var(--tech-ink); flex: 0 0 auto; margin-top: 0.15rem; }
.tech-dane__accnote p { margin: 0; font-size: var(--tech-fs-sm); color: var(--tech-slate); }

/* „Kupujesz jako": toggle Osoba/Firma → pola firmy + NIP */
.tech-buyer__toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; max-width: 22rem; }
.tech-buyer__opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.tech-buyer__opt span {
	display: block; text-align: center; cursor: pointer;
	border: 1px solid #E5E7EB; border-radius: var(--tech-radius);
	padding: 0.7rem 1rem; font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink);
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.tech-buyer__opt span:hover { border-color: var(--tech-ink); }
.tech-buyer__opt input:checked + span { background: var(--tech-ink); color: var(--tech-white); border-color: var(--tech-ink); }
.tech-buyer__opt input:focus-visible + span { outline: 2px solid var(--tech-ink); outline-offset: 2px; }
.tech-buyer__fields { margin-top: 1.25rem; display: none; }
.tech-buyer.is-firma .tech-buyer__fields { display: grid; }

/* inny adres wysyłki — bez zbędnej linii, checkbox jak mockup (mały, medium, pole po lewej) */
.tech-dane__shipping:not(:empty) { margin-top: 1.25rem; }
.tech-dane__shipping .woocommerce-shipping-fields,
.tech-dane__shipping #ship-to-different-address { border: 0 !important; padding: 0 !important; }
.tech-dane__shipping #ship-to-different-address { margin: 0 !important; }
.tech-dane__shipping #ship-to-different-address label { display: flex; align-items: center; gap: 0.6rem; font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-medium); color: var(--tech-ink); cursor: pointer; }
.tech-dane__shipping #ship-to-different-address input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--tech-ink); flex: 0 0 auto; }
.tech-dane__shipping .shipping_address { margin-top: 1.25rem; }
.tech-dane__shipping .woocommerce-shipping-fields__field-wrapper { margin-top: 0; }

/* Zgody i oświadczenia */
.tech-consents__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tech-consents__head .tech-dane__title { margin: 0; }
.tech-consents__all { background: none; border: 0; padding: 0; cursor: pointer; flex: 0 0 auto; color: var(--tech-ink); font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); text-decoration: underline; text-underline-offset: 2px; }
/* Astra narzuca szare tło/biały tekst na hover gołego <button> → twardy reset, zostaje tylko opacity */
.tech-consents__all:hover,
.tech-consents__all:focus,
.tech-consents__all:active { background: none !important; color: var(--tech-ink) !important; box-shadow: none !important; outline: none; opacity: 0.7; }
.tech-consents__list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.tech-consents__list .form-row { margin: 0; }
.tech-consents__row,
.tech-consents__list .woocommerce-form__label-for-checkbox {
	display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer;
	font-size: var(--tech-fs-sm); color: var(--tech-ink); line-height: 1.4;
}
.tech-consents__row input,
.tech-consents__list input[type="checkbox"] { width: 1rem; height: 1rem; margin-top: 0.15rem; accent-color: var(--tech-ink); flex: 0 0 auto; }
.tech-consents__list a { color: var(--tech-ink); text-decoration: underline; text-underline-offset: 2px; }
.tech-consents__list a:hover { opacity: 0.7; }
.tech-consents__star { color: var(--tech-slate); }
/* „pokaż/ukryj" pełną treść zgody marketingowej */
.tech-consents__more { background: none; border: 0; padding: 0; cursor: pointer; color: var(--tech-ink); font-weight: var(--tech-fw-medium); text-decoration: underline; text-underline-offset: 2px; }
.tech-consents__more:hover,
.tech-consents__more:focus,
.tech-consents__more:active { background: none !important; color: var(--tech-ink) !important; box-shadow: none !important; outline: none; opacity: 0.7; }
.tech-consents__panel { margin: -0.25rem 0 0 1.75rem; }
.tech-consents__panel p { margin: 0; font-size: var(--tech-fs-xs); color: var(--tech-slate); line-height: 1.5; }
/* błąd: niezaznaczony wymagany regulamin */
.tech-consents__row--err span { color: #b42318; }
.tech-consents__row--err input { outline: 1.5px solid #b42318; outline-offset: 1px; }

/* nagłówki sekcji WC (Dane rozliczeniowe / Dostawa / Uwagi / Twoje zamówienie) */
.tech-checkout .woocommerce-billing-fields > h3,
.tech-checkout .woocommerce-shipping-fields h3,
.tech-checkout .woocommerce-additional-fields h3,
#ship-to-different-address {
	font-size: var(--tech-fs-lg);
	font-weight: var(--tech-fw-bold);
	color: var(--tech-ink);
	letter-spacing: var(--tech-tracking-tight);
	margin: 0 0 1.25rem;
}
.tech-checkout__shipping { margin-top: 1.5rem; }
#ship-to-different-address label { font-weight: var(--tech-fw-semibold); cursor: pointer; }

/* ---------- pola formularza (natywne .form-row) ---------- */
.tech-checkout .form-row { margin: 0 0 1rem; display: flex; flex-direction: column; }
.tech-checkout .form-row label { font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink); margin-bottom: 0.375rem; }
.tech-checkout .form-row .required { color: var(--tech-slate); text-decoration: none; border: 0; }
.tech-checkout .form-row .optional { color: var(--tech-slate); font-weight: var(--tech-fw-medium); }

.tech-checkout .input-text,
.tech-checkout textarea,
.tech-checkout select {
	width: 100%;
	border-radius: 0.75rem !important; /* Astra/Woo nadpisują radius → !important */
	border: 1px solid #E5E7EB;
	background: var(--tech-white);
	padding: 0.75rem 1rem;
	font-size: var(--tech-fs-base);
	color: var(--tech-ink);
	transition: border-color 0.15s ease;
	line-height: 1.4;
}
.tech-checkout textarea { min-height: 5rem; padding-top: 0.75rem; }
.tech-checkout .input-text:focus,
.tech-checkout textarea:focus,
.tech-checkout select:focus { outline: none; border-color: var(--tech-ink); box-shadow: none; }
.tech-checkout .input-text::placeholder,
.tech-checkout textarea::placeholder { color: var(--tech-gray-400); }

/* walidacja WC */
.tech-checkout .woocommerce-invalid .input-text,
.tech-checkout .woocommerce-invalid select { border-color: #b42318; }
.tech-checkout .woocommerce-validated .input-text { border-color: var(--tech-mint); }

/* select2 (kraj/województwo) — dorównaj do naszych inputów (wys. ~2.9rem, tekst w pionie na środku) */
.tech-checkout .select2-container { width: 100% !important; }
.tech-checkout .select2-container--default .select2-selection--single {
	height: 2.9rem !important;
	border-radius: 0.75rem !important;
	border: 1px solid #E5E7EB;
	padding: 0 1rem;
}
/* line-height = wysokość pola → tekst wyśrodkowany w pionie (pewniejsze niż flex w select2) */
.tech-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--tech-ink); line-height: 2.9rem !important; padding: 0 1.5rem 0 0; }
.tech-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 2.9rem; right: 0.75rem; }
/* gdyby kraj był zwykłym <select> (nie select2) — też wyśrodkuj w pionie */
.tech-checkout select { height: 2.9rem; padding-top: 0; padding-bottom: 0; line-height: 2.9rem; }
.tech-checkout .select2-container--open .select2-selection--single { border-color: var(--tech-ink); }
.tech-checkout .select2-dropdown { border-color: var(--tech-ink); border-radius: 0.75rem; overflow: hidden; }
.tech-checkout .select2-results__option--highlighted[aria-selected] { background: var(--tech-ink); }

/* ---------- kontra Astry: domyślny 2-kol checkout floatuje #customer_details / #order_review ----------
   Reguły po ID (1,0,0) biją nasze klasy → wyzeruj float/szerokość/ramkę, by wypełniały komórki gridu. */
.tech-checkout #customer_details { float: none !important; width: 100% !important; }
/* Astra robi z nagłówka „Twoje zamówienie" pudełko z ramką doklejone do tabeli — zerujemy. */
.tech-checkout #order_review_heading {
	float: none !important; width: 100% !important;
	border: 0 !important; padding: 0 !important; margin: 0 0 1.25rem !important;
	background: transparent !important;
}
.tech-checkout #order_review {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

/* ---------- prawa kolumna: kompaktowe podsumowanie + dostawa ---------- */
.tech-checkout__review,
.tech-checkout__review .shop_table { border: 0; }
.tech-checkout__review .shop_table {
	width: 100%;
	table-layout: fixed; /* twardo trzyma szerokość kolumny → tabela nie rozpycha gridu */
	border-collapse: collapse;
	margin: 0;
}
.tech-checkout__review .shop_table th,
.tech-checkout__review .shop_table td {
	padding: 0.4rem 0;
	text-align: left;
	font-size: var(--tech-fs-sm);
	border: 0; /* bez linii pod każdym wierszem — separatory tylko strukturalne (patrz niżej) */
	vertical-align: top;
	overflow-wrap: break-word;
}
.tech-checkout__review .shop_table .product-total,
.tech-checkout__review .shop_table td.product-total,
.tech-checkout__review .shop_table .amount { text-align: right; font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.tech-checkout__review .shop_table .product-name { color: var(--tech-ink); font-weight: var(--tech-fw-semibold); }
.tech-checkout__review .shop_table .product-quantity { color: var(--tech-slate); font-weight: var(--tech-fw-medium); }
/* pozycja z miniaturą (mockup: thumbnail + nazwa + „N szt.") */
.tech-sum__item { display: flex; align-items: center; gap: 0.75rem; }
.tech-sum__thumb { flex: 0 0 auto; width: 3rem; height: 3rem; }
.tech-sum__thumb img { width: 3rem !important; height: 3rem !important; object-fit: cover; border-radius: var(--tech-radius); border: 1px solid var(--tech-border); display: block; margin: 0; }
.tech-sum__meta { display: flex; flex-direction: column; min-width: 0; }
.tech-sum__name { color: var(--tech-ink); font-weight: var(--tech-fw-semibold); line-height: 1.3; }
.tech-sum__qty { color: var(--tech-slate); font-weight: var(--tech-fw-medium); font-size: var(--tech-fs-xs); }
.tech-checkout__review tfoot th { color: var(--tech-slate); font-weight: var(--tech-fw-medium); }
.tech-checkout__review tfoot td { text-align: right; color: var(--tech-ink); font-weight: var(--tech-fw-semibold); }
/* odstęp + linia oddzielająca produkty od sekcji sum (mockup) */
.tech-checkout__review tbody tr:last-child td { padding-bottom: 1.25rem; }
.tech-checkout__review tfoot .cart-subtotal th,
.tech-checkout__review tfoot .cart-subtotal td { border-top: 1px solid var(--tech-border); padding-top: 1.25rem; }
/* „Do zapłaty": linia + odstęp nad, duża kwota, „(zawiera VAT)" w osobnej linii pod kwotą */
.tech-checkout__review tfoot .order-total th,
.tech-checkout__review tfoot .order-total td { border-top: 1px solid var(--tech-border); padding-top: 1.25rem; vertical-align: baseline; }
.tech-checkout__review tfoot .order-total th { color: var(--tech-ink); font-weight: var(--tech-fw-bold); }
.tech-checkout__review tfoot .order-total td .amount,
.tech-checkout__review tfoot .order-total td strong { font-size: var(--tech-fs-2xl); font-weight: var(--tech-fw-extrabold); color: var(--tech-ink); }
.tech-checkout__review tfoot .order-total .includes_tax { display: block; margin-top: 0.4rem; font-size: var(--tech-fs-xs); font-weight: var(--tech-fw-medium); color: var(--tech-slate); }
/* kwota VAT w nocie dziedziczy mały rozmiar noty (nie wielki z „Do zapłaty") */
.tech-checkout__review tfoot .order-total .includes_tax .amount { font-size: inherit; font-weight: inherit; color: inherit; }

/* wiersz „Dostawa" (read-only, wybór metody jest w lewej kolumnie jako karty) */
.tech-checkout__review tr.tech-sum__shipping th { color: var(--tech-slate); font-weight: var(--tech-fw-medium); }
.tech-checkout__review tr.tech-sum__shipping td { text-align: right; font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.tech-sum__muted { color: var(--tech-slate); font-weight: var(--tech-fw-medium); }

/* ---------- krok 4: pod-kroki numerowane + akordeony grup (mockup Platnosc.html) ---------- */
.tech-paystep + .tech-shipstep { margin-top: 2.25rem; }
.tech-substep { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.tech-substep__num {
	flex: 0 0 auto; width: 1.75rem; height: 1.75rem; border-radius: var(--tech-radius-pill);
	background: var(--tech-ink); color: var(--tech-white);
	display: flex; align-items: center; justify-content: center;
	font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-bold);
}
/* margin:0 — Astra nadaje h2 margines/line-height → numerek „uciekał" w pionie względem tekstu */
.tech-substep__title { margin: 0 !important; line-height: 1.2; font-size: var(--tech-fs-xl); font-weight: var(--tech-fw-bold); letter-spacing: var(--tech-tracking-tight); }

/* akordeon grupy (płatność i dostawa współdzielą wygląd) */
.tech-acc2 { border: 1px solid #E5E7EB; border-radius: var(--tech-radius-lg); background: var(--tech-white); overflow: hidden; }
.tech-acc2 + .tech-acc2 { margin-top: 0.75rem; }
.tech-acc2.is-open { border-color: var(--tech-ink); }
.tech-acc2__head {
	width: 100%; display: flex; align-items: center; gap: 0.85rem; text-align: left; cursor: pointer;
	padding: 1rem 1.25rem; border: 0; line-height: 1.3;
	/* Astra nadaje <button> ciemne tło/biały tekst (z !important) — twardo zerujemy w każdym stanie */
	background: var(--tech-white) !important; color: var(--tech-ink) !important; box-shadow: none !important;
}
.tech-acc2__head:hover { background: var(--tech-mist) !important; }
.tech-acc2__head:hover, .tech-acc2__head:focus, .tech-acc2__head:active { color: var(--tech-ink) !important; box-shadow: none !important; outline: none; }
/* Focus z klawiatury: obrys WEWNĄTRZ (inset), bo .tech-acc2 ma overflow:hidden; !important tylko
   dlatego, że reguła wyżej (przebijająca Astrę) zeruje box-shadow z !important (review pi r14). */
.tech-acc2__head:focus-visible { background: var(--tech-mist) !important; box-shadow: inset 0 0 0 2px var(--tech-ink) !important; }
.tech-acc2__ico { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; border-radius: var(--tech-radius); background: var(--tech-mist); display: flex; align-items: center; justify-content: center; }
.tech-acc2__ico .tech-icon, .tech-acc2__ico svg { width: 1.4rem; height: 1.4rem; color: var(--tech-ink); }
.tech-acc2__meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.tech-acc2__title { font-weight: var(--tech-fw-bold); color: var(--tech-ink); }
.tech-acc2__sub { font-size: var(--tech-fs-sm); color: var(--tech-slate); }
.tech-acc2__chev { flex: 0 0 auto; color: var(--tech-slate); display: flex; transition: transform 0.2s ease; }
.tech-acc2__chev svg, .tech-acc2__chev .tech-icon { width: 1.2rem; height: 1.2rem; }
.tech-acc2.is-open .tech-acc2__chev { transform: rotate(180deg); }
.tech-acc2__body { display: none; padding: 0.25rem 1.25rem 1.25rem; }
.tech-acc2.is-open .tech-acc2__body { display: block; }

/* stan „wybrano" (flow krok 4): zielona linia „✓ Wybrano: …" pod podtytułem w nagłówku */
.tech-acc2.is-chosen { border-color: var(--tech-ink); }
.tech-acc2__chosen { display: none; align-items: center; gap: 0.35rem; margin-top: 0.3rem; color: var(--tech-mint); font-weight: var(--tech-fw-semibold); font-size: var(--tech-fs-sm); }
.tech-acc2__chosen::before { content: ""; width: 1rem; height: 1rem; flex: 0 0 auto; background: var(--tech-mint); -webkit-mask: no-repeat center/1rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); mask: no-repeat center/1rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.tech-acc2.is-chosen .tech-acc2__chosen { display: inline-flex; }
/* płatność: wybrana grupa zwija się w całości (nagłówek + „✓ metoda") */
.tech-acc2--pay.is-chosen:not(.is-open) .tech-acc2__body { display: none; }
/* dostawa: wybrana grupa ZOSTAJE rozwinięta (metody + box punktu) — JS trzyma is-open */

/* picker punktu — widoczny tylko gdy karta InPost jest wybrana; box „Punkt odbioru" wg mockupu */
.tech-ship__picker { display: none; }
.tech-ship__card.is-active + .tech-ship__picker { display: flex; }
.tech-inpost { margin: 0.75rem 0 0; align-items: center; gap: 1rem; background: var(--tech-mist); border-radius: var(--tech-radius); padding: 0.85rem 1rem; }
.tech-inpost__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tech-inpost__lab { font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.tech-inpost__status { font-size: var(--tech-fs-sm); color: var(--tech-slate); }
.tech-inpost__status.is-set { color: var(--tech-ink); font-weight: var(--tech-fw-medium); }
.tech-inpost__btn {
	flex: 0 0 auto; cursor: pointer; white-space: nowrap;
	height: 2.75rem; padding: 0 1.5rem !important; min-width: 0 !important;
	border-radius: var(--tech-radius-pill) !important; border: 0 !important;
	background: var(--tech-ink) !important; color: var(--tech-white) !important;
	font-weight: var(--tech-fw-semibold); font-size: var(--tech-fs-sm);
}
.tech-inpost__btn:hover { background: var(--tech-ink-hover) !important; }

/* modal mapy easyPack (InPost) — domyślnie zlewa się z tłem; dajemy cień/ramkę/radius żeby „wyskakiwał" */
.widget-modal {
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3) !important;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	border-radius: 14px !important;
	overflow: hidden !important;
}
.widget-modal__topbar { border-bottom: 1px solid var(--tech-border); }
.widget-modal { z-index: 9999 !important; }

/* modal mapy ORLEN „Paczka w Ruchu" — to jQuery UI dialog (#op-dialog w .ui-dialog): domyślnie bez cienia,
   z pustym titlebarem i uchwytem resize (wygląda jak textarea). Dajemy ten sam wygląd co easyPack:
   cień/ramka/radius, schowane uchwyty resize, czysty titlebar z prostym „×". Scope `:has(#op-dialog)`,
   żeby nie ruszać innych dialogów jQuery UI na stronie. */
.ui-dialog:has(#op-dialog) {
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3) !important;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	border-radius: 14px !important;
	overflow: hidden !important;
	z-index: 9999 !important;
	padding: 0 !important;
}
.ui-dialog:has(#op-dialog) .ui-dialog-titlebar {
	background: #fff;
	border: 0;
	border-bottom: 1px solid var(--tech-border);
	border-radius: 0;
	padding: 0.55rem 1rem;
	min-height: 0;
}
.ui-dialog:has(#op-dialog) .ui-dialog-title { font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.ui-dialog:has(#op-dialog) .ui-dialog-titlebar-close {
	width: 2rem; height: 2rem; right: 0.5rem; top: 50%; transform: translateY(-50%);
	margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.ui-dialog:has(#op-dialog) .ui-dialog-titlebar-close .ui-icon,
.ui-dialog:has(#op-dialog) .ui-dialog-titlebar-close span { display: none; }
.ui-dialog:has(#op-dialog) .ui-dialog-titlebar-close::after {
	content: "×"; display: block; font-size: 1.5rem; line-height: 1; color: var(--tech-slate);
}
.ui-dialog:has(#op-dialog) .ui-dialog-titlebar-close:hover::after { color: var(--tech-ink); }
.ui-dialog:has(#op-dialog) .ui-resizable-handle { display: none !important; }

/* metody płatności przeniesione przez JS do akordeonów (li.wc_payment_method) — wygląd wiersza niżej */
.tech-paygroups { margin-top: 0; }
.tech-pay__badge { flex: 0 0 auto; background: var(--tech-mist); color: var(--tech-slate); font-size: var(--tech-fs-xs); font-weight: var(--tech-fw-bold); padding: 0.2rem 0.55rem; border-radius: 0.4rem; letter-spacing: 0.02em; }

/* ---------- karty dostawy (lewa kolumna, krok 4) ---------- */
.tech-ship { display: block; margin-top: 0; }
.tech-ship__empty { color: var(--tech-slate); font-size: var(--tech-fs-sm); }
/* karty metod wewnątrz akordeonu grupy dostawy */
.tech-acc2__body .tech-ship__card { margin-bottom: 0.625rem; }
.tech-acc2__body .tech-ship__card:last-child { margin-bottom: 0; }
.tech-ship__card {
	display: flex; align-items: center; gap: 0.75rem;
	border: 1px solid #E5E7EB;
	border-radius: var(--tech-radius);
	padding: 0.95rem 1.1rem;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tech-ship__card:hover { border-color: var(--tech-gray-300); }
.tech-ship__card.is-active { border-color: var(--tech-ink); box-shadow: inset 0 0 0 1px var(--tech-ink); }
/* natywne radio ukryte — własna kropka; radio zostaje funkcjonalne (WC je czyta) */
.tech-ship__radio { position: absolute; opacity: 0; width: 0; height: 0; }
.tech-ship__dot {
	flex: 0 0 auto;
	width: 1.25rem; height: 1.25rem;
	border-radius: var(--tech-radius-pill);
	border: 2px solid var(--tech-gray-300);
	position: relative;
	transition: border-color 0.15s ease;
}
.tech-ship__card.is-active .tech-ship__dot { border-color: var(--tech-ink); }
.tech-ship__card.is-active .tech-ship__dot::after {
	content: ""; position: absolute; inset: 3px;
	border-radius: var(--tech-radius-pill); background: var(--tech-ink);
}
.tech-ship__name { flex: 1 1 auto; min-width: 0; font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.tech-ship__badge { flex: 0 0 auto; background: var(--tech-mist); color: var(--tech-slate); font-size: var(--tech-fs-xs); font-weight: var(--tech-fw-bold); padding: 0.2rem 0.55rem; border-radius: 0.4rem; letter-spacing: 0.02em; }
.tech-ship__cost { flex: 0 0 auto; font-weight: var(--tech-fw-bold); color: var(--tech-ink); white-space: nowrap; }
.tech-ship__picker { margin: 0.25rem 0 0.625rem; }
.tech-ship__free { color: var(--tech-mint); font-weight: var(--tech-fw-bold); }
/* element wstrzyknięty przez wtyczkę (np. „wybierz paczkomat") pod kartą */
.tech-ship .wc_shipping_method_inpost_geowidget,
.tech-ship .inpost-geowidget,
.tech-ship__card + div { margin: 0.25rem 0 0.25rem 2rem; }

/* ---------- płatność (wiersze 1:1 z mockupem: KARTA = całe <li>, radio w środku po lewej,
   nazwa, badge z prawej; loga bramek ukryte, opis pełną szerokością pod spodem) ---------- */
#payment.woocommerce-checkout-payment { background: transparent; border-radius: 0; padding: 0; }
#payment .wc_payment_methods { list-style: none; margin: 0; padding: 0; }
/* KARTA = li (a nie label) */
.tech-acc2__body li.wc_payment_method {
	list-style: none; margin: 0 0 0.625rem; padding: 0.95rem 1.1rem;
	border: 1px solid #E5E7EB; border-radius: var(--tech-radius); background: var(--tech-white);
	display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tech-acc2__body li.wc_payment_method:last-child { margin-bottom: 0; }
.tech-acc2__body li.wc_payment_method:has(input[type="radio"]:checked) { border-color: var(--tech-ink); box-shadow: inset 0 0 0 1px var(--tech-ink); }
/* radio w środku po lewej */
.tech-acc2__body li.wc_payment_method > input[type="radio"] { order: 0; flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--tech-ink); }
/* etykieta = sama nazwa (loga/linki bramek ukryte) */
.tech-acc2__body li.wc_payment_method > label {
	order: 1; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; background: none;
	display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
	font-weight: var(--tech-fw-semibold); color: var(--tech-ink);
}
.tech-acc2__body li.wc_payment_method > label img,
.tech-acc2__body li.wc_payment_method > label .about_paypal { display: none !important; }
.tech-pay__badge { order: 2; margin-left: auto; }
/* opis bramki (payment_box) — ukryty (mockup nie pokazuje opisu metody). !important bo WC
   dokłada inline style="display:block" dla zaznaczonej metody po stronie JS. */
.tech-acc2__body li.wc_payment_method .payment_box { display: none !important; }

/* „Kupuję i płacę" (#place_order) NIE pokazuje się w kroku 4 — zamówienie składa się w kroku 5
   („Zamów i zapłać" w prawej kolumnie deleguje do tego ukrytego przycisku). Zostaje w DOM (nonce/terms).
   ⚠️ WARUNKOWO na `.has-stepper` (fix 2026-09-11, code review): klasę dokłada inline script
   w form-checkout.php, czyli tylko gdy JS działa. Bez JS natywny przycisk MUSI być widoczny —
   inaczej klient widzi wszystkie kroki, ale nie ma czym złożyć zamówienia (nasze CTA to
   `type="button"` obsługiwany wyłącznie przez stepper). */
.tech-checkout.has-stepper .tech-paystep .place-order { display: none !important; }
/* Bez działającego steppera chowamy nasze CTA i strzałki „wstecz" — one bez JS nic nie robią. */
.tech-checkout:not(.has-stepper) .tech-sum__cta,
.tech-checkout:not(.has-stepper) .tech-cstep__backarrow { display: none !important; }
#payment .woocommerce-terms-and-conditions-wrapper { margin-top: 1rem; font-size: var(--tech-fs-sm); }

/* przycisk „Kupuję i płacę" */
#payment #place_order,
.tech-checkout #place_order {
	width: 100%;
	height: 3.5rem;
	margin-top: 1.25rem;
	border-radius: var(--tech-radius-pill) !important;
	background: var(--tech-ink) !important;
	color: var(--tech-white) !important;
	font-weight: var(--tech-fw-semibold);
	font-size: var(--tech-fs-base);
	border: 0 !important;
	cursor: pointer;
	transition: background 0.15s ease;
}
#payment #place_order:hover,
.tech-checkout #place_order:hover { background: var(--tech-ink-hover) !important; }

/* ---------- formularze logowania / kuponu (nad checkoutem — Faza 3 przeniesie do kroku 2) ---------- */
.tech-checkout .woocommerce-form-login,
.tech-checkout .checkout_coupon,
.woocommerce-checkout .woocommerce-form-login,
.woocommerce-checkout .checkout_coupon {
	border: 1px solid #E5E7EB;
	border-radius: var(--tech-radius-lg);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}
.woocommerce-checkout .woocommerce-form-login__submit,
.woocommerce-checkout .checkout_coupon button {
	border-radius: var(--tech-radius-pill) !important;
	background: var(--tech-ink) !important;
	color: var(--tech-white) !important;
	border: 0 !important;
}

/* ---------- WooCommerce Subscriptions: sekcja odnowień w prawym podsumowaniu ----------
   WCS dokłada do <tfoot> PŁASKIE wiersze (nie zagnieżdżoną tabelę): nagłówek `.recurring-totals`,
   `.cart-subtotal.recurring-total` (Suma częściowa), `.shipping.recurring-total` (Wysyłka… + UKRYTY
   input `shipping_method[<klucz_odnowienia>]` — POTRZEBNY dla syncRecurringShipping, więc wiersz tylko
   chowamy CSS-em, input dalej się wysyła), `.paczkomaty-shipping` (picker paczkomatu wstrzykiwany przez
   wtyczkę InPost — niechciany w podsumowaniu) i `.order-total.recurring-total`.
   Pokazujemy TYLKO ten ostatni wiersz jako jedną czystą linię „Płatność cykliczna" (kwota/okres + VAT +
   data 1. odnowienia). Dostawa odnowień = synchronizowana z wyborem z kroku 4 (JS) → reszta wierszy zbędna. */
.tech-checkout__review tfoot tr.recurring-totals,
.tech-checkout__review tfoot tr.cart-subtotal.recurring-total,
.tech-checkout__review tfoot tr.shipping.recurring-total,
.tech-checkout__review tfoot tr.shipping.paczkomaty-shipping,
.tech-checkout__review .recurring-cart-shipping-mapping-info { display: none !important; }

/* zostawiony wiersz dziedziczy styl „Do zapłaty" (.order-total): separator + duża kwota + VAT w bloku.
   Podmieniamy tylko etykietę „Suma powtarzających się" → „Płatność cykliczna" i stylujemy datę odnowienia. */
.tech-checkout__review tfoot tr.order-total.recurring-total th { font-size: 0; }
.tech-checkout__review tfoot tr.order-total.recurring-total th::after {
	content: "Płatność cykliczna";
	font-size: var(--tech-fs-base); font-weight: var(--tech-fw-bold); color: var(--tech-ink);
}
.tech-checkout__review tfoot tr.order-total.recurring-total .first-payment-date { margin-top: 0.2rem; font-size: var(--tech-fs-xs); font-weight: var(--tech-fw-medium); color: var(--tech-slate); }
.tech-checkout__review tfoot tr.order-total.recurring-total .first-payment-date small { font-size: inherit; }

/* ---------- notice'y WC ---------- */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error {
	border-radius: var(--tech-radius);
	border: 1px solid var(--tech-border);
	background: var(--tech-mist);
	padding: 0.85rem 1rem;
	font-size: var(--tech-fs-sm);
	list-style: none;
}
.woocommerce-checkout .woocommerce-error { border-color: #f4c7c2; background: #fdf3f2; }
/* Ikona WC/Astry (::before, position:absolute, left:1.5em) zakłada lewy padding 3.5em — tu mamy 1rem, więc ikona
   wchodziła na tekst. Ukrywamy ją jak w komunikatach „Moje konto” (konto.css). Poprawka 2026-11-13 (klon PROD). */
.woocommerce-checkout .woocommerce-info::before,
.woocommerce-checkout .woocommerce-message::before,
.woocommerce-checkout .woocommerce-error::before { display: none; }

/* ====================================================================================
   POTWIERDZENIE ZAMÓWIENIA (order-received) — szablon woocommerce/checkout/thankyou.php
   Mockup: Potwierdzenie.html. Navbar/stopka = motyw; tu tylko treść `<main>`.
   ==================================================================================== */
.tech-ty { max-width: 42rem; margin: 0 auto; padding: 1rem 0 2rem; }

/* ---- sekcja główna ---- */
.tech-ty__head { text-align: center; }
.tech-ty__badge-ico {
	width: 5rem; height: 5rem; margin: 0 auto;
	border-radius: var(--tech-radius-pill);
	background: var(--tech-mint); color: #fff;
	display: flex; align-items: center; justify-content: center;
	animation: tech-ty-pop 0.5s ease both;
}
@keyframes tech-ty-pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tech-ty__badge-ico { animation: none; } }
.tech-ty__title { margin: 2rem 0 0; font-size: clamp(1.75rem, 4vw, 3rem); font-weight: var(--tech-fw-extrabold); letter-spacing: -0.02em; line-height: 1.1; color: var(--tech-ink); }
.tech-ty__lead { margin: 1.25rem 0 0; color: var(--tech-slate); font-size: var(--tech-fs-lg); line-height: 1.6; }

.tech-ty__order {
	margin: 1.75rem auto 0; display: inline-flex; align-items: center; gap: 0.75rem;
	border-radius: var(--tech-radius); background: var(--tech-mist); border: 1px solid var(--tech-border);
	padding: 0.6rem 0.6rem 0.6rem 1.5rem;
}
.tech-ty__order-meta { text-align: left; }
.tech-ty__order-lab { font-size: var(--tech-fs-xs); font-weight: var(--tech-fw-bold); text-transform: uppercase; letter-spacing: 0.16em; color: var(--tech-slate); }
.tech-ty__order-no { margin-top: 0.1rem; font-size: var(--tech-fs-xl); font-weight: var(--tech-fw-extrabold); color: var(--tech-ink); }
.tech-ty__copy {
	display: inline-flex; align-items: center; gap: 0.4rem; flex: 0 0 auto;
	border-radius: var(--tech-radius-pill); background: #fff; border: 1px solid var(--tech-border);
	padding: 0.65rem 1rem; font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink);
	cursor: pointer; transition: border-color 0.15s ease;
}
.tech-ty__copy:hover { border-color: var(--tech-ink); }

.tech-ty__status { margin-top: 1.5rem; }
.tech-ty__status-pill {
	display: inline-flex; align-items: center; gap: 0.5rem;
	border-radius: var(--tech-radius-pill); padding: 0.5rem 1rem;
	font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink);
	border: 1px solid var(--tech-border); background: var(--tech-mist);
}
.tech-ty__status-pill.is-ok { background: var(--tech-mint-50); border-color: var(--tech-mint-100); }
.tech-ty__status-pill.is-ok svg { color: var(--tech-mint); }

/* ---- nagłówki sekcji ---- */
.tech-ty__h2 { margin: 0; font-size: var(--tech-fs-lg); font-weight: var(--tech-fw-bold); letter-spacing: -0.01em; color: var(--tech-ink); }

/* ---- box dane do przelewu ---- */
.tech-ty__transfer { margin-top: 2rem; border-radius: var(--tech-radius-lg); border: 2px solid rgba(56, 63, 69, 0.15); background: var(--tech-mist); padding: 1.75rem; }
.tech-ty__transfer-head { display: flex; align-items: center; gap: 0.6rem; color: var(--tech-ink); }
.tech-ty__transfer-note { margin: 0.5rem 0 0; font-size: var(--tech-fs-sm); color: var(--tech-slate); }
.tech-ty__dl { margin: 1rem 0 0; }
.tech-ty__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: var(--tech-fs-sm); padding-bottom: 0.75rem; border-bottom: 1px solid var(--tech-border); margin-bottom: 0.75rem; }
.tech-ty__row:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.tech-ty__row dt { color: var(--tech-slate); }
.tech-ty__row dd { margin: 0; font-weight: var(--tech-fw-semibold); color: var(--tech-ink); text-align: right; }
.tech-ty__row dd.tech-ty__strong { font-weight: var(--tech-fw-extrabold); }
.tech-ty__break { word-break: break-all; }

/* ---- szczegóły zamówienia ---- */
.tech-ty__details { margin-top: 2rem; border-radius: var(--tech-radius-lg); border: 1px solid var(--tech-border); padding: 1.75rem; }
.tech-ty__items { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.tech-ty__item { display: flex; align-items: center; gap: 1rem; }
.tech-ty__thumb { flex: 0 0 auto; width: 56px; height: 56px; }
.tech-ty__thumb img { width: 56px; height: 56px; border-radius: 0.75rem; object-fit: cover; display: block; }
.tech-ty__item-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tech-ty__item-name { font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.tech-ty__item-qty { font-size: var(--tech-fs-sm); color: var(--tech-slate); }
.tech-ty__item-total { flex: 0 0 auto; font-weight: var(--tech-fw-bold); color: var(--tech-ink); white-space: nowrap; }
.tech-ty__amounts { margin: 1.25rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--tech-border); display: flex; flex-direction: column; gap: 0.6rem; }
.tech-ty__amount { display: flex; align-items: center; justify-content: space-between; font-size: var(--tech-fs-sm); }
.tech-ty__amount dt { color: var(--tech-slate); }
.tech-ty__amount dd { margin: 0; font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.tech-ty__total { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--tech-border); display: flex; align-items: baseline; justify-content: space-between; }
.tech-ty__total > span:first-child { font-weight: var(--tech-fw-bold); color: var(--tech-ink); }
.tech-ty__total-val { font-size: var(--tech-fs-xl); font-weight: var(--tech-fw-extrabold); color: var(--tech-ink); }

.tech-ty__grid { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--tech-border); display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .tech-ty__grid { grid-template-columns: 1fr 1fr; } }
.tech-ty__cell { display: flex; align-items: flex-start; gap: 0.75rem; }
.tech-ty__cell-ico { flex: 0 0 auto; width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; background: var(--tech-mist); color: var(--tech-ink); display: flex; align-items: center; justify-content: center; }
.tech-ty__cell-lab { font-size: var(--tech-fs-xs); font-weight: var(--tech-fw-bold); text-transform: uppercase; letter-spacing: 0.14em; color: var(--tech-slate); }
.tech-ty__cell-val { margin-top: 0.1rem; font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.tech-ty__cell-sub { font-size: var(--tech-fs-sm); color: var(--tech-slate); }

/* ---- co dalej ---- */
.tech-ty__next { margin-top: 2rem; border-radius: var(--tech-radius-lg); background: var(--tech-mist); border: 1px solid var(--tech-border); padding: 1.75rem; }
.tech-ty__steps { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.tech-ty__step { display: flex; align-items: flex-start; gap: 0.75rem; }
.tech-ty__step-ico { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: var(--tech-radius-pill); background: #fff; border: 1px solid var(--tech-border); color: var(--tech-ink); display: flex; align-items: center; justify-content: center; }
.tech-ty__step-title { font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink); }
.tech-ty__step-txt { margin: 0.1rem 0 0; font-size: var(--tech-fs-sm); color: var(--tech-slate); }
.tech-ty__link { color: var(--tech-ink); font-weight: var(--tech-fw-semibold); text-decoration: underline; text-underline-offset: 2px; }

/* ---- CTA ---- */
.tech-ty__cta { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .tech-ty__cta { flex-direction: row; } }
.tech-ty__btn { flex: 1 1 0; display: inline-flex; justify-content: center; align-items: center; padding: 0.85rem 1.75rem; border-radius: var(--tech-radius-pill); font-weight: var(--tech-fw-semibold); transition: background 0.15s ease, color 0.15s ease; text-decoration: none; }
.tech-ty__btn--primary { background: var(--tech-ink); color: #fff; }
/* ⚠️ color:#fff MUSI być powtórzony w :hover — globalna Astra `a:hover{color:slate}` (0,1,1) bije
   bazowe `.tech-ty__btn--primary{color:#fff}` (0,1,0) → bez tego tekst robił się slate na slate tle
   (niewidoczny). Reguła (0,2,0) wygrywa nad a:hover. (Outline miał to od początku, dlatego był OK.) */
.tech-ty__btn--primary:hover { background: var(--tech-ink-hover); color: #fff; }
.tech-ty__btn--outline { border: 1px solid var(--tech-ink); color: var(--tech-ink); }
.tech-ty__btn--outline:hover { background: var(--tech-ink); color: #fff; }
