/* Cart and checkout (classic WooCommerce shortcodes rendered by woocommerce/cart and
   woocommerce/checkout), order received page, order pay page and account pages.
   Tokens only (--nz-*, --wp--preset-*), mobile first, breakpoint 1000px.
   WooCommerce's own stylesheets are dequeued (inc/woocommerce.php); plugin styles that load on
   these pages (Paynow, Polkurier map) come first, so the body hooks .nz-cart / .nz-checkout /
   .nz-account win on specificity without !important. */

/* ---------- Block components that still exist (mini cart, Store API notices): tokens ---------- */
:root {
  --wc-form-border-color: var(--nz-muted);
  --wc-form-border-width: 1px;
  --wc-form-border-radius: var(--nz-radius);
  --wc-form-color-text: var(--nz-text);
  --wc-form-color-background: var(--nz-bg-light);
  --wc-separator-color: var(--nz-line);
}

/* ---------- Page frame ---------- */
/* blog.css, which spaces the other pages (.nz-page), is not loaded here: same rhythm for the
   cart, checkout and account pages, so the breadcrumbs keep their distance from the header and
   the content (cart cross-sells, order summary) never touches the footer. */
:is(.nz-cart, .nz-checkout, .nz-account) .nz-page { padding-block: 20px var(--nz-section); }
.nz-cart .nz-page__title,
.nz-checkout .nz-page__title,
.nz-account .nz-page__title { margin-bottom: 28px; }
.nz-checkout .nz-page__header { margin-top: 8px; }
.nz-cart .nz-page__content,
.nz-checkout .nz-page__content { font-size: 1.0625rem; line-height: 1.5; }
.nz-cart .woocommerce,
.nz-checkout .woocommerce { min-width: 0; }

/* ---------- Shared form conventions: .form-row from woocommerce_form_field() ---------- */
:is(.nz-cart, .nz-checkout, .nz-account) .form-row,
.nz-account .woocommerce-form-row { position: relative; margin: 0 0 16px; padding: 0; }
:is(.nz-cart, .nz-checkout, .nz-account) .form-row label:not(.checkbox):not(.woocommerce-form__label-for-checkbox) { display: block; margin-bottom: 6px; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
:is(.nz-cart, .nz-checkout, .nz-account) .form-row label .required { color: var(--nz-accent-dark); text-decoration: none; }
:is(.nz-cart, .nz-checkout, .nz-account) .form-row label .optional { font-weight: 400; color: var(--nz-muted); }
:is(.nz-cart, .nz-checkout, .nz-account) .form-row .woocommerce-input-wrapper { display: block; }
:is(.nz-cart, .nz-checkout, .nz-account) .form-row .input-text,
:is(.nz-cart, .nz-checkout, .nz-account) .form-row select,
:is(.nz-cart, .nz-checkout, .nz-account) .form-row textarea { display: block; width: 100%; min-height: 56px; padding: 0 16px; background: var(--nz-bg-light); color: var(--nz-text); border: 1px solid var(--nz-muted); border-radius: var(--nz-radius); font: inherit; font-size: 1.0625rem; line-height: 1.3; box-shadow: none; appearance: none; -webkit-appearance: none; }
:is(.nz-cart, .nz-checkout, .nz-account) .form-row textarea { padding: 14px 16px; min-height: 120px; line-height: 1.5; resize: vertical; }
:is(.nz-cart, .nz-checkout, .nz-account) .form-row select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%232A1F1A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
/* Transparent outline, not none: forced colors mode paints it in the system color while the box shadow disappears. */
:is(.nz-cart, .nz-checkout, .nz-account) .form-row .input-text:focus,
:is(.nz-cart, .nz-checkout, .nz-account) .form-row select:focus,
:is(.nz-cart, .nz-checkout, .nz-account) .form-row textarea:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--nz-accent); box-shadow: inset 0 0 0 1px var(--nz-accent); }
:is(.nz-cart, .nz-checkout, .nz-account) .form-row .input-text::placeholder,
:is(.nz-cart, .nz-checkout, .nz-account) .form-row textarea::placeholder { color: var(--nz-muted); opacity: 1; }
:is(.nz-cart, .nz-checkout, .nz-account) .form-row .description { display: block; margin: 6px 0 0; font-size: 0.875rem; color: var(--nz-text-2); }
/* WooCommerce's checkout.js hides field descriptions until focus (inline display: none, aria-hidden); the hints stay visible. */
.nz-checkout .form-row .description { display: block !important; }
/* Validation states set by checkout.js (blur) and after a failed submit (inline messages). */
:is(.nz-checkout, .nz-account) .form-row.woocommerce-invalid .input-text,
:is(.nz-checkout, .nz-account) .form-row.woocommerce-invalid select,
:is(.nz-checkout, .nz-account) .form-row.woocommerce-invalid textarea,
:is(.nz-checkout, .nz-account) .form-row [aria-invalid="true"] { border-color: var(--nz-accent-dark); box-shadow: inset 0 0 0 1px var(--nz-accent-dark); }
.nz-checkout .checkout-inline-error-message { margin: 6px 0 0; font-size: 0.9375rem; line-height: 1.4; color: var(--nz-accent-dark); }
/* Single allowed country (Polska): the row is a one-option select, nothing to choose. address-i18n.js
   calls .show() on every locale row at init (inline display: block), hence the !important. */
