/* ==========================================================================
   RybnikOnline Sklep — uzupełnienia WordPressa
   Arkusze tokens/theme/shop/wc-blocks/wc-classic to kopie 1:1 z design/css/.
   Tu: elementy, których makiety nie rysują (menu mobilne, wyszukiwarka, komunikaty,
   paginacja, produkt prosty, treść stron, Moje konto) i dopasowanie do markupu
   generowanego przez WordPress i bloki WooCommerce 11.1.
   ========================================================================== */

:root{--ro-header-h:88px;--ro-adminbar:0px}
.admin-bar{--ro-adminbar:32px}
@media (max-width:782px){.admin-bar{--ro-adminbar:46px}}
@media (max-width:560px){:root{--ro-header-h:74px}}

.ro-skip:focus{position:fixed!important;left:12px;top:12px;z-index:1000;width:auto;height:auto;margin:0;padding:12px 16px;clip:auto;background:var(--ivory-soft);color:var(--ink);white-space:normal}
.woocommerce-Price-amount{white-space:nowrap}
.ro-pay span{text-transform:uppercase}
.ro-footer__h-gap{margin-top:30px}
.ro-ph{color:var(--ink-mute)}
.ro-on-dark .ro-ph,.ro-footer .ro-ph{color:var(--muted)}

/* --- nagłówek: wyszukiwarka jako formularz ------------------------------ */
.ro-search:focus-within{border-color:var(--rule)}
.ro-search input{flex:1;min-width:0;height:100%;padding:0;border:0;background:transparent;font-size:13px;color:var(--white);outline:0;appearance:none}
.ro-search input::placeholder{color:var(--muted);opacity:1}
.ro-search input::-webkit-search-cancel-button{filter:invert(1) sepia(1) saturate(2) hue-rotate(5deg)}
.ro-icon-button{background:transparent;cursor:pointer;padding:0}
.ro-badge[hidden]{display:none}
.ro-steps a{color:inherit}
.ro-steps a:hover{color:var(--gold-light)}

