/* wc.css: elementy WooCommerce i wtyczki Autopay, których makieta nie miała (komunikaty, lista bramek i kanałów płatności, pola konta
   przy abonamencie, wiersz rabatu, pas trybu „wkrótce”). Wartości i role pisma z flow.css / shop.css; kolory tylko z tokenów base.css. */

/* ramy WooCommerce bez własnego układu; odstępy nagłówków sekcji jak w makiecie (legend → pole 20, legend → lista metod 16; WC dokłada opakowania) */
.woocommerce-notices-wrapper:empty { display: none; }
.co-sec > .woocommerce-billing-fields { margin-top: 20px; }   /* nie „legend +”: WC wstawia przed polami element wc-order-attribution-inputs */
.woocommerce-billing-fields + .woocommerce-account-fields { margin-top: 16px; }
.co-sec legend + .woocommerce-checkout-payment { margin-top: 16px; }
.sort-form { display: contents; }
.woocommerce-pagination { margin: 32px 0 0; font-size: var(--fs-small); }

/* tryb „wkrótce”: pas pod paskiem (napis N, do zatwierdzenia) */
.shop-notice { margin: 0; padding: 12px 16px; background: var(--band); font-size: var(--fs-small); font-weight: 500; line-height: 1.3; text-align: center; color: var(--text); }

/* komunikaty WooCommerce: zdania 15 px, bez ramek i ikon; błędy w kolorze błędu pól */
.woocommerce-error, .woocommerce-message, .woocommerce-info, .woocommerce-notice { list-style: none; margin: 0 0 24px; padding: 0; font-size: var(--fs-small); line-height: 1.45; color: var(--text); }
.woocommerce-error { color: var(--accent-deep); }
.woocommerce-error li { margin: 0; }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-error a, .woocommerce-info a, .woocommerce-message a { color: inherit; text-underline-offset: 3px; }
.woocommerce-NoticeGroup-checkout { grid-column: 1 / -1; }   /* skrypt kasy WC wstawia błędy na początek formularza (siatka): nad obiema kolumnami */
.woocommerce-NoticeGroup-checkout .woocommerce-error { margin-bottom: 0; }
.blockUI.blockOverlay { background: rgba(253, 248, 245, .6) !important; }   /* przesłona WC przy odświeżaniu kasy: krem zamiast bieli */
.woocommerce-checkout-payment noscript { display: block; margin-bottom: 12px; font-size: var(--fs-small); color: var(--muted); }