.nz-checkout #billing_country_field,
.nz-checkout #shipping_country_field { display: none !important; }
/* Checkbox rows (invoice, create account, ship elsewhere, terms, remember me). */
:is(.nz-checkout, .nz-account) .form-row label.checkbox,
:is(.nz-checkout, .nz-account) .woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin: 0; padding: 10px 0; font-size: 1rem; font-weight: 400; line-height: 1.5; cursor: pointer; }
:is(.nz-checkout, .nz-account) .form-row input[type="checkbox"],
:is(.nz-checkout, .nz-account) .woocommerce-form__input-checkbox { flex: 0 0 auto; width: 24px; height: 24px; margin: 0; accent-color: var(--nz-text); cursor: pointer; }
:is(.nz-checkout, .nz-account) .form-row input[type="checkbox"]:focus-visible { outline: var(--nz-focus); outline-offset: 2px; }
.nz-checkout .form-row.woocommerce-invalid label.checkbox { color: var(--nz-accent-dark); }
/* "(opcjonalne)" after a checkbox label is noise: ticking is the choice. */
:is(.nz-checkout, .nz-account) .form-row label.checkbox .optional { display: none; }
/* Name fields side by side from 700px; the other rows span the grid. */
@media (min-width: 700px) {
  .nz-checkout__fields,
  .nz-account .woocommerce-EditAccountForm,
  .nz-account .woocommerce-address-fields__field-wrapper,
  .nz-account .woocommerce-form-login,
  .nz-account .woocommerce-form-register { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .nz-checkout__fields > *,
  .nz-account .woocommerce-EditAccountForm > *,
  .nz-account .woocommerce-address-fields__field-wrapper > *,
  .nz-account .woocommerce-form-login > *,
  .nz-account .woocommerce-form-register > * { grid-column: 1 / -1; }
  :is(.nz-checkout, .nz-account) .form-row-first { grid-column: 1; }
  :is(.nz-checkout, .nz-account) .form-row-last { grid-column: 2; }
  .nz-account .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
}

/* ---------- Notices (classic): session notices, AJAX notice groups, coupon errors ---------- */
.nz .woocommerce-notices-wrapper:empty { display: none; }
:is(.nz-cart, .nz-checkout, .nz-account) .woocommerce-message,
:is(.nz-cart, .nz-checkout, .nz-account) .woocommerce-info,
:is(.nz-cart, .nz-checkout, .nz-account) .woocommerce-error { display: flex; flex-direction: column; gap: 6px; margin: 0 0 24px; padding: 14px 18px; list-style: none; background: var(--nz-bg-light); border: 1px solid var(--nz-line-linen); border-left: 3px solid var(--nz-text); border-radius: var(--nz-radius); font-size: 1rem; line-height: 1.5; color: var(--nz-text); }
:is(.nz-cart, .nz-checkout, .nz-account) .woocommerce-error { border-left-color: var(--nz-accent-dark); }
:is(.nz-cart, .nz-checkout, .nz-account) .woocommerce-message { border-left-color: var(--wp--preset--color--green); }
:is(.nz-cart, .nz-checkout, .nz-account) .woocommerce-info { border-left-color: var(--nz-accent); }
:is(.nz-cart, .nz-checkout, .nz-account) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) li { margin: 0; }
:is(.nz-cart, .nz-checkout, .nz-account) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a { font-weight: 700; border-bottom: 1px solid currentColor; }
:is(.nz-cart, .nz-checkout, .nz-account) :is(.woocommerce-message, .woocommerce-info) .button,
:is(.nz-cart, .nz-checkout, .nz-account) :is(.woocommerce-message, .woocommerce-info) .restore-item { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: transparent; color: var(--nz-text); border: 1px solid var(--nz-text); border-radius: var(--nz-radius); font-size: 0.9375rem; font-weight: 700; text-decoration: none; }
:is(.nz-cart, .nz-checkout, .nz-account) :is(.woocommerce-message, .woocommerce-info) .button:hover { background: var(--nz-text); color: var(--nz-bg-light); }
.nz-checkout .woocommerce-NoticeGroup { margin: 0 0 24px; }
.nz-checkout .woocommerce-NoticeGroup-checkout { grid-column: 1 / -1; }
/* Coupon errors (cart.js and checkout.js print them under the input). */
.nz .coupon-error-notice { display: block; margin: 6px 0 0; font-size: 0.9375rem; color: var(--nz-accent-dark); }
.nz #coupon_code.has-error { border-color: var(--nz-accent-dark); box-shadow: inset 0 0 0 1px var(--nz-accent-dark); }
/* blockUI overlays (cart.js, checkout.js) on cream, no border. */
.nz .blockUI.blockOverlay { background: var(--nz-bg) !important; opacity: 0.6 !important; border-radius: var(--nz-radius); }

/* ---------- Quantity stepper in the cart (44px targets, same element as the product page) ---------- */
.nz-cart .nz-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--nz-text); border-radius: var(--nz-radius); background: var(--nz-bg-light); }
.nz-cart .nz-qty__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--nz-text); cursor: pointer; transition: background-color 150ms; }
.nz-cart .nz-qty__btn:hover { background: var(--nz-bg-linen); }
.nz-cart .nz-qty__btn[aria-disabled="true"] { color: var(--nz-muted); background: transparent; cursor: default; }
.nz-cart .nz-qty__btn:focus-visible { outline-offset: -3px; }
.nz-cart .nz-qty__input { width: 48px; min-height: 44px; padding: 0; border: 0; border-inline: 1px solid var(--nz-line); border-radius: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.nz-cart .nz-qty__input::-webkit-outer-spin-button,
.nz-cart .nz-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nz-cart .nz-qty__input:focus-visible { outline-offset: -3px; }
.nz-cart-item__qty-fixed { font-size: 0.9375rem; color: var(--nz-text-2); }

/* ---------- Cart layout: items + actions left, totals card right from 1000px ---------- */
.nz-cart__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.nz-cart__form,
.nz-cart__aside { min-width: 0; }
@media (min-width: 1000px) {
  .nz-cart__layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 64px; align-items: start; }
  /* Capped at the viewport and scrollable (as the filters column), so "Przejdź do kasy" stays reachable on
     short screens (1366x768); the 4px padding keeps focus rings inside the scroll box. */
  .nz-cart__aside { position: sticky; top: calc(var(--nz-header-offset, 0px) + 24px); max-height: calc(100dvh - 48px - var(--nz-header-offset, 0px)); transition: top 250ms ease; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 4px; margin: -4px; }
}

/* Items: one grid row per product (image 96px, name + price, quantity, line total, remove). */
.nz-cart__items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--nz-line); }
.nz-cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "media body remove" "media qty total"; column-gap: 16px; row-gap: 12px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--nz-line); }
.nz-cart-item__media { grid-area: media; width: 96px; }
.nz-cart-item__media a { display: block; }
.nz-cart-item__img { width: 96px; height: 96px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--nz-radius); background: var(--wp--preset--color--card); }
.nz-cart-item__body { grid-area: body; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nz-cart-item__brand { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nz-accent-dark); }
.nz-cart-item__name { font-family: var(--nz-serif); font-size: 1.25rem; line-height: 1.15; color: var(--nz-text); text-wrap: pretty; overflow-wrap: anywhere; }
a.nz-cart-item__name:hover { color: var(--nz-accent-dark); }
.nz-cart-item__body .variation,
.nz-cart-item__note { margin: 0; font-size: 0.875rem; color: var(--nz-text-2); }
.nz-cart-item__body .variation { display: flex; flex-wrap: wrap; gap: 0 8px; }
.nz-cart-item__body .variation p { margin: 0; display: inline; }
.nz-cart-item__price { margin: 0; font-size: 0.9375rem; color: var(--nz-text-2); }
.nz-cart-item__price del { font-weight: 400; color: var(--nz-muted); }
.nz-cart-item__price ins { text-decoration: none; }
.nz-cart-item__qty { grid-area: qty; align-self: center; }
.nz-cart-item__total { grid-area: total; align-self: center; justify-self: end; margin: 0; font-family: var(--nz-sans); font-size: 1.125rem; font-weight: 600; line-height: 1; color: var(--nz-text); white-space: nowrap; }
.nz-cart-item__remove { grid-area: remove; justify-self: end; }
.nz-cart-item__remove-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px -12px 0 0; border-radius: var(--nz-radius); color: var(--nz-text-2); transition: color 150ms, background-color 150ms; }
.nz-cart-item__remove-link:hover { color: var(--nz-accent-dark); background: var(--nz-bg-linen); }
.nz-cart-item__remove-link:focus-visible { outline: var(--nz-focus); outline-offset: 0; }
/* Below 480px the 96px image and the line total would leave the stepper (138px) about 80px: an 80px
   image, the stepper on its own row under image and name, the total right of it. Four columns, so
   the name spans the third one too and only the narrow remove column is taken from it. */
@media (max-width: 479px) {
  .nz-cart-item { grid-template-columns: 80px minmax(0, 1fr) auto 44px; grid-template-areas: "media body body remove" "qty qty total total"; column-gap: 12px; }
  .nz-cart-item__media { width: 80px; }
  .nz-cart-item__img { width: 80px; height: 80px; }
}
/* Phones and tablets: the unit price under the name repeats the line total next to the stepper,
   so only the total stays; from 1000px both columns have room and the unit price shows again. */
@media (max-width: 999px) {
  .nz-cart-item__price { display: none; }
}
@media (min-width: 1000px) {
  .nz-cart-item { grid-template-columns: 96px minmax(0, 1fr) 140px 120px 44px; grid-template-areas: "media body qty total remove"; column-gap: 24px; align-items: center; padding: 24px 0; }
  .nz-cart-item__name { font-size: 1.5rem; }
  .nz-cart-item__total { font-size: 1.25rem; }
  .nz-cart-item__remove-link { margin: 0; }
}