/* panel wyszukiwania i menu mobilne — pod nagłówkiem (jak .nav na szkolenia.rybnikonline.eu) */
.ro-header{position:relative;z-index:40}
.ro-search-panel,.ro-drawer{position:absolute;left:0;right:0;top:100%;z-index:50;background:rgba(9,11,9,.98);border-bottom:1px solid var(--rule)}
.ro-search-panel[hidden],.ro-drawer[hidden]{display:none}
.ro-search-panel__form{display:flex;align-items:center;gap:12px;height:64px;color:var(--gold-light)}
.ro-search-panel__form input{flex:1;min-width:0;height:44px;padding:0 14px;border:1px solid var(--rule-soft);border-radius:0;background:rgba(255,255,255,.04);font-size:15px;color:var(--white);outline:0}
.ro-search-panel__form input:focus{border-color:var(--gold-light)}
.ro-search-panel__form button{height:44px;padding:0 16px;border:1px solid var(--rule);background:transparent;font-weight:600;font-size:13px;color:var(--white);cursor:pointer}
.ro-drawer{max-height:calc(100dvh - var(--ro-header-h) - var(--ro-adminbar));overflow:auto;padding:6px 0 22px}
.ro-drawer__nav{display:grid}
.ro-drawer__nav a,.ro-drawer__util a{display:flex;align-items:center;gap:10px;padding:16px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:12px;text-transform:uppercase;letter-spacing:.14em;color:var(--white)}
.ro-drawer__nav a.is-current,.ro-drawer__nav a:hover,.ro-drawer__util a:hover{color:var(--gold-light)}
.ro-drawer__util{display:grid;margin-top:10px}
.ro-drawer__util svg{color:var(--gold-light)}
.ro-drawer__util .ro-sum{margin-left:auto;letter-spacing:.06em;text-transform:none;color:var(--gold-light)}
body.ro-menu-open{overflow:hidden}
@media (min-width:821px){.ro-search-panel,.ro-drawer{display:none!important}}
@media (prefers-reduced-motion:no-preference){.ro-search-panel,.ro-drawer{animation:ro-drop .22s ease-out}}
@keyframes ro-drop{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

/* --- komunikaty klasyczne (katalog, karta produktu, Moje konto) ---------- */
.woocommerce-notices-wrapper:empty{display:none}
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-noreviews,p.no-comments{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0 0 28px;padding:15px 20px;border:1px solid var(--line);background:rgba(255,255,255,.42);font-size:14px;line-height:1.5;color:var(--ink);list-style:none}
.woocommerce-error{border-color:rgba(166,50,68,.45);background:rgba(166,50,68,.05)}
.woocommerce-error li+li{margin-top:6px}
.woocommerce-message .button,.woocommerce-info .button{order:2;margin-left:auto;font-size:13px;font-weight:600;color:var(--gold-ink);text-decoration:underline;text-underline-offset:3px;background:none;border:0;padding:0}
.woocommerce-no-products-found .woocommerce-info{margin-top:0}

/* --- katalog --------------------------------------------------------------- */
.ro-cover--photo{background:var(--ivory-soft);overflow:hidden}
.ro-cover--photo::before,.ro-cover--photo::after{display:none}
.ro-cover--photo img{width:100%;height:100%;object-fit:cover;display:block}
li.product .added_to_cart{display:inline-block;margin-top:8px;font-size:12px;font-weight:600;color:var(--gold-ink);text-decoration:underline;text-underline-offset:3px}
li.product .button.loading{opacity:.6;pointer-events:none}
li.product .button.added::after{content:" ✓"}
.ro-more a[aria-busy="true"]{opacity:.6;pointer-events:none}
.woocommerce-pagination{padding:48px 0 88px}
.woocommerce-pagination ul{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.woocommerce-pagination a,.woocommerce-pagination span{min-width:40px;height:40px;display:grid;place-items:center;padding:0 10px;border:1px solid var(--line);font-size:13px;color:var(--ink)}
.woocommerce-pagination span.current{background:var(--ink);border-color:var(--ink);color:var(--gold-light)}
.ro-more--end{padding:0 0 88px}
.ro-shop-list .woocommerce-info{margin-top:0}
/* filtry: markup i zmienne bloku Product Filters (WooCommerce 11.1). Kolory idą przez zmienne CSS bloku,
   zamiast przebijać jego selektory; „(2)” → „2”; pola ceny to inputy tekstowe w __left / __right. */
.ro-filter .wp-block-heading{margin:0 0 16px;font-weight:400;font-size:10px;line-height:1;text-transform:uppercase;letter-spacing:.24em;color:var(--gold-ink)}
.wc-block-product-filter-checkbox-list{--wc-product-filter-checkbox-list-option-element:rgba(255,255,255,.4);--wc-product-filter-checkbox-list-option-element-border:var(--line);--wc-product-filter-checkbox-list-option-element-selected:var(--gold-light)}
.wc-block-product-filter-checkbox-list__input-wrapper{font-size:16px}
.wc-block-product-filter-checkbox-list__input-wrapper::before{display:none}
.ro-filter input[type=checkbox].wc-block-product-filter-checkbox-list__input{border-radius:0}
.ro-filter .wc-block-product-filter-checkbox-list__label:hover input[type=checkbox].wc-block-product-filter-checkbox-list__input{border-color:var(--gold-ink)}
.ro-filter input[type=checkbox].wc-block-product-filter-checkbox-list__input:checked{background:var(--ink);border-color:var(--ink)}
.ro-filter svg.wc-block-product-filter-checkbox-list__mark{left:0;top:0;width:1em;height:1em;padding:.22em}
.wc-block-product-filter-checkbox-list__label{display:flex;width:100%}
.wc-block-product-filter-checkbox-list__count{font-size:0}
.wc-block-product-filter-checkbox-list__count>span{font-size:12px;color:var(--ink-mute)}
.wc-block-product-filter-price-slider{--wc-product-filter-price-slider:var(--gold-ink);--wc-product-filter-price-slider-handle:var(--ivory-soft);--wc-product-filter-price-slider-handle-border:var(--gold-ink)}
.wc-block-product-filter-price-slider .wc-block-product-filter-price-slider__content{grid-template-areas:"price-slider price-slider" "left-input right-input";grid-template-columns:1fr 1fr;gap:0 8px}
.wc-block-product-filter-price-slider .wc-block-product-filter-price-slider__range{height:2px;margin:12px 8px 20px}
.wc-block-product-filter-price-slider .wc-block-product-filter-price-slider__range::before{top:50%;height:1px;opacity:1;background:var(--line)}
.wc-block-product-filter-price-slider .wc-block-product-filter-price-slider__range .range-bar{height:2px}
.wc-block-product-filter-price-slider .wc-block-product-filter-price-slider__left,.wc-block-product-filter-price-slider .wc-block-product-filter-price-slider__right{height:auto;display:block;padding:0;border:0}
.ro-filter .wc-block-product-filter-price-slider .text input[type=text]{width:100%;max-width:none;height:38px;margin:0;padding:0 12px;border:1px solid var(--line);border-radius:0;background:transparent;font-size:13px;color:var(--ink);font-variant-numeric:lining-nums tabular-nums}
.ro-filter .wc-block-product-filter-price-slider .text input[type=text]:focus{border-color:var(--gold-ink);outline:0}

/* --- karta produktu -------------------------------------------------------- */
.ro-stats{grid-template-columns:repeat(var(--ro-stats,4),minmax(0,1fr))}
@media (max-width:560px){.ro-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ro-buy__eyebrow{margin-bottom:16px;color:var(--gold-light)}
.ro-buy>.woocommerce-variation-price{margin-top:0;padding-top:0;border-top:0}
.ro-buy__eyebrow+.woocommerce-variation-price{padding-top:0}
.ro-buy form.cart:not(.variations_form){display:flex;flex-direction:column;gap:9px;margin-top:22px}
.ro-buy .woocommerce-variation-price .ro-buy__vat+.ro-buy__vat{margin-top:4px}
.ro-buy .quantity{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.ro-buy .quantity input.qty{width:72px;height:44px;padding:0 10px;border:1px solid var(--rule);border-radius:0;background:rgba(255,255,255,.04);font-size:15px;color:var(--white);text-align:center}
.ro-buy .quantity input[type="hidden"]{display:none}
.ro-buy .stock{margin-top:18px;font-size:12.5px;color:rgba(248,245,237,.86)}
.ro-buy .stock.out-of-stock{color:var(--gold-light)}
.ro-buy .woocommerce-variation-availability:empty,.ro-buy .woocommerce-variation-description:empty{display:none}
.ro-buy .woocommerce-variation-availability .stock{margin-top:10px}
.single_add_to_cart_button.button::after{content:"";width:15px;height:15px;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='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6'/%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='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
.single_add_to_cart_button.button.disabled,.single_add_to_cart_button.button:disabled{opacity:.5;cursor:not-allowed;transform:none}
.ro-variant input:focus-visible+.ro-variant__radio{outline:2px solid var(--gold-light);outline-offset:3px}
.ro-variant:has(input:disabled){opacity:.5;cursor:not-allowed}
.ro-buy table.variations{width:100%;margin-bottom:8px;border-collapse:collapse}
.ro-buy table.variations th{padding:0 0 8px;text-align:left;font-weight:400;font-size:10px;text-transform:uppercase;letter-spacing:.2em;color:var(--gold-light)}
.ro-buy table.variations td{display:block;padding:0 0 14px}
.ro-buy table.variations select{width:100%;height:46px;padding:0 14px;border:1px solid var(--rule);border-radius:0;background:rgba(255,255,255,.04);color:var(--white)}
.ro-buy .reset_variations{display:inline-block;margin-top:8px;font-size:12px;color:var(--muted)}
.ro-buy table.variations[hidden]+.reset_variations_alert~.single_variation_wrap .reset_variations{display:none}

/* podgląd: okładka i zdjęcie zamiast materiału */
.ro-media--cover,.ro-media--photo{cursor:default}
.ro-media--cover .ro-media__in{align-items:center;justify-content:center;color:var(--gold-light)}
.ro-media--paper{background:linear-gradient(135deg,var(--ivory-soft),var(--ivory));color:var(--gold-dark)}
.ro-media--paper::before{border-color:var(--line)}
.ro-media--paper .ro-media__r{color:rgba(143,107,53,.08)}
.ro-media--paper .ro-media__in{color:var(--gold-dark)}
.ro-media--photo{background:var(--ivory-soft)}
.ro-media--photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
a.ro-media{display:block;color:var(--white)}

/* pasek kotwic przyklejony u góry; sekcje z marginesem pod pasek */
.ro-tabs-bar{position:sticky;top:var(--ro-adminbar);z-index:20}
.woocommerce-Tabs-panel.ro-sec{scroll-margin-top:calc(var(--ro-adminbar) + 76px)}
.ro-sec__body>*:first-child{margin-top:0}
.ro-tabs-bar__buy .num{font-variant-numeric:lining-nums tabular-nums}

/* treść opisu z edytora bloków */
.ro-prose h2,.ro-prose h3{margin:32px 0 12px;font-weight:600;font-size:26px;line-height:1.15;font-family:var(--serif);color:var(--ink)}
.ro-prose ul,.ro-prose ol{max-width:660px;margin:16px 0;padding-left:22px;font-size:16px;line-height:1.75;color:var(--ink-soft)}
.ro-prose ul{list-style:disc}
.ro-prose ol{list-style:decimal}
.ro-prose blockquote{position:relative;margin:32px 0 0;max-width:600px;padding:24px 0 0;border:0;font-style:italic;font-weight:500;font-size:23px;line-height:1.38;font-family:var(--serif);color:var(--ink-soft)}
.ro-prose blockquote::before{content:"";position:absolute;left:0;top:0;width:48px;height:1px;background:linear-gradient(90deg,var(--gold),transparent)}
.ro-prose blockquote p{font:inherit;color:inherit}
.ro-prose img{max-width:100%;height:auto}

/* pasek zakupu (telefon): pojawia się po przewinięciu karty zakupu */
@media (max-width:820px){
  .ro-sticky-buy{transform:translateY(110%);transition:transform .25s ease-out;visibility:hidden}
  .ro-sticky-buy.is-visible{transform:none;visibility:visible}
  .ro-tabs-bar{top:var(--ro-adminbar)}
  .woocommerce-Tabs-panel.ro-sec{scroll-margin-top:calc(var(--ro-adminbar) + 64px)}
}

/* okno podglądu wideo */
.ro-video{width:min(960px,calc(100vw - 32px));padding:0;border:1px solid var(--rule);background:var(--hero);color:var(--white)}
.ro-video::backdrop{background:rgba(9,11,9,.8)}
.ro-video__frame{aspect-ratio:16/9}
.ro-video__frame iframe,.ro-video__frame video{width:100%;height:100%;border:0;display:block}
.ro-video__close{position:absolute;right:8px;top:8px;z-index:2;width:40px;height:40px;border:1px solid var(--rule);background:rgba(9,11,9,.7);font-size:22px;line-height:1;color:var(--white);cursor:pointer}

/* --- strony treści (regulamin, polityka prywatności…) ---------------------- */
.ro-content{max-width:760px;padding-bottom:96px;font-size:16px;line-height:1.75;color:var(--ink-soft)}
.ro-content>*+*{margin-top:18px}
.ro-content h2{margin-top:40px;font-weight:600;font-size:32px;line-height:1.1;font-family:var(--serif);color:var(--ink)}
.ro-content h3{margin-top:28px;font-weight:600;font-size:23px;line-height:1.2;font-family:var(--serif);color:var(--ink)}
.ro-content ul,.ro-content ol{padding-left:22px}
.ro-content ul{list-style:disc}
.ro-content ol{list-style:decimal}
.ro-content a{text-decoration:underline;text-underline-offset:3px}
.ro-content table{width:100%;border-collapse:collapse}
.ro-content th,.ro-content td{padding:10px 0;border-bottom:1px solid var(--line-soft);text-align:left;vertical-align:top}
.ro-post-list li+li{margin-top:28px}
.ro-post-list h2{margin:0}
.ro-wc-content{padding-bottom:40px}

/* --- komunikaty: markup bloków w całym sklepie (woocommerce_use_block_notices_in_classic_theme) --- */
.ro-notices{container-type:inline-size}
.ro-notices:has(.woocommerce-notices-wrapper:empty){display:none}
body .wc-block-components-notice-banner{display:flex;align-items:center;gap:14px;margin:0 0 32px;padding:15px 20px;border:1px solid var(--line);border-radius:0;background:rgba(255,255,255,.42);font-size:14px;line-height:1.5;color:var(--ink)}
body .wc-block-components-notice-banner.is-success,body .wc-block-components-notice-banner.is-info,body .wc-block-components-notice-banner.is-warning{border-color:var(--line);background:rgba(255,255,255,.42)}
body .wc-block-components-notice-banner.is-error{border-color:rgba(166,50,68,.45);background:rgba(166,50,68,.05)}
body .wc-block-components-notice-banner>svg{width:26px;height:26px;flex:none;padding:5px;border-radius:50%;background:var(--ink);fill:var(--gold-light)}
body .wc-block-components-notice-banner.is-error>svg{background:#a63244;fill:#fff}
body .wc-block-components-notice-banner__content{flex:1;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px}
body .wc-block-components-notice-banner__content .wc-forward,body .wc-block-components-notice-banner__content a.button{order:2;margin-left:auto;padding:0;border:0;background:none;box-shadow:none;font-size:13px;font-weight:400;color:var(--gold-ink);text-decoration:underline;text-underline-offset:3px;opacity:1}
@container (max-width:519px){body .wc-block-components-notice-banner{align-items:flex-start;padding:14px 16px}body .wc-block-components-notice-banner__content .wc-forward{margin-left:0}}

/* ==========================================================================
   Bloki Cart / Checkout — dopasowanie do arkuszy WooCommerce 11.1.
   Mechanika zostaje WooCommerce (pływające etykiety, pozycje, klasy is-large…is-mobile);
   tu tylko szerokości kolumn i wygląd z makiet. Selektory celowo mocniejsze niż w blokach
   (tam do (0,4,1)); arkusze z design/css zostają bez zmian.
   ========================================================================== */
body .wp-block-woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main,
body .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main{width:auto;margin:0;padding:0}
body .wp-block-woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar,
body .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar{width:auto;margin:0}
body .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar{padding:0}
body .wp-block-woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar{padding:30px 32px 28px}
body .wp-block-woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart{margin:0;padding-top:0}

/* koszyk: pozycje */
body .wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name{max-width:none;font-weight:600;font-size:23px;line-height:1.12;font-family:var(--serif);letter-spacing:-.01em;color:var(--ink)}
body .wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name:hover{color:var(--gold-ink)}
body .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices{font-size:13.5px;color:var(--ink-soft)}
.wc-block-components-product-metadata__description{display:none}
body .wp-block-woocommerce-cart .wc-block-cart-item__remove-link{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:none;color:var(--ink-mute);text-decoration:none;cursor:pointer}
body .wp-block-woocommerce-cart .wc-block-cart-item__remove-link:hover{color:var(--ink)}
body .wp-block-woocommerce-cart .wc-block-cart-item__remove-link svg{width:18px;height:18px;fill:currentColor}
body .wp-block-woocommerce-cart .wc-block-components-quantity-selector{width:auto;height:38px;border:1px solid var(--line);border-radius:0;background:var(--field)}
body .wp-block-woocommerce-cart .wc-block-components-quantity-selector::after{display:none}
body .wp-block-woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input{width:40px;min-width:40px;height:36px;border:0;border-inline:1px solid var(--line-soft);border-radius:0;background:transparent;font-size:14px;color:var(--ink);box-shadow:none}
body .wp-block-woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button{min-width:36px;height:36px;color:var(--ink-soft);background:transparent;box-shadow:none}

/* koszyk: cross-sell (Product Collection „cross-sells”) */
.ro-cross-sells .wc-block-product-template{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px;padding:0;list-style:none}
body .ro-cross-sells .wc-block-product{display:grid;grid-template-columns:56px minmax(0,1fr);column-gap:16px;row-gap:0;align-content:start;align-items:start;margin:0;text-align:left}
body .ro-cross-sells .wc-block-product>*{grid-column:2;margin:0;text-align:left}
body .ro-cross-sells .wc-block-product>.wc-block-components-product-image{grid-column:1;grid-row:1/span 4;width:56px;margin:0}
body .ro-cross-sells .wc-block-product .wc-block-components-product-image img{width:56px;height:auto;aspect-ratio:3/4;object-fit:cover}
body .ro-cross-sells .wc-block-product .wp-block-post-title{margin:0;font-weight:600;font-size:18px;line-height:1.15;font-family:var(--serif);color:var(--ink)}
body .ro-cross-sells .wc-block-product .wp-block-post-title a{color:inherit}
body .ro-cross-sells .wc-block-product .wc-block-components-product-price{display:block;margin-top:6px;font-weight:600;font-size:17px;line-height:1;font-family:var(--serif);color:var(--ink);text-align:left}
body .ro-cross-sells .wc-block-product .wc-block-components-product-price del{display:none}
body .ro-cross-sells .wc-block-product .wc-block-components-product-price ins{text-decoration:none;background:none}
body .ro-cross-sells .wc-block-product .wp-block-button{margin-top:10px;text-align:left}
body .ro-cross-sells .wc-block-product .wp-block-button__link{display:inline;width:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font-size:12px;font-weight:600;color:var(--gold-ink);text-decoration:underline;text-underline-offset:3px}

/* zamówienie: kroki z numerami „01” (liczniki: ro-step motywu i checkout-step bloku) */
body .wp-block-woocommerce-checkout .wc-block-components-form{counter-reset:ro-step checkout-step}
body .wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-checkout-step{margin:0;padding:0 0 40px}
body .wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-checkout-step+.wc-block-components-checkout-step{padding-top:40px;border-top:1px solid var(--line-soft)}
body .wp-block-woocommerce-checkout .wc-block-checkout__form--with-step-numbers .wc-block-components-checkout-step--with-step-number{padding-left:0;padding-right:0}
body .wp-block-woocommerce-checkout .wc-block-checkout__form--with-step-numbers .wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__title::before{content:counter(ro-step,decimal-leading-zero);counter-increment:none;position:static;left:auto;top:auto;transform:none;margin:0;font-weight:500;font-size:22px;line-height:1;font-family:var(--serif);font-variant-numeric:oldstyle-nums;color:var(--gold-ink)}
body .wp-block-woocommerce-checkout .wc-block-checkout__form--with-step-numbers .wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__content::before,
body .wp-block-woocommerce-checkout .wc-block-checkout__form--with-step-numbers .wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__description::before{display:none}
body .wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading-container{gap:6px;margin-bottom:20px}
body .wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px;margin:0}
body .wp-block-woocommerce-checkout .wc-block-components-title.wc-block-components-checkout-step__title{display:flex;align-items:baseline;gap:16px;margin:0;font-weight:600;font-size:30px;line-height:1.1;font-family:var(--serif);letter-spacing:-.01em;color:var(--ink)}
body .wp-block-woocommerce-checkout .wc-block-components-checkout-step__description{max-width:580px;font-size:14px;line-height:1.6;color:var(--ink-soft)}
body .wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading-content{font-size:13px;color:var(--ink-soft)}
body .wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading-content a{font-weight:400;color:var(--gold-ink);text-decoration:underline;text-underline-offset:3px}
/* „Zaloguj się”: blok ustawia float:right i margin-top:-24px — na telefonie link wchodził na numer kroku */
body .wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading-content .wc-block-checkout__login-prompt{float:none;margin:0;font-size:13px;line-height:1.4}
body .wp-block-woocommerce-checkout .wc-block-checkout__guest-checkout-notice{margin-top:8px;font-size:13px;color:var(--ink-mute)}

/* pola tekstowe i listy: wygląd z makiet, pozycje etykiet jak w bloku (pływające) */
body .wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type],
body .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-text-input input[type]{height:56px;padding:22px 16px 6px;border:1px solid var(--line);border-radius:0;background:var(--field);box-shadow:none;font-size:15px;line-height:1.2;color:var(--ink)}
body .wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input.is-active input[type]{padding:22px 16px 6px}
body .wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type]:focus{border:1px solid var(--gold-ink);background:rgba(255,255,255,.8);box-shadow:0 0 0 3px rgba(122,90,40,.12);outline:0}
body .wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input label{left:17px;top:28px;max-width:calc(100% - 34px);transform:translateY(-50%);font-size:14px;line-height:1.2;color:var(--ink-mute)}
body .wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input.is-active label,
body .wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input:-webkit-autofill+label{top:10px;transform:none;font-size:11px;letter-spacing:.02em}
body .wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__container{height:56px;border:1px solid var(--line);border-radius:0;background:var(--field);box-shadow:none}
body .wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select{height:54px;padding:22px 40px 6px 16px;border:0;border-radius:0;background:transparent;font-size:15px;color:var(--ink)}
body .wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__label{left:17px;top:10px;transform:none;font-size:11px;letter-spacing:.02em;color:var(--ink-mute)}
body .wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__expand{fill:var(--gold-ink)}

/* pola wyboru */
body .wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]{width:20px;min-width:20px;height:20px;margin:1px 0 0;border:1px solid var(--gold-ink);border-radius:0;background:var(--field)}
body .wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked{background:var(--ink);border-color:var(--ink)}
body .wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark{fill:var(--gold-light)}
body .wp-block-woocommerce-checkout .wc-block-components-checkbox label{align-items:flex-start;gap:12px;font-size:14px;line-height:1.55;color:var(--ink-soft)}
body .wp-block-woocommerce-checkout .wc-block-checkout__terms{margin:0;padding-top:28px;border-top:1px solid var(--line-soft)}

/* opcje wysyłki i płatności: lista z makiety, radio w siatce zamiast absolutnie */
body .wp-block-woocommerce-checkout .wc-block-components-radio-control{border:1px solid var(--line);border-radius:0}
body .wp-block-woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__option{display:grid;grid-template-columns:20px minmax(0,1fr);gap:14px;align-items:start;margin:0;padding:18px 20px;border:0;border-radius:0;box-shadow:none}
body .wp-block-woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__option .wc-block-components-radio-control__input{position:static;left:auto;top:auto;transform:none;width:20px;height:20px;margin:1px 0 0;border:1px solid var(--gold-ink);background:var(--field)}
body .wp-block-woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__option .wc-block-components-radio-control__input:checked{background:var(--gold-ink);box-shadow:inset 0 0 0 4px var(--ivory-soft)}
body .wp-block-woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__option .wc-block-components-radio-control__input:checked::before{display:none}
body .wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body .wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted{border-radius:0;box-shadow:none;background:rgba(255,255,255,.55)}
body .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option::after,body .wp-block-woocommerce-checkout .wc-block-components-radio-control__option::after{display:none}
body .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option+.wc-block-components-radio-control-accordion-option,
body .wp-block-woocommerce-checkout .wc-block-components-radio-control>.wc-block-components-radio-control__option+.wc-block-components-radio-control__option{border-top:1px solid var(--line-soft)}
body .wp-block-woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__label{font-weight:600;font-size:19px;line-height:1.2;font-family:var(--serif);color:var(--ink)}
body .wp-block-woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__secondary-label{font-size:14px;color:var(--ink)}
body .wp-block-woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__description{font-size:13px;line-height:1.5;color:var(--ink-mute)}
body .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-content{padding:0 20px 20px 54px;font-size:13px;color:var(--ink-soft)}

/* podsumowanie zamówienia (ciemny panel) */
body .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name{font-weight:600;font-size:17px;line-height:1.2;font-family:var(--serif);color:var(--white)}
body .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image img{width:56px;height:auto;aspect-ratio:3/4;max-width:none;object-fit:cover}
body .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image{width:56px}
body .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description{padding:0}
body .wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices{display:none}
body .wp-block-woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-product-metadata{color:var(--muted)}

/* przycisk zamówienia i powrót do koszyka */
body .wp-block-woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button{height:58px;min-width:300px;padding:0 28px;border:0;border-radius:0;font-weight:600;font-size:14px;color:var(--white);background:linear-gradient(135deg,var(--charcoal),var(--hero));box-shadow:0 16px 34px rgba(23,23,20,.2)}
body .wp-block-woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button{white-space:nowrap;font-size:13px;color:var(--ink-soft)}
body .wp-block-woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button svg{width:18px;height:18px;fill:currentColor}

/* nagłówki paneli: mała etykieta z makiety (blok ma własne, większe) */
body .wp-block-woocommerce-cart .wc-block-cart .wc-block-cart__totals-title{display:block;margin:0 0 14px;padding:0;font-weight:400;font-size:10px;line-height:1;font-family:var(--sans);text-transform:uppercase;letter-spacing:.24em;color:var(--gold-light)}
body .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text{font-weight:400;font-size:10px;line-height:1;font-family:var(--sans);text-transform:uppercase;letter-spacing:.24em;color:var(--gold-light)}
body .wp-block-woocommerce-checkout .checkout-order-summary-block-fill-wrapper .wc-block-components-title.wc-block-components-checkout-step__title{font-weight:400;font-size:10px;line-height:1;font-family:var(--sans);text-transform:uppercase;letter-spacing:.24em;color:var(--gold-light)}
body .wp-block-woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-product-details__name,
body .wp-block-woocommerce-checkout .checkout-order-summary-block-fill .wc-block-components-product-details__name{color:var(--muted)}
body .wc-block-components-notice-banner.is-success>svg,body .wc-block-components-notice-banner.is-info>svg{background:var(--ink);fill:var(--gold-light)}
body .wc-block-components-notice-banner:focus{outline:0}
body .ro-cross-sells .wc-block-product .wc-block-components-product-button{align-items:flex-start;justify-content:flex-start}

@container (max-width:919px){
  /* kolumna bez zawijania — przy flex-wrap:wrap (arkusz bloku) linia ma szerokość najszerszej treści */
  body .wp-block-woocommerce-cart .wc-block-components-sidebar-layout,
  body .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout{flex-wrap:nowrap}
  body .wp-block-woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar{order:2;margin:48px calc(var(--ro-gutter) * -1) 0;padding:30px var(--ro-gutter) 28px}
  /* zamówienie: zwinięty pasek podsumowania na całą szerokość, z odstępem od kroku 01 (jak w makiecie) */
  body .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar{margin:0 calc(var(--ro-gutter) * -1) 36px}
}
@container (max-width:519px){
  body .ro-cross-sells .wc-block-product-template{grid-template-columns:1fr}
}
@container (max-width:399px){
  body .wp-block-woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button{width:100%;min-width:0}
}

/* --- koszyk i zamówienie: dopasowanie do markupu bloków 11.1 --------------- */
.ro-title__meta[hidden]{display:none}
.wc-block-cart-item__image img{width:72px;height:auto;aspect-ratio:3/4;object-fit:cover;display:block;box-shadow:0 10px 22px rgba(23,23,20,.18)}
.wc-block-components-order-summary-item__image img{width:56px;height:auto;aspect-ratio:3/4;object-fit:cover;display:block}
.ro-cross-sells{margin-top:56px}
.ro-cross-sells__title{font-weight:600;font-size:30px;line-height:1.1;font-family:var(--serif);letter-spacing:-.01em;color:var(--ink)}
.ro-cross-sells .wc-block-product .wc-block-components-product-image img{width:56px;height:auto;aspect-ratio:3/4;object-fit:cover}
.ro-empty-cart__title{margin-top:24px;font-weight:600;font-size:34px;line-height:1.1;font-family:var(--serif);color:var(--ink)}
.ro-empty-cart__text{margin-top:12px;font-size:15px;color:var(--ink-soft)}
.ro-empty-cart__cta{margin-top:24px;padding-bottom:40px}
.ro-field-nested{margin-left:32px}
@container (max-width:519px){.ro-field-nested{margin-left:0}}

/* --- Moje konto (bez projektu — spójne z resztą) ---------------------------- */
.woocommerce-account .ro-wc-content>.woocommerce{display:grid;grid-template-columns:240px minmax(0,1fr);gap:56px;align-items:start;padding-bottom:96px}
.woocommerce-MyAccount-navigation ul{border-top:1px solid var(--line)}
.woocommerce-MyAccount-navigation li a{display:block;padding:13px 0;border-bottom:1px solid var(--line-soft);font-size:12px;text-transform:uppercase;letter-spacing:.14em;color:var(--ink-soft)}
.woocommerce-MyAccount-navigation li.is-active a,.woocommerce-MyAccount-navigation li a:hover{color:var(--ink)}
.woocommerce-MyAccount-navigation li.is-active a{border-bottom-color:var(--gold-ink)}
.woocommerce-MyAccount-content{min-width:0;font-size:15px;line-height:1.7;color:var(--ink-soft)}
.woocommerce-MyAccount-content>*+*{margin-top:18px}
.woocommerce-account .shop_table,.woocommerce-account table.woocommerce-table{width:100%;border-collapse:collapse;border-top:1px solid var(--line)}
.woocommerce-account .shop_table th,.woocommerce-account .shop_table td{padding:13px 10px 13px 0;border-bottom:1px solid var(--line-soft);text-align:left;vertical-align:top;font-size:14px}
.woocommerce-account .shop_table thead th{font-weight:400;font-size:10px;text-transform:uppercase;letter-spacing:.2em;color:var(--gold-ink)}
.woocommerce-account .woocommerce form .form-row,.woocommerce-checkout .woocommerce form .form-row{margin:0 0 14px}
.woocommerce form .form-row label{display:block;margin-bottom:6px;font-size:13px;color:var(--ink-soft)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row select,.woocommerce form .form-row textarea{width:100%;min-height:48px;padding:10px 14px;border:1px solid var(--line);border-radius:0;background:var(--field);font-size:15px;color:var(--ink)}
.woocommerce form .form-row input.input-text:focus{border-color:var(--gold-ink);outline:0;box-shadow:0 0 0 3px rgba(122,90,40,.12)}
.woocommerce-account .woocommerce .button,.woocommerce-account .woocommerce button.button,.woocommerce-account .woocommerce a.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:1px solid transparent;border-radius:0;font-weight:600;font-size:13px;font-family:var(--sans);color:var(--white);background:linear-gradient(135deg,var(--charcoal),var(--hero));cursor:pointer}
.woocommerce-account .woocommerce .button:hover{color:var(--gold-light)}
.woocommerce-account .col2-set,.woocommerce-account .u-columns{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.woocommerce-account .woocommerce-form-login,.woocommerce-account .woocommerce-form-register{max-width:460px}
.woocommerce-account h2{margin:0 0 18px;font-weight:600;font-size:28px;line-height:1.1;font-family:var(--serif);color:var(--ink)}
.woocommerce-form__label-for-checkbox{display:flex;align-items:center;gap:10px;font-size:14px}
.woocommerce-LostPassword{margin-top:10px;font-size:13px}
/* „Zamówienie nr 47 złożone … jest obecnie …” — <mark> bez żółtego tła przeglądarki */
.woocommerce-MyAccount-content mark{padding:0;background:none;font-weight:600;color:var(--ink)}
/* szczegóły zamówienia w Moim koncie: adresy na jasnym tle (wc-classic.css zakłada ciemny panel „Zamówienie otrzymane”) */
.woocommerce-account .woocommerce-customer-details{margin-top:36px;padding:0;border-bottom:0}
.woocommerce-account .woocommerce-customer-details .woocommerce-column__title{color:var(--gold-ink)!important}
.woocommerce-account .woocommerce-customer-details address{color:var(--ink-soft)}
.woocommerce-account .woocommerce-columns--addresses{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:28px}

/* pola dodatkowe zamówienia (faktura, JST) pod adresami — w panelu „Zamówienie otrzymane” i w Moim koncie */
.woocommerce-customer-details .wc-block-order-confirmation-additional-fields-wrapper{margin-top:22px}
.woocommerce-customer-details .wc-block-order-confirmation-additional-fields-wrapper>h2{margin:0 0 10px;font-weight:400;font-size:10px;line-height:1;font-family:var(--sans);text-transform:uppercase;letter-spacing:.24em;color:var(--gold-light)}
.woocommerce-customer-details .wc-block-components-additional-fields-list{margin:0;font-size:13.5px;line-height:1.6;color:rgba(248,245,237,.86)}
.woocommerce-customer-details .wc-block-components-additional-fields-list dt{margin:10px 0 0;font-size:12px;color:var(--muted)}
.woocommerce-customer-details .wc-block-components-additional-fields-list dt:first-child{margin-top:0}
.woocommerce-customer-details .wc-block-components-additional-fields-list dd{margin:0}
.woocommerce-account .woocommerce-customer-details .wc-block-order-confirmation-additional-fields-wrapper>h2{color:var(--gold-ink)}
.woocommerce-account .woocommerce-customer-details .wc-block-components-additional-fields-list{color:var(--ink-soft)}
.woocommerce-account .woocommerce-customer-details .wc-block-components-additional-fields-list dt{color:var(--ink-mute)}
@media (max-width:820px){
  .woocommerce-account .ro-wc-content>.woocommerce{grid-template-columns:1fr;gap:28px}
  .woocommerce-account .col2-set,.woocommerce-account .u-columns{grid-template-columns:1fr}
  .woocommerce-MyAccount-navigation ul{display:flex;overflow-x:auto;gap:18px;border-top:0;border-bottom:1px solid var(--line-soft);scrollbar-width:none}
  .woocommerce-MyAccount-navigation li a{white-space:nowrap;border-bottom:0}
}