/* koszyk: rabat (kupon) i zapasowy odnośnik „Usuń” bez skryptów */
.sum-coupon-row dt { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.sum-coupon { font-weight: 600; letter-spacing: .04em; }
.sum-coupon-rm { font-size: var(--fs-small); color: var(--muted); text-underline-offset: 3px; }
.sum-coupon-line { display: flex; justify-content: space-between; gap: 16px; margin: 12px 0 0; font-size: var(--fs-body); line-height: 1.3; color: var(--text); }
.ci-rm-link { font-size: var(--fs-small); color: var(--muted); text-underline-offset: 3px; }

/* lista bramek WooCommerce w roli .pay-list z makiety (ul.wc_payment_methods ma klasę pay-list) */
.pay-list li { list-style: none; margin: 0; padding: 0; }
.pay-list > li.wc_payment_method { position: relative; }
.pay-list > li.wc_payment_method + li.wc_payment_method { border-top: 1px solid var(--line); }
.pay-list .pay-none { padding: 14px 16px; }
.pay-list .pay-none .woocommerce-info { margin: 0; }
/* bramka inna niż Autopay (cheque przy abonamencie): wiersz jak .pay-row */
.pay-list > li.wc_payment_method:not(.payment_method_bluemedia) > label { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px 0 48px; cursor: pointer; font: 500 var(--fs-body)/1.3 var(--font-body); color: var(--ink); }
.pay-list > li.wc_payment_method:not(.payment_method_bluemedia) > label img { height: 18px; width: auto; margin-left: auto; }
.pay-list > li.wc_payment_method:not(.payment_method_bluemedia) > input[type="radio"] { position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--muted); transition: box-shadow .15s ease; }
.pay-list > li.wc_payment_method:not(.payment_method_bluemedia) > input[type="radio"]:checked { box-shadow: inset 0 0 0 6px var(--accent); }
.pay-list > li.wc_payment_method:not(.payment_method_bluemedia) > input[type="radio"]:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.pay-list > li.wc_payment_method:not(.payment_method_bluemedia):has(input:checked) { background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.pay-list > li.wc_payment_method:not(.payment_method_bluemedia) > .payment_box { margin: 0; padding: 0 16px 14px 48px; background: none; font-size: var(--fs-small); line-height: 1.45; color: var(--text); }
.pay-list .payment_box p { margin: 0; }
.pay-list .payment_box p + p { margin-top: 8px; }

/* Autopay (bramka bluemedia): jedyna metoda, więc bez własnego wiersza; wnętrze = lista kanałów z wtyczki (Payment_Channel_Renderer):
   ul#shipping_method > div.bm-group-<slug> > li > ul > li.bm-payment-channel-item > label (radio, logo, nazwa) + span.bm-payment-channel-method-desc */
.pay-list > li.payment_method_bluemedia > input, .pay-list > li.payment_method_bluemedia > label { display: none; }
.pay-list > li.payment_method_bluemedia > .payment_box { display: block !important; margin: 0; padding: 0; background: none; }
.pay-list .payment_box.payment_method_bacs { margin: 0; padding: 0; background: none; }
.pay-list .payment_box.payment_method_bacs:not(:has(.bm-payment-channels-wrapper)) { display: none !important; }   /* opis bramki z ustawień wtyczki: lista mówi sama */
.bm-payment-channels-wrapper ul, .bm-payment-channels-wrapper li, .bm-payment-channels-wrapper div { margin: 0; padding: 0; list-style: none; border: 0; background: none; box-shadow: none; }
.bm-payment-channel-item, .bm-payment-channel-group-item { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-rows: minmax(52px, auto) auto; align-items: center; column-gap: 12px; padding: 0 16px; cursor: pointer; }
.bm-payment-channel-item + .bm-payment-channel-item, .bm-payment-channel-group-item + .bm-payment-channel-item { border-top: 1px solid var(--line); }
[class*="bm-group-"] + [class*="bm-group-"] > li > ul > li:first-child { border-top: 1px solid var(--line); }
.bm-payment-channel-item::after, .bm-payment-channel-group-item::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px var(--accent); opacity: 0; transition: opacity .15s ease; }
.bm-payment-channel-item:has(input:checked), .bm-payment-channel-group-item:has(input:checked) { background: var(--accent-tint); }
.bm-payment-channel-item:has(input:checked)::after, .bm-payment-channel-group-item:has(input:checked)::after { opacity: 1; }
.bm-payment-channel-label, .bm-payment-channel-group-item > label { display: contents; cursor: pointer; }
.bm-payment-channels-wrapper input[type="radio"] { grid-column: 1; grid-row: 1; width: 20px; height: 20px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--muted); transition: box-shadow .15s ease; }
.bm-payment-channels-wrapper input[type="radio"]:checked { box-shadow: inset 0 0 0 6px var(--accent); }
.bm-payment-channels-wrapper input[type="radio"]:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.bm-payment-channel-method-name, .bm-payment-channel-group-method-name { grid-column: 2; grid-row: 1; margin: 0; font: 500 var(--fs-body)/1.3 var(--font-body); color: var(--ink); }
.bm-payment-channel-method-logo, .bm-payment-channel-group-method-logo { grid-column: 3; grid-row: 1; display: block; width: auto; max-width: 72px; height: 20px; object-fit: contain; }
.bm-payment-channel-method-desc { grid-column: 2 / -1; grid-row: 2; display: none; font-size: var(--fs-small); line-height: 1.45; color: var(--text); }
.bm-payment-channel-item:has(input:checked) > .bm-payment-channel-method-desc { display: block; padding: 0 0 14px; }
.bm-payment-channel-item:has(input:checked) > .bm-payment-channel-method-desc:empty { display: none; }
/* BLIK: pole kodu w wierszu (makieta: .blik-f w wierszu BLIK), podpowiedź wtyczki tylko dla czytnika ekranu */
.bm-blik-code-wrapper { display: grid; gap: 6px; max-width: 220px; }
.bm-blik-code-wrapper > label, .bm-blik-code-wrapper > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#bluemedia_blik_code { width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-s); background: var(--card); color: var(--ink); font: 400 1rem/1.3 var(--font-body); letter-spacing: .14em; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--muted); transition: box-shadow .15s ease; }
#bluemedia_blik_code::placeholder { color: var(--muted); opacity: 1; letter-spacing: 0; }
#bluemedia_blik_code:hover { box-shadow: inset 0 0 0 1px var(--ink); }
#bluemedia_blik_code:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.bm-blik-code-wrapper.is-bad #bluemedia_blik_code { box-shadow: inset 0 0 0 2px var(--accent-deep); }
.bm-blik-code-wrapper .f-err { margin: 0; }
.bluemedia-simple-status-box { font-size: var(--fs-small); line-height: 1.4; color: var(--text); }
.bluemedia-simple-status-box div:empty, .bluemedia-simple-status-box span:empty { display: none; }
.bluemedia-error-wrapper { color: var(--accent-deep); }
.bm-blik-overlay { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(253, 248, 245, .92); }
.bm-blik-overlay p { max-width: 36rem; margin: 0; padding: 24px; border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-body); line-height: 1.5; color: var(--ink); text-align: center; }
.bm-blik-overlay-status--error { color: var(--accent-deep); }
/* grupa przelewów (lista banków pod wierszem grupy): kafle logo w siatce */
.bm-group-expandable-wrapper { padding: 4px 16px 16px; }
.bm-group-expandable-wrapper ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bm-group-expandable-wrapper .bm-payment-channel-item { display: block; min-height: 56px; padding: 0; border: 0 !important; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--line); }
.bm-group-expandable-wrapper .bm-payment-channel-item::after { border-radius: var(--r-s); }
.bm-group-expandable-wrapper .bm-payment-channel-label { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px; }
.bm-group-expandable-wrapper .bm-payment-channel-label input[type="radio"], .bm-group-expandable-wrapper .bm-payment-channel-method-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.bm-group-expandable-wrapper .bm-payment-channel-method-logo { max-width: 80px; height: 28px; }
.bm-group-expandable-wrapper .bm-payment-channel-method-desc { display: none !important; }