/* Actions row: coupon inline on the left, update button on the right (visible only while a change is pending, see cart.js + checkout.js). */
.nz-cart__actions { display: flex; flex-direction: column; gap: 16px; padding: 20px 0 0; }
/* Coupon folded under its question (<details>), as on the checkout; open while a coupon is applied. */
/* Block, not flex: Safari does not lay out <details> as a flex container. */
.nz-cart__coupon { display: block; }
.nz-cart__coupon-toggle { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 44px; font-size: 1rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; list-style: none; }
.nz-cart__coupon-toggle::-webkit-details-marker { display: none; }
.nz-cart__coupon-toggle::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 150ms; }
.nz-cart__coupon[open] > .nz-cart__coupon-toggle::after { transform: translateY(2px) rotate(-135deg); }
.nz-cart__coupon-row { display: flex; gap: 8px; margin-top: 8px; }
.nz-cart .nz-cart__coupon-input { flex: 1 1 auto; min-width: 0; width: auto; min-height: 50px; padding: 0 14px; background: var(--nz-bg-light); color: var(--nz-text); border: 1px solid var(--nz-muted); border-radius: var(--nz-radius); font: inherit; font-size: 1rem; text-transform: uppercase; }
.nz-cart .nz-cart__coupon-input:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--nz-accent); box-shadow: inset 0 0 0 1px var(--nz-accent); }
.nz-cart .nz-cart__coupon-button { flex: 0 0 auto; width: auto; min-height: 50px; padding: 0 20px; font-size: 1rem; }
.nz-cart .nz-cart__update { align-self: flex-start; width: auto; min-height: 50px; padding: 0 20px; font-size: 1rem; }
.nz-cart .nz-cart__update[disabled] { display: none; }
@media (min-width: 700px) {
  .nz-cart__actions { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .nz-cart__coupon { flex: 0 1 420px; }
}

/* ---------- Sticky checkout bar (cart, phones; sticky-checkout.js) ----------
   The total and "Przejdź do kasy" at the bottom while the button of the totals card is out of view;
   above the cookie bar as the buy bar of the product page (product.css). */
.nz-sticky-checkout { position: fixed; left: 0; right: 0; bottom: var(--nz-consent-bar-height, 0px); z-index: 35; padding: 10px var(--nz-gutter) calc(10px + max(0px, env(safe-area-inset-bottom, 0px) - var(--nz-consent-bar-height, 0px))); background: var(--nz-bg-light); border-top: 1px solid var(--nz-line-linen); transform: translateY(100%); visibility: hidden; transition: transform 200ms ease, visibility 0s linear 200ms; }
.nz-sticky-checkout.is-visible { transform: none; visibility: visible; transition-delay: 0s, 0s; }
.nz-sticky-checkout__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nz-sticky-checkout__info { display: flex; flex-direction: column; min-width: 0; }
.nz-sticky-checkout__label { font-size: 0.875rem; font-weight: 600; color: var(--nz-text-2); }
.nz-sticky-checkout__total { font-family: var(--nz-sans); font-size: 1.25rem; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.nz-sticky-checkout__total small { display: none; }
.nz-sticky-checkout .nz-sticky-checkout__button { flex: none; width: auto; min-height: 50px; padding: 0 22px; font-size: 1rem; }
@media (max-width: 999px) {
  html.nz-has-sticky-checkout { scroll-padding-bottom: calc(120px + var(--nz-consent-bar-height, 0px)) !important; }
  html.nz-has-sticky-checkout .nz-footer { padding-bottom: 112px; }
}
@media (min-width: 1000px) {
  .nz-sticky-checkout { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nz-sticky-checkout { transition: none; }
}

/* Totals card on linen. */
.nz-totals { padding: 24px; background: var(--nz-bg-linen); border-radius: var(--nz-radius); }
.nz-totals__title { margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--nz-line-linen); font-size: 1.75rem; line-height: 1.1; }
.nz-totals__table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.nz-totals__table th,
.nz-totals__table td { padding: 10px 0; border: 0; text-align: left; vertical-align: top; }
.nz-totals__table th { font-weight: 600; padding-right: 16px; }
.nz-totals__table td { text-align: right; white-space: nowrap; }
.nz-totals__row--discount td { color: var(--nz-accent-dark); }
/* "[Usuń]" next to a coupon: a 44px target, underlined text instead of a bottom border on the taller box. */
.nz-totals__row--discount .woocommerce-remove-coupon { display: inline-flex; align-items: center; min-height: 44px; margin: -12px -8px -12px 0; padding-inline: 8px; font-size: 0.875rem; font-weight: 700; color: var(--nz-text-2); text-decoration: underline; text-underline-offset: 3px; vertical-align: middle; }
.nz-totals__row--total th,
.nz-totals__row--total td { padding-top: 16px; border-top: 1px solid var(--nz-line-linen); }
.nz-totals__row--total th { font-weight: 700; font-size: 1.0625rem; }
.nz-totals__row--total td { font-family: var(--nz-sans); font-size: 1.375rem; font-weight: 600; line-height: 1; }
.nz-totals__row--total td small { display: block; margin-top: 6px; font-family: var(--nz-sans); font-size: 0.8125rem; font-weight: 400; color: var(--nz-text-2); }
.nz-totals__proceed { margin: 20px 0 0; }
.nz .nz-totals__checkout { width: 100%; }
.nz-totals .woocommerce-shipping-destination,
.nz-totals .woocommerce-shipping-calculator { display: none; }

/* Free shipping line with a progress bar (cart totals card). */
.nz-free-shipping { margin: 0 0 20px; }
.nz-free-shipping__text { margin: 0 0 8px; font-size: 0.9375rem; line-height: 1.4; color: var(--nz-text-2); }
.nz-free-shipping__text strong { color: var(--nz-text); }
.nz-free-shipping__bar { height: 6px; overflow: hidden; border-radius: 3px; background: var(--nz-line-linen); }
.nz-free-shipping__fill { display: block; height: 100%; background: var(--nz-accent); border-radius: 3px; transition: width 300ms; }
.nz-free-shipping--reached .nz-free-shipping__text { color: var(--nz-accent-dark); font-weight: 600; }
.nz-free-shipping--reached .nz-free-shipping__fill { background: var(--wp--preset--color--green, var(--nz-accent-dark)); }

/* Shipping methods list (cart totals and checkout review): radio cards, name left, cost right. */
.nz-shipping__cell { padding: 10px 0 !important; text-align: left !important; white-space: normal !important; }
.nz-shipping__title { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.nz-shipping__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nz-shipping__item { position: relative; }
.nz-shipping__radio { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin: 0; transform: translateY(-50%); accent-color: var(--nz-text); cursor: pointer; }
.nz-shipping__label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 16px 14px 52px; background: var(--nz-bg-light); border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); font-size: 1rem; line-height: 1.35; cursor: pointer; transition: border-color 150ms, box-shadow 150ms; }
.nz-shipping__item > input[type="hidden"] + .nz-shipping__label { padding-left: 16px; cursor: default; }
.nz-shipping__label:hover { border-color: var(--nz-muted); }
.nz-shipping__radio:checked + .nz-shipping__label { border-color: var(--nz-text); box-shadow: inset 0 0 0 1px var(--nz-text); background: var(--nz-bg-linen); }
.nz-shipping__radio:focus-visible + .nz-shipping__label { outline: var(--nz-focus); outline-offset: 2px; }
.nz-shipping__name { font-weight: 600; }
.nz-shipping__cost { flex: 0 0 auto; font-family: var(--nz-sans); font-size: 1.0625rem; font-weight: 600; white-space: nowrap; }
.nz-shipping__note,
.nz-shipping__contents { margin: 0; font-size: 0.9375rem; color: var(--nz-text-2); }

/* Cross-sells: full width under the layout, shop product cards. */
.nz-cross-sells { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--nz-line); }
.nz-cross-sells__title { margin: 0 0 24px; font-size: 1.75rem; }
@media (min-width: 1000px) { .nz-cross-sells { margin-top: 72px; } .nz-cross-sells__title { font-size: 2rem; } }

/* Empty cart. */
.nz-cart-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 48ch; padding: 8px 0 24px; }
.nz-cart-empty__title { margin: 0; font-family: var(--nz-serif); font-size: 1.75rem; line-height: 1.1; }
.nz-cart-empty__text { margin: 0; color: var(--nz-text-2); }
.nz-cart-empty .nz-cart-empty__cta { margin-top: 12px; }

/* ---------- Checkout ---------- */
/* Collapsible lines above the form (login, coupon); checkout.js toggles the forms from the links. */
.nz-checkout__toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 8px; font-size: 1rem; }
.nz-checkout__toggle-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.nz-checkout__toggle-link:hover { color: var(--nz-accent-dark); }
.nz-checkout__panel,
.nz-checkout__login form.woocommerce-form-login { margin: 0 0 24px; padding: 20px; background: var(--nz-bg-light); border: 1px solid var(--nz-line); border-radius: var(--nz-radius); }
.js .nz-checkout__coupon,
.js .nz-checkout__login:not(.is-open) form.woocommerce-form-login { display: none; }
.nz-checkout__coupon { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.nz-checkout .nz-checkout__coupon-field { flex: 1 1 240px; margin: 0; }
.nz-checkout .nz-checkout__coupon-submit { flex: 0 0 auto; margin: 0; }
.nz-checkout .nz-checkout__coupon-submit .nz-button { width: auto; min-height: 56px; }
.nz-checkout .nz-checkout__coupon-field .input-text { text-transform: uppercase; }
.nz-checkout .woocommerce-form-login .form-row { margin-bottom: 16px; }
.nz-checkout .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0; }
.nz-checkout .woocommerce-form-login__submit { min-height: 56px; }
.nz-checkout .woocommerce-form-login .lost_password { margin: 12px 0 0; font-size: 0.9375rem; }
.nz-checkout .woocommerce-form-login .lost_password a { font-weight: 700; border-bottom: 1px solid currentColor; }
.nz-checkout .woocommerce-form-login .clear { display: none; }
@media (min-width: 700px) {
  .nz-checkout .woocommerce-form-login { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .nz-checkout .woocommerce-form-login > * { grid-column: 1 / -1; }
  .nz-checkout .woocommerce-form-login .form-row-first { grid-column: 1; }
  .nz-checkout .woocommerce-form-login .form-row-last { grid-column: 2; }
}

/* Layout: details left, summary card right from 1000px. The card is sticky; when it is taller
   than the viewport checkout.js lowers --nz-sticky-top below zero so its bottom (place order
   button) stops at the viewport bottom instead of being out of reach. */
.nz-checkout__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 16px; }
.nz-checkout__main,
.nz-checkout__aside { min-width: 0; }
.nz-checkout__details + .nz-checkout__details { margin-top: 0; }
/* Numbered steps: three cards in the left column (1 Twoje dane, 2 Dostawa, 3 Płatność). */
.nz-checkout__form { counter-reset: nz-step; }
.nz-checkout__card-title { counter-increment: nz-step; }
.nz-checkout__card-title::before { content: counter(nz-step); display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--nz-bg-linen); color: var(--nz-text); font-family: var(--nz-sans); font-size: 1rem; font-weight: 600; line-height: 1; vertical-align: 0.1em; }
/* The cards of the left column. */
.nz-checkout__card { margin: 0 0 20px; padding: 24px; background: var(--nz-bg-light); border: 1px solid var(--nz-line); border-radius: var(--nz-radius); }
.nz-checkout__card .nz-checkout__section { margin: 0 0 16px; padding: 0; border-bottom: 0; }
.nz-checkout__card .nz-checkout__section:last-child { margin-bottom: 0; }
.nz-checkout__card > .nz-checkout__fields--address { margin-top: 20px; }
.nz-checkout__card .nz-checkout__account { margin-top: 4px; }
/* The "Dostawa" title above the radio list is the card title now; the list keeps it as its accessible name. */
.nz-checkout__card .nz-shipping__title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* Address fields fold away for a pickup point (checkout.js toggles .is-collapsed, the region is inert then).
   Grid rows 1fr to 0fr animate the height without measuring; the inner padding keeps focus rings from being clipped. */
.nz-address-collapse { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 320ms ease, opacity 240ms ease 80ms, visibility 0s; }
.nz-address-collapse__inner { min-height: 0; overflow: hidden; margin: -4px; padding: 4px; }
.nz-address-collapse.is-collapsed { grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows 320ms ease, opacity 200ms ease, visibility 0s 320ms; }
/* The point picker row of Polkurier is inserted with every shipping box refresh: it eases in. */
.nz-shipping-box .polkurier-shippment { animation: nz-checkout-in 300ms ease both; }
@keyframes nz-checkout-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nz-address-collapse,
  .nz-address-collapse.is-collapsed { transition: none; }
  .nz-shipping-box .polkurier-shippment { animation: none; }
}
.nz-shipping-table { width: 100%; border-collapse: collapse; }
.nz-shipping-table td { padding: 0; border: 0; }
@media (max-width: 699px) { .nz-checkout__card { padding: 18px; } }
.nz-checkout__hint { margin: -8px 0 20px; font-size: 0.9375rem; color: var(--nz-text-2); }
@media (min-width: 1000px) {
  .nz-checkout__form { grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); gap: 64px; align-items: start; }
  .nz-checkout__aside { position: sticky; top: calc(var(--nz-sticky-top, 24px) + var(--nz-header-offset, 0px)); transition: top 250ms ease; }
}

/* Sections of the details column. */
.nz-checkout__section { margin: 0 0 32px; padding: 0 0 32px; border-bottom: 1px solid var(--nz-line); }
.nz-checkout__section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.nz-checkout__section-title { margin: 0 0 20px; font-size: 1.75rem; line-height: 1.1; }
.nz-checkout__section--account { margin-top: -16px; }
.nz-checkout .nz-checkbox-row { margin: 0 0 16px; }
/* Invoice: boxed checkbox row, company and NIP shown by checkout.js once ticked (visible without JS). */
.nz-checkout .nz-invoice-toggle { margin-top: 8px; padding: 2px 16px; background: var(--nz-bg-light); border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); }
.nz-checkout .nz-invoice-toggle label.checkbox { padding: 12px 0; }
.nz-checkout .nz-invoice-field { margin-top: 16px; }
.js .nz-checkout .nz-invoice-field:not(.is-visible) { display: none; }
.nz-checkout .nz-invoice-field.is-visible label .optional { display: none; }
.nz-checkout .nz-invoice-field.is-visible label::after { content: " *"; color: var(--nz-accent-dark); }
/* Shipping address fields: revealed by checkout.js (is-open keeps them visible before it runs). */
.js .nz-checkout .shipping_address:not(.is-open) { display: none; }
.nz-checkout .shipping_address { padding-top: 8px; }
.nz-checkout #shipping_state_field { display: none; }