/* pola konta WooCommerce (rejestracja przy abonamencie platformy): jak pola kasy z makiety */
.co-account { margin-top: 16px; }
.co-account .form-row { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; }
.co-account .form-row:last-child { margin-bottom: 0; }
.co-account .form-row label { font-size: var(--fs-small); font-weight: 500; line-height: 1.3; color: var(--text); }
.co-account .form-row .required { color: var(--accent-deep); text-decoration: none; }
.co-account .input-text { width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: var(--r-s); background: var(--card); color: var(--ink); font: 400 1rem/1.3 var(--font-body); box-shadow: inset 0 0 0 1px var(--muted); }
.co-account .input-text:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.co-account .input-text:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.co-account .create-account .clear { display: none; }
.co-account .woocommerce-password-strength, .co-account .woocommerce-password-hint { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.co-account .show-password-input { display: none; }
/* zgoda abonamentu z inc/ap-membership.php (woocommerce_form_field checkbox) jak .check */
.ap-consent { margin: 0; padding: 0; }
.ap-consent .woocommerce-input-wrapper { display: contents; }
.ap-consent label.checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: var(--fs-body); line-height: 1.45; color: var(--text); }
.ap-consent input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 1px 0 0; appearance: none; -webkit-appearance: none; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--muted); display: grid; place-items: center; }
.ap-consent input[type="checkbox"]::after { content: ""; width: 11px; height: 6px; margin-top: -2px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); opacity: 0; }
.ap-consent input[type="checkbox"]:checked { background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ap-consent input[type="checkbox"]:checked::after { opacity: 1; }
.ap-consent .required { display: none; }
.co-agree .woocommerce-privacy-policy-text { margin: 0; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.co-agree .woocommerce-privacy-policy-text a { color: inherit; text-underline-offset: 3px; }

/* podziękowanie abonamentu (szablon WooCommerce) w kolumnie podziękowania */
.thanks-col .woocommerce-order { font-size: var(--fs-body); line-height: 1.5; color: var(--text); }
.thanks-col .woocommerce-order ul.order_details { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 8px; }
.thanks-col .woocommerce-order ul.order_details li { margin: 0; }
.thanks-col .woocommerce-order .button { display: inline-flex; align-items: center; min-height: 50px; padding: .7rem 1.4rem; border-radius: var(--r-s); background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }
.thanks-col .wc-thankyou-hooks:empty { display: none; }

/* ===== tryb „wkrotce” (Michał 19.10: „w miejscu, gdzie powinno być przekierowanie do bramki, coś w stylu »wkrótce otwarcie«”) =====
   Zamiast listy metod płatności jedno zdanie w polu o tym samym kształcie co lista (biała karta, granica --muted, promień --r-m);
   przycisk prowadzący do bramki zastąpiony nieaktywnym „Wkrótce otwarcie” na pasie (--band, pismo --muted 5:1), bez cienia i bez uniesienia.
   Sekcji „Dane” w tym trybie nie ma (form-checkout.php), więc zdanie stoi tuż pod nagłówkiem „Płatność”. */
.pay-soon { margin: 16px 0 0; padding: 15px 16px; border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 1px var(--muted); color: var(--text); font-size: 1.0625rem; line-height: 1.45; }
html[data-look="u"] body .co-submit.co-soon, html[data-look="u"] body .co-submit.co-soon:hover, html[data-look="u"] body .co-submit.co-soon:active { background: var(--band); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed; transform: none; }
@media (forced-colors: active) { .pay-soon { border: 1px solid CanvasText; } .co-submit.co-soon { color: GrayText; border: 1px solid GrayText; } }