/* Summary card. */
.nz-checkout__aside { padding: 24px; background: var(--nz-bg-linen); border-radius: var(--nz-radius); }
.nz-checkout__aside-title { margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--nz-line-linen); font-size: 1.75rem; line-height: 1.1; }
.nz-review { width: 100%; border-collapse: collapse; font-size: 1rem; }
.nz-review th,
.nz-review td { padding: 10px 0; border: 0; text-align: left; vertical-align: top; }
.nz-review__items .nz-review__item { border-bottom: 1px solid var(--nz-line-linen); }
.nz-review__items .nz-review__item:last-child td { padding-bottom: 16px; }
.nz-review__items + .nz-review__totals tr:first-child th,
.nz-review__items + .nz-review__totals tr:first-child td { padding-top: 16px; }
.nz-review__product { display: flex; align-items: flex-start; gap: 16px; padding-right: 16px !important; }
.nz-review__media { position: relative; flex: 0 0 64px; }
.nz-review__img { width: 64px; height: 64px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--nz-radius); background: var(--wp--preset--color--card); }
.nz-review__badge { position: absolute; top: -8px; right: -8px; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--nz-text); color: var(--nz-bg-light); font-size: 0.8125rem; font-weight: 700; line-height: 1; }
.nz-review__body { display: block; min-width: 0; padding-top: 4px; }
.nz-review__name { display: block; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
/* The quantity badge on the thumbnail carries it visually; the text stays for screen readers. */
.nz-review__qty { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.nz-review__body .variation { margin: 4px 0 0; font-size: 0.875rem; color: var(--nz-text-2); }
.nz-review__body .variation p { margin: 0; display: inline; }
.nz-review__total { padding-top: 14px !important; text-align: right; font-family: var(--nz-sans); font-size: 1.0625rem; font-weight: 600; white-space: nowrap; }
.nz-review__totals th { font-weight: 600; padding-right: 16px; }
.nz-review__totals td { text-align: right; white-space: nowrap; }
.nz-review__totals .nz-totals__row--discount td { color: var(--nz-accent-dark); }
.nz-review__totals .nz-totals__row--discount .woocommerce-remove-coupon { display: inline-flex; align-items: center; min-height: 44px; margin: -12px -8px -12px 0; padding-inline: 8px; font-size: 0.875rem; font-weight: 700; color: var(--nz-text-2); text-decoration: underline; text-underline-offset: 3px; vertical-align: middle; }
.nz-review__totals .nz-totals__row--total th,
.nz-review__totals .nz-totals__row--total td { padding-top: 16px; border-top: 1px solid var(--nz-line-linen); }
.nz-review__totals .nz-totals__row--total th { font-weight: 700; font-size: 1.0625rem; }
.nz-review__totals .nz-totals__row--total td { font-family: var(--nz-sans); font-size: 1.375rem; font-weight: 600; line-height: 1; }
.nz-review__totals .nz-totals__row--total td small { display: block; margin-top: 6px; font-family: var(--nz-sans); font-size: 0.8125rem; font-weight: 400; color: var(--nz-text-2); }

/* Polkurier point picker row (woocommerce_review_order_after_shipping, one full-width cell). */
.nz-checkout .polkurier-shippment td { padding: 0 0 12px !important; text-align: left !important; white-space: normal !important; }
.nz-checkout .polkurier-shippment-label { display: none; }
.nz-checkout .polkurier-shippment-container { display: grid; gap: 10px; padding: 16px; background: var(--nz-bg-light); border: 1px dashed var(--nz-muted); border-radius: var(--nz-radius); }
.nz-checkout .polkurier-shippment-parcel-machine-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 0 20px; background: transparent; color: var(--nz-text); border: 1px solid var(--nz-text); border-radius: var(--nz-radius); font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; transition: background-color 150ms, color 150ms; }
.nz-checkout .polkurier-shippment-parcel-machine-button:hover { background: var(--nz-text); color: var(--nz-bg-light); }
.nz-checkout .polkurier-shippment-parcel-machine-button:focus-visible { outline: var(--nz-focus); outline-offset: 3px; }
/* Map files loading after the first click (nz_core_polkurier_lazy_map(), core plugin): further clicks wait. */
.nz-checkout .polkurier-shippment-parcel-machine-button[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.nz-checkout #polkurier-shipping-label-container { font-size: 0.9375rem; line-height: 1.45; }
.nz-checkout #polkurier-shipping-label-container.hidden { display: none; }
.nz-checkout #polkurier-shipping-label-point-id { font-weight: 700; }
.nz-checkout #polkurier-shipping-label-container .italic { font-style: normal; color: var(--nz-text-2); }

/* Payment methods: radio cards with the gateway fields underneath. */
.nz-payment { margin-top: 0; }
.nz-payment__title { margin: 0 0 20px; }
.nz-payment__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nz-payment__method { position: relative; background: var(--nz-bg-light); border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); transition: border-color 150ms, box-shadow 150ms; }
.nz-payment__method:hover { border-color: var(--nz-muted); }
.nz-payment__method:has(.nz-payment__radio:checked) { border-color: var(--nz-text); box-shadow: inset 0 0 0 1px var(--nz-text); background: var(--nz-bg-linen); }
.nz-payment__method:has(.nz-payment__radio:focus-visible) { outline: var(--nz-focus); outline-offset: 2px; }
.nz-payment__radio { position: absolute; left: 16px; top: 17px; width: 22px; height: 22px; margin: 0; accent-color: var(--nz-text); cursor: pointer; }
.nz-payment__label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 16px 14px 52px; font-size: 1rem; font-weight: 600; line-height: 1.35; cursor: pointer; }
.nz-payment__icon { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.nz-payment__icon img { display: inline-block; width: auto; max-height: 24px; max-width: 72px; }
.nz-payment .payment_box { margin: 0; padding: 0 16px 16px 52px; font-size: 0.9375rem; line-height: 1.5; color: var(--nz-text-2); }
.nz-payment .payment_box p { margin: 0 0 8px; }
.nz-payment .payment_box p:last-child { margin-bottom: 0; }
.nz-payment .payment_box fieldset { margin: 0; padding: 0; border: 0; }
@media (max-width: 699px) { .nz-payment .payment_box { padding-left: 16px; } }
/* Paynow: BLIK code, bank and wallet tiles, processing info. */
.nz-payment .paynow-blik-white-label .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.nz-payment .paynow-blik-white-label label { margin: 0; font-weight: 600; color: var(--nz-text); }
.nz-payment .paynow-blik-white-label input[type="text"],
.nz-payment .paynow-blik-white-label #paynow_blik_code { width: 100%; max-width: 200px; min-height: 56px; padding: 0 16px; background: var(--nz-bg-light); color: var(--nz-text); border: 1px solid var(--nz-muted); border-radius: var(--nz-radius); font: inherit; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.2em; }
.nz-payment .paynow-blik-white-label #paynow_blik_code:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--nz-accent); box-shadow: inset 0 0 0 1px var(--nz-accent); }
.nz-payment .paynow-payment-option-pbls { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin: 8px 0 0; }
.nz-payment .paynow-payment-option-pbl { position: relative; display: block; width: auto; margin: 0; }
.nz-payment .paynow-payment-option-pbl input[type="radio"] { position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; margin: 0; accent-color: var(--nz-text); }
.nz-payment .paynow-payment-option-pbl label { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 12px 8px 8px; background: var(--nz-bg-light); border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); cursor: pointer; }
.nz-payment .paynow-payment-option-pbl label img { max-height: 32px; max-width: 100%; width: auto; }
.nz-payment .paynow-payment-option-pbl input[type="radio"]:checked + label { border-color: var(--nz-text); box-shadow: inset 0 0 0 1px var(--nz-text); }
.nz-payment .paynow-payment-option-pbl input[type="radio"]:focus-visible + label { outline: var(--nz-focus); outline-offset: 2px; }
.nz-payment .paynow-payment-option-pbl.disabled { opacity: 0.4; }
.nz-payment .paynow-data-processing-info { margin-top: 12px; font-size: 0.8125rem; line-height: 1.45; color: var(--nz-text-2); }
.nz-payment .paynow-data-processing-info .expand { cursor: pointer; text-decoration: underline; }

/* Secondary payment methods behind a disclosure, order note behind another (same look). */
.nz-payment__more { margin-top: 12px; }
.nz-checkout__note { margin-top: 4px; }
.nz-payment__more > summary,
.nz-checkout__note > summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; font-weight: 700; color: var(--nz-text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.nz-payment__more > summary:focus-visible,
.nz-checkout__note > summary:focus-visible { outline: var(--nz-focus); outline-offset: 2px; }
.nz-payment__more > .nz-payment__list { margin-top: 8px; }
.nz-checkout__note > .nz-checkout__fields { margin-top: 12px; }

/* Terms and the place order button. */
.nz-payment__place-order { margin: 24px 0 0; padding: 0; }
.nz-terms { margin: 0 0 20px; }
.nz-terms .woocommerce-privacy-policy-text { font-size: 0.875rem; line-height: 1.5; color: var(--nz-text-2); }
.nz-terms .woocommerce-privacy-policy-text p { margin: 0 0 12px; }
.nz-terms .woocommerce-privacy-policy-text a { font-weight: 700; border-bottom: 1px solid currentColor; }
.nz-checkout .nz-terms__row { margin: 0; }
.nz-checkout .nz-terms__row label.checkbox { padding: 6px 0; font-size: 0.9375rem; }
.nz-checkout .nz-terms__row a { font-weight: 700; border-bottom: 1px solid currentColor; }
.nz-checkout .nz-terms__row .required { color: var(--nz-accent-dark); }
.nz-checkout .nz-terms__row.woocommerce-invalid label.checkbox { color: var(--nz-accent-dark); }
.nz-checkout .nz-terms__row.woocommerce-invalid input[type="checkbox"] { outline: 2px solid var(--nz-accent-dark); outline-offset: 2px; }
.nz-checkout .nz-payment__submit { width: 100%; min-height: 58px; }
.nz-checkout .nz-payment__submit:disabled { opacity: 0.55; cursor: not-allowed; }
.nz-payment__place-order noscript { display: block; margin: 0 0 16px; font-size: 0.9375rem; color: var(--nz-text-2); }
.nz-checkout .wc-block-components-notice-banner { margin: 0 0 16px; }

/* ---------- Order received (thank-you page) ---------- */
.nz-order-received .woocommerce-notice--success { margin: 0 0 24px; font-family: var(--nz-serif); font-size: 1.75rem; line-height: 1.2; }
.nz-order-received .woocommerce-notice--error { margin: 0 0 16px; padding: 16px 20px; background: var(--nz-bg-light); border: 1px solid var(--nz-line-linen); border-left: 3px solid var(--nz-accent-dark); border-radius: var(--nz-radius); }
.nz-thankyou__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nz-order-received .woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; margin: 0 0 24px; padding: 24px; list-style: none; background: var(--nz-bg-linen); border-radius: var(--nz-radius); }
.nz-order-received .woocommerce-order-overview li { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--text-3); overflow-wrap: anywhere; }
.nz-order-received .woocommerce-order-overview li strong { display: block; margin-top: 6px; font-family: var(--nz-sans); font-size: 1.1875rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--nz-text); }
.nz-thankyou__next { margin: 0 0 40px; padding: 24px; background: var(--nz-bg-light); border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); }
.nz-thankyou__next-title { margin: 0 0 12px; font-size: 1.5rem; }
.nz-thankyou__steps { margin: 0; padding: 0 0 0 1.25em; font-size: 1rem; line-height: 1.55; }
.nz-thankyou__steps li { margin: 0 0 6px; }
.nz-thankyou__steps li::marker { font-weight: 700; color: var(--nz-accent-dark); }
.nz-thankyou__email { margin: 16px 0 0; font-size: 0.9375rem; color: var(--nz-text-2); }
.nz-order-received .woocommerce-bacs-bank-details { margin: 0 0 40px; padding: 24px; border: 1px solid var(--nz-line); border-radius: var(--nz-radius); background: var(--nz-bg-light); }
.nz-order-received .woocommerce-bacs-bank-details h2,
.nz-order-received .wc-bacs-bank-details-heading { font-size: 1.5rem; margin-bottom: 12px; }
.nz-order-received .wc-bacs-bank-details-account-name { font-size: 1.25rem; margin-bottom: 8px; }
.nz-order-received .wc-bacs-bank-details { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nz-order-received .wc-bacs-bank-details li { font-size: 1rem; }
.nz-order-received .wc-bacs-bank-details li strong { font-weight: 700; }
.nz-order-received .woocommerce-order-details,
.nz-order-received .woocommerce-customer-details,
.nz-account .woocommerce-order-details,
.nz-account .woocommerce-customer-details { margin: 0 0 40px; }

/* Order table (thank-you page and "Moje konto > Zamówienie"). */
.nz .woocommerce-order-details__title,
.nz .woocommerce-column__title,
.nz .woocommerce-customer-details > h2 { font-size: 1.75rem; margin: 0 0 16px; }
.nz .woocommerce-table--order-details { width: 100%; border-collapse: collapse; font-size: 1rem; }
.nz .woocommerce-table--order-details th,
.nz .woocommerce-table--order-details td { padding: 14px 0; border-bottom: 1px solid var(--nz-line); text-align: left; vertical-align: top; }
.nz .woocommerce-table--order-details thead th { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--text-3); }
.nz .woocommerce-table--order-details th:last-child,
.nz .woocommerce-table--order-details td:last-child { text-align: right; padding-left: 16px; white-space: nowrap; }
.nz .woocommerce-table--order-details .woocommerce-table__product-name a { font-weight: 600; }
.nz .woocommerce-table--order-details .product-quantity { color: var(--nz-text-2); }
.nz .woocommerce-table--order-details tfoot th { font-weight: 600; }
.nz .woocommerce-table--order-details tfoot td > div { display: inline-block; text-align: right; white-space: normal; font-size: 0.9375rem; }
/* Totals rows hold text too ("Płacę przelewem tradycyjnym", "14,40 zł przez Kurier InPost"): they wrap,
   only the amounts stay on one line, so the table fits a 320px viewport (WCAG 1.4.10). */
.nz .woocommerce-table--order-details tfoot td:last-child { white-space: normal; overflow-wrap: break-word; }
.nz .woocommerce-table--order-details .woocommerce-Price-amount { white-space: nowrap; }
.nz .woocommerce-table--order-details tfoot tr:last-child th,
.nz .woocommerce-table--order-details tfoot tr:last-child td { border-bottom: 0; font-family: var(--nz-sans); font-size: 1.1875rem; font-weight: 600; }
.nz .woocommerce-table--order-details tfoot tr:last-child td small { font-size: 0.8125rem; font-weight: 400; }
.nz .woocommerce-table--order-details .wc-item-meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: 0.875rem; color: var(--nz-text-2); }
.nz .order-actions--heading { font-size: 1.25rem; margin: 24px 0 12px; }

/* Customer details (addresses, e-mail, phone, invoice fields printed by the core plugin). */
.nz .woocommerce-customer-details address { font-style: normal; line-height: 1.6; }
.nz .woocommerce-customer-details .woocommerce-customer-details--phone,
.nz .woocommerce-customer-details .woocommerce-customer-details--email { display: block; margin-top: 4px; }
.nz .woocommerce-columns--addresses { display: grid; gap: 24px; }
@media (min-width: 700px) { .nz .woocommerce-columns--addresses { grid-template-columns: 1fr 1fr; } }
.nz .wc-block-order-confirmation-additional-fields-wrapper { margin: 0 0 40px; }
.nz .wc-block-order-confirmation-additional-fields-wrapper h2 { font-size: 1.75rem; margin: 0 0 16px; }
.nz .wc-block-components-additional-fields-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--nz-line); font-size: 1rem; }
.nz .wc-block-components-additional-fields-list dt { font-weight: 600; margin: 0; }
.nz .wc-block-components-additional-fields-list dd { margin: 0; }
.nz .woocommerce-column .wc-block-components-additional-fields-list { border-top: 0; padding-top: 0; margin-top: 12px; }

/* ---------- Account pages ---------- */
.nz-account .woocommerce { display: grid; gap: 32px; }
.nz-account .woocommerce > * { min-width: 0; }
.nz-account .woocommerce-MyAccount-content { min-width: 0; }
.nz-account .woocommerce-MyAccount-content > h2,
.nz-account .woocommerce-MyAccount-content > h3 { font-size: 1.75rem; }
@media (min-width: 1000px) {
  .nz-account--logged-in .woocommerce { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
}

/* Navigation: horizontal scrollable list on mobile, card on desktop. */
.nz-account__menu { display: flex; gap: 8px; margin: 0; padding: 0 0 6px; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.nz-account__menu::-webkit-scrollbar { display: none; }
.nz-account__menu li { flex: 0 0 auto; scroll-snap-align: start; }
.nz-account__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); font-size: 0.9375rem; font-weight: 600; white-space: nowrap; color: var(--nz-text); transition: border-color 150ms, background-color 150ms, color 150ms; }
.nz-account__link:hover { border-color: var(--nz-text); color: var(--nz-text); }
.nz-account__link[aria-current="page"] { background: var(--nz-text); border-color: var(--nz-text); color: var(--nz-bg-light); }
@media (min-width: 1000px) {
  .nz-account__nav { padding: 12px; background: var(--nz-bg-linen); border-radius: var(--nz-radius); }
  .nz-account__menu { flex-direction: column; gap: 2px; padding: 0; overflow: visible; }
  .nz-account__menu li { flex: none; }
  .nz-account__link { width: 100%; min-height: 48px; padding: 0 16px; border-color: transparent; font-size: 1rem; }
  .nz-account__link:hover { border-color: transparent; background: var(--nz-bg-light); }
  .nz-account__link[aria-current="page"] { background: var(--nz-bg-light); border-color: var(--nz-bg-light); color: var(--nz-text); }
  .nz-account__menu .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--nz-line-linen); }
}

/* Dashboard. */
.nz-account__welcome { font-size: 1.25rem; margin-bottom: 24px; }
.nz-account__welcome a { font-weight: 700; border-bottom: 1px solid currentColor; }
.nz-account__cards { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .nz-account__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nz-account__card-link { display: grid; gap: 8px; height: 100%; padding: 24px; background: var(--nz-bg-light); border: 1px solid var(--nz-line); border-radius: var(--nz-radius); color: var(--nz-text); transition: border-color 150ms; }
.nz-account__card-link:hover { border-color: var(--nz-text); color: var(--nz-text); }
.nz-account__card-title { font-family: var(--nz-serif); font-size: 1.5rem; line-height: 1.1; }
.nz-account__card-text { font-size: 0.9375rem; line-height: 1.5; color: var(--nz-text-2); }

/* Account-only form parts: select2 (WooCommerce country select), password toggle, hints. */
.nz-account .form-row .select2-container .select2-selection--single { height: 56px; border: 1px solid var(--nz-muted); border-radius: var(--nz-radius); background: var(--nz-bg-light); }
.nz-account .form-row .select2-container .select2-selection--single .select2-selection__rendered { line-height: 54px; padding-left: 16px; color: var(--nz-text); }
.nz-account .form-row .select2-container .select2-selection--single .select2-selection__arrow { height: 54px; right: 10px; }
.nz-account .form-row .select2-container--focus .select2-selection--single,
.nz-account .form-row .select2-container--open .select2-selection--single { border-color: var(--nz-accent); box-shadow: inset 0 0 0 1px var(--nz-accent); }
/* "Zapamiętaj mnie": the label is the 44px target (project rule), the box alone is 20px. */
.nz-account .form-row .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
/* Password visibility toggle (WooCommerce prints an empty span; the icon is a masked SVG). */
.nz-account .password-input { position: relative; display: block; }
.nz-account .password-input .input-text { padding-right: 56px; }
.nz-account .show-password-input { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--nz-radius); cursor: pointer; color: var(--nz-text-2); }
.nz-account .show-password-input:hover { color: var(--nz-text); background: var(--nz-bg-linen); }
.nz-account .show-password-input::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat; }
.nz-account .show-password-input.display-password::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E"); }
.nz-account .woocommerce-password-strength { font-size: 0.875rem; padding: 6px 0 0; }
.nz-account .woocommerce-password-hint { font-size: 0.875rem; color: var(--nz-text-2); }
.nz-account .woocommerce-privacy-policy-text { font-size: 0.9375rem; color: var(--nz-text-2); }
.nz-account .woocommerce-LostPassword { margin: 0; font-size: 0.9375rem; }
.nz-account .woocommerce-LostPassword a { font-weight: 700; border-bottom: 1px solid currentColor; }
.nz-account fieldset { margin: 24px 0; padding: 0; border: 0; }
.nz-account fieldset legend { font-family: var(--nz-serif); font-size: 1.5rem; margin-bottom: 12px; }

/* Buttons on the account and order pages (login, save, view order, pay). */
.nz-account .woocommerce-button,
.nz-account .button,
.nz-order-received .button,
.nz-order-pay .button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; background: var(--nz-text); color: var(--nz-bg-light); border: 1px solid var(--nz-text); border-radius: var(--nz-radius); font: inherit; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background-color 150ms, color 150ms, border-color 150ms; }
.nz-account .woocommerce-button:hover,
.nz-account .button:hover,
.nz-order-received .button:hover,
.nz-order-pay .button:hover { background: var(--nz-accent); border-color: var(--nz-accent); color: var(--nz-bg-light); }
.nz-account .woocommerce-orders-table .woocommerce-button,
.nz-account .order-actions-button,
.nz-order-received .order-actions-button { min-height: 44px; padding: 0 16px; background: transparent; color: var(--nz-text); font-size: 0.9375rem; }
.nz-account .woocommerce-orders-table .woocommerce-button:hover,
.nz-account .order-actions-button:hover,
.nz-order-received .order-actions-button:hover { background: var(--nz-text); color: var(--nz-bg-light); }
.nz-order-received .nz-button--outline { background: transparent; color: var(--nz-text); }
@media (max-width: 999px) {
  .nz-account .woocommerce-form-login__submit,
  .nz-account .woocommerce-form-register__submit,
  .nz-account .woocommerce-EditAccountForm .woocommerce-Button,
  .nz-account .woocommerce-address-fields .button { width: 100%; }
}

/* Login and register side by side on desktop. */
.nz-account--login .woocommerce > h2 { display: none; }
.nz-account .u-columns.col2-set { display: grid; gap: 32px; }
@media (min-width: 1000px) { .nz-account .u-columns.col2-set { grid-template-columns: 1fr 1fr; gap: 48px; } }
.nz-account .u-columns.col2-set > .u-column1,
.nz-account .u-columns.col2-set > .u-column2 { padding: 32px 24px; background: var(--nz-bg-light); border: 1px solid var(--nz-line); border-radius: var(--nz-radius); }
@media (min-width: 700px) { .nz-account .u-columns.col2-set > .u-column1, .nz-account .u-columns.col2-set > .u-column2 { padding: 40px; } }
.nz-account .u-columns.col2-set h2 { font-size: 2rem; margin-bottom: 20px; }
.nz-account .woocommerce-form-register > p:not(.form-row) { font-size: 0.9375rem; color: var(--nz-text-2); }

/* Orders table: regular table on desktop, stacked rows on mobile. */
.nz-account .woocommerce-orders-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.nz-account .woocommerce-orders-table th,
.nz-account .woocommerce-orders-table td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--nz-line); text-align: left; vertical-align: middle; }
.nz-account .woocommerce-orders-table thead th { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--text-3); }
.nz-account .woocommerce-orders-table tbody th { font-weight: 400; }
.nz-account .woocommerce-orders-table__cell-order-number a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.nz-account .woocommerce-orders-table__cell-order-total .woocommerce-Price-amount { font-family: var(--nz-sans); font-size: 1.125rem; font-weight: 600; }
.nz-account .woocommerce-orders-table__cell-order-actions { text-align: right; white-space: nowrap; }
.nz-account .woocommerce-orders-table__cell-order-actions .woocommerce-button + .woocommerce-button { margin-left: 8px; }
@media (max-width: 999px) {
  .nz-account .woocommerce-orders-table thead { display: none; }
  .nz-account .woocommerce-orders-table tbody,
  .nz-account .woocommerce-orders-table tr { display: block; }
  .nz-account .woocommerce-orders-table tr { padding: 16px 0; border-bottom: 1px solid var(--nz-line); }
  .nz-account .woocommerce-orders-table tbody th,
  .nz-account .woocommerce-orders-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 4px 0; border: 0; }
  .nz-account .woocommerce-orders-table tbody th::before,
  .nz-account .woocommerce-orders-table td::before { content: attr(data-title); flex: 0 0 auto; font-family: var(--nz-sans); font-size: 0.875rem; font-weight: 600; color: var(--nz-text-2); }
  .nz-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; text-align: left; }
  .nz-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before { content: none; }
  .nz-account .woocommerce-orders-table__cell-order-actions .woocommerce-button + .woocommerce-button { margin-left: 0; }
}
.nz-account .woocommerce-pagination { display: flex; gap: 12px; margin-top: 24px; }
.nz-account .woocommerce-pagination .woocommerce-button { background: transparent; color: var(--nz-text); min-height: 44px; padding: 0 16px; }

/* Addresses. */
.nz-account .woocommerce-Addresses { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 700px) { .nz-account .woocommerce-Addresses { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.nz-account .woocommerce-Address { padding: 24px; background: var(--nz-bg-linen); border-radius: var(--nz-radius); }
/* Title and the "Edytuj ..." link share a row while they fit and stack in a narrow column (zoom, large text). */
.nz-account .woocommerce-Address-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--nz-line-linen); }
.nz-account .woocommerce-Address-title h2,
.nz-account .woocommerce-Address-title h3 { font-size: 1.5rem; margin: 0; }
.nz-account .woocommerce-Address-title .edit { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.nz-account .woocommerce-Address address { font-style: normal; line-height: 1.6; }
.nz-account .woocommerce-MyAccount-content > p:first-child { color: var(--nz-text-2); }

/* Order status and notes in "Moje konto > Zamówienie". */
.nz-account .woocommerce-MyAccount-content > p mark { background: var(--nz-bg-linen); padding: 2px 6px; border-radius: var(--nz-radius); font-weight: 600; }
.nz-account .woocommerce-OrderUpdates { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.nz-account .woocommerce-OrderUpdate-inner { padding: 16px 20px; background: var(--nz-bg-light); border: 1px solid var(--nz-line); border-radius: var(--nz-radius); }
.nz-account .woocommerce-OrderUpdate-meta { font-size: 0.875rem; color: var(--nz-text-2); margin: 0 0 4px; }
.nz-account .woocommerce-OrderUpdate-description p:last-child { margin: 0; }

/* ---------- Order pay (payment retry for an existing order) ---------- */
.nz-order-pay .woocommerce-error,
.nz-order-pay .woocommerce-message,
.nz-order-pay .woocommerce-info { margin: 0 0 24px; padding: 14px 18px; list-style: none; background: var(--nz-bg-light); border: 1px solid var(--nz-line-linen); border-left: 3px solid var(--nz-text); border-radius: var(--nz-radius); font-size: 1rem; }
.nz-order-pay .woocommerce-error { border-left-color: var(--nz-accent-dark); }
.nz-order-pay #order_review .shop_table { width: 100%; border-collapse: collapse; font-size: 1rem; margin-bottom: 24px; }
.nz-order-pay #order_review .shop_table th,
.nz-order-pay #order_review .shop_table td { padding: 12px 0; border-bottom: 1px solid var(--nz-line); text-align: left; }
.nz-order-pay #order_review .shop_table td:last-child,
.nz-order-pay #order_review .shop_table th:last-child { text-align: right; }
.nz-order-pay #order_review .shop_table tfoot tr:last-child th,
.nz-order-pay #order_review .shop_table tfoot tr:last-child td { border-bottom: 0; font-family: var(--nz-sans); font-size: 1.1875rem; font-weight: 600; }
.nz-order-pay #order_review .shop_table tfoot tr:last-child td small { font-size: 0.8125rem; font-weight: 400; }
.nz-order-pay .wc_payment_methods { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.nz-order-pay .wc_payment_method { padding: 12px 16px; border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); background: var(--nz-bg-light); }
.nz-order-pay .wc_payment_method > label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.nz-order-pay .wc_payment_method input[type="radio"] { width: 22px; height: 22px; margin: 0; accent-color: var(--nz-text); }
.nz-order-pay .payment_box { margin-top: 12px; font-size: 0.9375rem; color: var(--nz-text-2); }
.nz-order-pay #place_order { width: 100%; }

/* ---------- Checkout without distractions (body.nz-checkout-focus, inc/woocommerce-checkout.php) ----------
   On the checkout form the header keeps the logo and the cart, the top bar, the menu, search,
   account and the quiz button go, and the footer keeps the logo, the contact details and the legal
   links. An empty 44px box balances the cart icon, so the logo stays centred on phones. */
.nz-checkout-focus .nz-topbar,
.nz-checkout-focus .nz-mobile__toggle,
.nz-checkout-focus .nz-header__bar-m > .nz-mobile__icon:not(.nz-mobile__cart),
.nz-checkout-focus .nz-nav,
.nz-checkout-focus .nz-header__cta,
.nz-checkout-focus .nz-header__actions [data-nz-search-open],
.nz-checkout-focus .nz-footer__col:not(.nz-footer__contact),
.nz-checkout-focus .nz-footer__tagline,
.nz-checkout-focus .nz-footer__social { display: none; }
.nz-checkout-focus .nz-header__bar-m::before { content: ""; flex: none; width: 44px; }

/* "Do zapłaty" line above the checkout form, phones only (form-checkout.php). */
.nz-checkout__jump { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 52px; margin: 0 0 20px; padding: 10px 16px; background: var(--nz-bg-linen); border-radius: var(--nz-radius); color: var(--nz-text); }
.nz-checkout__jump:hover { color: var(--nz-text); }
.nz-checkout__jump-label { font-weight: 600; }
.nz-checkout__jump-total { margin-right: auto; font-family: var(--nz-sans); font-size: 1.125rem; font-weight: 600; white-space: nowrap; }
.nz-checkout__jump-total small { display: none; }
.nz-checkout__jump-more { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1000px) {
  .nz-checkout__jump { display: none; }
}
