/* =========================================================
   Magiczna Pasieka — style widoków WooCommerce.
   Domyślne arkusze WooCommerce są wyłączone (inc/woocommerce.php).
   Kolejność: karta i lista → komunikaty
   ========================================================= */

/* ---------- 1. Karta produktu w siatce ---------- */
.card { position: relative; cursor: default; }
.card__media .slot,
.card__media .media { position: absolute; inset: 0; }
.card__link { color: inherit; }
.card__link:hover .card__name { color: var(--gold); }
/* Cała karta prowadzi do produktu, przycisk koszyka leży nad linkiem. */
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__price del { display: none; }
.card__price ins { text-decoration: none; }
.card .btn--cart {
  position: relative; z-index: 1;
  display: block; text-align: center;
}
.card .btn--cart.loading { opacity: .55; pointer-events: none; }
.card .btn--cart.added::after { content: " ✓"; }
.card .added_to_cart {
  position: relative; z-index: 1;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: center;
}

/* ---------- 2. Lista produktów ---------- */
.filters .filter { display: inline-flex; align-items: center; }
.filter.is-active:hover { color: #0A0A0A; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-ordering { margin: 24px 0 0; display: flex; justify-content: flex-end; }
.woocommerce-ordering select {
  padding: 10px 14px; background: var(--bg-card); color: var(--text);
  border: 1px solid var(--line-3); font-size: 13px;
}
.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line-3); color: var(--text); font-size: 13px;
}
.woocommerce-pagination .page-numbers a:hover { border-color: var(--gold); color: var(--gold); }
.woocommerce-pagination .page-numbers .current { background: var(--gold); border-color: var(--gold); color: #0A0A0A; }
.woocommerce-no-products-found { padding-top: 32px; }

/* ---------- 3. Komunikaty ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  list-style: none; margin: 0 0 24px; padding: 16px 20px;
  background: var(--bg-card); border: 1px solid var(--line-3); border-left: 3px solid var(--gold);
  font-size: 14.5px; line-height: 1.55; color: var(--text-2);
}
.woocommerce-error { border-left-color: #D9534F; }
.woocommerce-message .button,
.woocommerce-info .button {
  float: right; margin-left: 16px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- 4. Strona produktu ---------- */
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--gold); }
/* Dwie kolumny jak w szablonie. Sekcje pod spodem zajmują całą szerokość,
   więc auto-fit nie zwinąłby pustych kolumn i stąd jawna liczba kolumn. */
.single-product div.product {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px; align-items: start;
}
@media (max-width: 700px) {
  .single-product div.product { grid-template-columns: minmax(0, 1fr); }
}
.single-product div.product > .pd-desc,
.single-product div.product > .related,
.single-product div.product > .up-sells { grid-column: 1 / -1; }
/* Odstępy z szablonu (72 i 84 px) pomniejszone o odstęp siatki. */
.single-product div.product > .pd-desc { margin-top: 24px; }
.single-product div.product > .related,
.single-product div.product > .up-sells { margin-top: 36px; }
.single-product .summary { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pd__excerpt p { margin-bottom: 12px; }
.pd__excerpt p:last-child { margin-bottom: 0; }
.pd__price del { display: none; }
.pd__price ins { text-decoration: none; }

/* Atuty pod przyciskiem: wspólne dla wszystkich produktów, teksty z Customizera */
.pd-perks { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pd-perks__item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pd-perks__icon {
  width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-3); color: var(--gold);
}
.pd-perks__icon svg { width: 22px; height: 22px; }
.pd-perks__icon circle { fill: var(--bg); }
.pd-perks__text { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }

.single-product form.cart {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 0;
}
.quantity { display: flex; align-items: center; border: 1px solid var(--line-3); }
.quantity:has(input[type="hidden"]) { display: none; }
.qty__btn {
  width: 46px; height: 52px; background: transparent; border: 0;
  color: var(--text); font-size: 18px; cursor: pointer;
}
.qty__btn:hover { color: var(--gold); }
.quantity input.qty {
  width: 48px; height: 52px; padding: 0; border: 0; background: transparent;
  color: var(--text); text-align: center; font-size: 16px; font-weight: 600;
  -moz-appearance: textfield; appearance: textfield;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.single_add_to_cart_button {
  flex: 1; min-width: 200px; height: 52px; padding: 0 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; background: var(--gold); color: #0A0A0A;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background .18s;
}
.single_add_to_cart_button:hover { background: var(--gold-hi); }
.single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }

/* Galeria WooCommerce: zdjęcia w proporcji 4:5, cały kadr otwiera się po kliknięciu */
.woocommerce-product-gallery { position: relative; min-width: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery img { width: 100%; height: auto; display: block; }
.woocommerce-product-gallery__image { aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); }
.woocommerce-product-gallery__image a { display: block; height: 100%; }
.woocommerce-product-gallery__image img { height: 100%; object-fit: cover; }
.woocommerce-product-gallery__image.is-landscape img { object-fit: contain; background: var(--bg-soft); }
.woocommerce-product-gallery .flex-control-thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  list-style: none; margin: 10px 0 0; padding: 0;
}
.woocommerce-product-gallery .flex-control-thumbs img { aspect-ratio: 4 / 5; object-fit: cover; cursor: pointer; opacity: .55; border: 1px solid var(--line); }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--gold); }
.woocommerce-product-gallery__trigger {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 10, .8); border: 1px solid var(--line-3); font-size: 0; color: var(--text);
}
.woocommerce-product-gallery__trigger img { display: none !important; }
.woocommerce-product-gallery__trigger::before { content: "⤢"; font-size: 17px; }
.woocommerce-product-gallery__trigger:hover { border-color: var(--gold); color: var(--gold); }
/* Na szerokim ekranie miniatury stoją w kolumnie po lewej stronie zdjęcia i nie wydłużają strony. */
@media (min-width: 701px) {
  .woocommerce-product-gallery--thumbs { padding-left: 96px; }
  .woocommerce-product-gallery--thumbs .flex-control-thumbs {
    position: absolute; top: 0; bottom: 0; left: 0; width: 84px; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
    overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent;
  }
  .woocommerce-product-gallery--thumbs .flex-control-thumbs li { flex-shrink: 0; }
}

/* Produkty powiązane */
.related > h2,
.up-sells > h2 { font-size: 26px; margin-bottom: 26px; }
.related .grid--shop,
.up-sells .grid--shop { padding-top: 0; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---------- 5. Warianty produktu: kafelki zamiast listy ---------- */
.single-product form.variations_form { display: block; margin: 6px 0 0; }
.variations { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.variations tbody, .variations tr, .variations th, .variations td { display: block; padding: 0; text-align: left; }
.variations th.label label {
  display: block; margin-bottom: 10px;
  font-size: 11px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--text-4);
}
.variations td.value { position: relative; }
.variations select {
  padding: 12px 14px; background: var(--bg-card); color: var(--text);
  border: 1px solid var(--line-3); font-size: 15px;
}
.variant-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-tiles[hidden] { display: none; }
.variant-tile {
  min-width: 104px; padding: 14px 22px; background: transparent;
  border: 1px solid var(--line-3); color: var(--text);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.variant-tile:hover { border-color: var(--gold); }
.variant-tile.is-active { background: var(--gold); border-color: var(--gold); color: #0A0A0A; }
.variant-tile:disabled { opacity: .35; cursor: not-allowed; }
/* Gramatura albo pojemność produktu bez wariantów: ten sam wygląd, ale kafelek niczego nie wybiera. */
.pd-weight { margin: 6px 0 0; }
.pd-weight__label {
  display: block; margin-bottom: 10px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-4);
}
.variant-tile--static { cursor: default; text-align: center; }
/* Z działającym skryptem listę zastępują kafelki, a cenę wariantu pokazuje .pd__price. */
.has-variant-tiles .variations select {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.has-variant-tiles .reset_variations,
.has-variant-tiles .woocommerce-variation-price { display: none !important; }
.reset_variations {
  display: inline-block; margin-top: 10px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4);
}
.woocommerce-variation-add-to-cart { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.woocommerce-variation-description p { font-size: 14.5px; line-height: 1.55; color: var(--text-2); margin-bottom: 14px; }

/* ---------- 6. Koszyk, kasa i potwierdzenie: elementy wspólne ---------- */
.wc-page .button,
.woocommerce-message .button,
.woocommerce-info .button,
.return-to-shop .button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; background: transparent; border: 1px solid var(--line-3); color: var(--text);
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.wc-page .button:hover,
.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.return-to-shop .button:hover { border-color: var(--gold); color: var(--gold); }
.wc-page .button:disabled,
.wc-page .button.disabled { opacity: .4; cursor: not-allowed; }
.wc-page .button.alt,
.wc-page .checkout-button,
.wc-page #place_order {
  background: var(--gold); border-color: var(--gold); color: #0A0A0A;
}
.wc-page .button.alt:hover,
.wc-page .checkout-button:hover,
.wc-page #place_order:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: #0A0A0A; }
.return-to-shop { margin-top: 20px; }

.wc-page h2,
.wc-page h3 { font-size: 22px; margin: 0 0 18px; }
.wc-page table.shop_table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border: 1px solid var(--line);
}
.wc-page table.shop_table th {
  padding: 16px; text-align: left; border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--text-4);
}
.wc-page table.shop_table td {
  padding: 16px; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--text-2); vertical-align: middle;
}
.wc-page table.shop_table tr:last-child > th,
.wc-page table.shop_table tr:last-child > td { border-bottom: 0; }
.wc-page table.shop_table .amount { color: var(--gold); font-weight: 600; }
.wc-page dl.variation { margin: 6px 0 0; font-size: 13px; color: var(--text-3); }
.wc-page dl.variation dt,
.wc-page dl.variation dd { display: inline; margin: 0; }
.wc-page dl.variation p { display: inline; }

/* Pola formularzy */
.wc-page .form-row { display: block; margin: 0 0 16px; padding: 0; }
.wc-page .form-row label {
  display: block; margin-bottom: 8px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.wc-page .required { color: var(--gold); text-decoration: none; }
.wc-page .optional { text-transform: none; letter-spacing: 0; color: var(--text-5); }
.wc-page input.input-text,
.wc-page textarea,
.wc-page select {
  width: 100%; padding: 13px 14px; border-radius: 0;
  background: var(--bg-card); border: 1px solid var(--line-3); color: var(--text); font-size: 15px;
}
.wc-page textarea { min-height: 110px; resize: vertical; }
.wc-page input.input-text:focus,
.wc-page textarea:focus,
.wc-page select:focus { outline: none; border-color: var(--gold); }
.wc-page .woocommerce-invalid input.input-text,
.wc-page .woocommerce-invalid select { border-color: #D9534F; }
.wc-page .checkout-inline-error-message { margin-top: 6px; font-size: 13px; color: #E07B77; }
.wc-page label.checkbox,
.wc-page .woocommerce-form__label-for-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--text-2); line-height: 1.5;
}
.wc-page input[type="checkbox"],
.wc-page input[type="radio"] { accent-color: var(--gold); margin: 3px 0 0; flex-shrink: 0; }

/* Lista krajów i podobne pola (select2) */
.select2-container--default .select2-selection--single {
  height: 48px; border-radius: 0; background: var(--bg-card); border: 1px solid var(--line-3);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 14px; line-height: 46px; color: var(--text);
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.select2-dropdown { border-radius: 0; background: var(--bg-card); border-color: var(--line-3); color: var(--text); }
.select2-container--default .select2-search--dropdown .select2-search__field {
  background: var(--bg); border: 1px solid var(--line-3); color: var(--text);
}
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] { background: #1C1917; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--gold); color: #0A0A0A; }
/* Nakładka podczas przeliczania koszyka i kasy: ciemna zamiast białej */
.blockUI.blockOverlay { background: #0A0A0A !important; opacity: .6 !important; }

/* ---------- 7. Koszyk ---------- */
.woocommerce-cart-form .product-remove { width: 54px; }
.woocommerce-cart-form a.remove {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 1px solid var(--line-3); color: var(--text-3); font-size: 18px; line-height: 1;
}
.woocommerce-cart-form a.remove:hover { border-color: var(--gold); color: var(--gold); }
.woocommerce-cart-form .product-thumbnail { width: 96px; }
.woocommerce-cart-form .product-thumbnail img { width: 64px; height: 64px; object-fit: cover; display: block; }
.woocommerce-cart-form .product-name a { color: var(--text); font-weight: 600; }
.woocommerce-cart-form .product-name a:hover { color: var(--gold); }
.woocommerce-cart-form .quantity { display: inline-flex; }
/* Pole ilości ma klasę input-text, więc bez tej reguły rozciąga się na całą komórkę. */
.wc-page .quantity input.qty { width: 48px; padding: 0; border: 0; background: transparent; }
.woocommerce-cart-form .qty__btn,
.woocommerce-cart-form .quantity input.qty { height: 44px; }
/* Komórka zostaje komórką tabeli (flex zerwałby colspan), stąd układ na float. */
.woocommerce-cart-form td.actions::after { content: ""; display: block; clear: both; }
.woocommerce-cart-form .coupon { float: left; display: flex; gap: 10px; }
.woocommerce-cart-form button[name="update_cart"] { float: right; }
.woocommerce-cart-form .coupon .input-text { width: 220px; }
.cart-collaterals { display: flex; justify-content: flex-end; margin-top: 32px; }
.cart_totals { width: min(100%, 480px); }
.cart_totals table.shop_table th { width: 40%; }
.cart_totals .order-total .amount { font-size: 20px; }
.wc-proceed-to-checkout { margin-top: 16px; }
.wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; padding: 17px 24px; }
/* Tylko lista w tabeli podsumowania: wtyczka Autopay używa tego samego id dla listy kanałów płatności. */
.wc-page .woocommerce-shipping-totals ul#shipping_method { list-style: none; margin: 0; padding: 0; }
.wc-page .woocommerce-shipping-totals ul#shipping_method > li { margin: 0 0 6px; display: flex; align-items: flex-start; gap: 8px; }
.wc-page .woocommerce-shipping-totals ul#shipping_method label { font-size: 14.5px; color: var(--text-2); }
/* Furgonetka: "Wybierz punkt odbioru" jako wyraźny przycisk pod metodą wysyłki, a nie zwykły link obok ceny. */
.wc-page .woocommerce-shipping-totals ul#shipping_method > li { flex-wrap: wrap; }
.wc-page #select-point-container { flex-basis: 100%; margin: 6px 0 8px 26px; }
.wc-page #select-point {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; background: var(--gold); color: #0A0A0A; line-height: 1.3;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: background .18s, color .18s;
}
.wc-page #select-point::before {
  content: ""; width: 15px; height: 15px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%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'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wc-page #select-point:hover { background: var(--gold-hi); }
.wc-page #select-point-label { color: inherit; }
/* Wybrany punkt: tekst pod przyciskiem (wtyczka daje mu jasne tło), a przycisk "Zmień punkt odbioru" robi się obrysem. */
.wc-page #selected-point { background: transparent; margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.wc-page #selected-point:empty { display: none; }
.wc-page #select-point:has(+ #selected-point:not(:empty)) { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.woocommerce-shipping-destination,
.shipping-calculator-button { font-size: 13px; color: var(--text-3); }
.shipping-calculator-form { margin-top: 12px; }

/* ---------- 8. Kasa ---------- */
.woocommerce-form-coupon-toggle { margin-bottom: 0; }
.checkout_coupon {
  margin-bottom: 24px; padding: 20px;
  background: var(--bg-card); border: 1px solid var(--line);
}
.checkout_coupon p { margin-bottom: 12px; color: var(--text-2); font-size: 14.5px; }
form.checkout {
  display: grid; gap: 28px 48px; align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-areas: "details heading" "details review";
  grid-template-rows: auto 1fr;
}
form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
#customer_details { grid-area: details; min-width: 0; }
#order_review_heading { grid-area: heading; margin: 0; }
#order_review { grid-area: review; min-width: 0; }
#customer_details .col-1,
#customer_details .col-2 { width: auto; float: none; }
#customer_details .col-2 { margin-top: 28px; }
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px;
}
.woocommerce-billing-fields__field-wrapper > .form-row,
.woocommerce-shipping-fields__field-wrapper > .form-row { grid-column: 1 / -1; }
.woocommerce-billing-fields__field-wrapper > .form-row-first,
.woocommerce-shipping-fields__field-wrapper > .form-row-first { grid-column: 1; }
.woocommerce-billing-fields__field-wrapper > .form-row-last,
.woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 2; }
#ship-to-different-address { font-size: 16px; margin-bottom: 16px; }
.woocommerce-checkout-review-order-table tfoot th { font-size: 12px; }
.woocommerce-checkout-review-order-table .order-total .amount { font-size: 20px; }
#payment { margin-top: 20px; background: var(--bg-card); border: 1px solid var(--line); }
#payment ul.payment_methods { list-style: none; margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--line); }
#payment ul.payment_methods li { padding: 8px 0; }
#payment ul.payment_methods li label { display: inline; margin-left: 8px; font-size: 15px; color: var(--text); }
#payment ul.payment_methods li img { display: inline-block; max-height: 24px; margin-left: 8px; vertical-align: middle; }
#payment .payment_box {
  margin: 10px 0 4px; padding: 14px 16px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 14px; line-height: 1.55; color: var(--text-2);
}
#payment .place-order { padding: 20px; }
#payment #place_order { width: 100%; padding: 18px 24px; font-size: 13px; }

/* Autopay (Blue Media): wtyczka zakłada jasny motyw i ma bardzo długie selektory,
   więc reguły zaczynają się od podwójnego #payment, żeby je przebić. */
#payment#payment li.payment_method_bluemedia > label { display: inline-flex; align-items: center; gap: 10px; margin-left: 8px; vertical-align: middle; }
#payment#payment li.payment_method_bluemedia > label > img {
  width: auto; height: 30px; margin: 0; padding: 5px 9px;
  background: #fff; border-radius: 4px; object-fit: contain;
}
/* Wtyczka pokazuje samo logo bez nazwy, więc obok dopisujemy, co się pod nim kryje. */
#payment#payment li.payment_method_bluemedia > label::after { content: "BLIK lub przelew online"; font-size: 15px; color: var(--text); }
#payment#payment li.payment_method_bluemedia > input { margin: 0; vertical-align: middle; }
/* Zagnieżdżone pola wtyczki dostawały ramkę i tło jak osobne okienka. */
#payment#payment li.payment_method_bluemedia .payment_box .payment_box { margin: 0; padding: 0; border: 0; background: none; }
#payment#payment li.payment_method_bluemedia .payment_box .payment_box:empty { display: none !important; }
#payment#payment li.payment_method_bluemedia .bm-payment-channels-wrapper ul.woocommerce-shipping-methods {
  display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none;
}
#payment#payment li.payment_method_bluemedia .bm-payment-channels-wrapper ul.woocommerce-shipping-methods > div { margin: 0; }
#payment#payment li.payment_method_bluemedia .bm-payment-channels-wrapper ul.woocommerce-shipping-methods li { padding: 0; margin: 0; }
#payment#payment li.payment_method_bluemedia .bm-payment-channels-wrapper ul.woocommerce-shipping-methods > div > li > ul { margin: 0; padding: 0; list-style: none; }
/* Kanał (BLIK, przelew internetowy): wiersz z logo na białym tle i nazwą; wybrany ma złotą ramkę. */
#payment#payment li.payment_method_bluemedia .bm-payment-channels-wrapper ul.woocommerce-shipping-methods > div > li > ul > li {
  background: var(--bg-card); border: 1px solid var(--line) !important;
}
#payment#payment li.payment_method_bluemedia .bm-payment-channels-wrapper ul.woocommerce-shipping-methods > div > li > ul > li.selected,
#payment#payment li.payment_method_bluemedia .bm-payment-channels-wrapper ul.woocommerce-shipping-methods > div > li > ul > li.bm-selected-group { border-color: var(--gold) !important; }
#payment#payment li.payment_method_bluemedia .bm-payment-channels-wrapper ul.woocommerce-shipping-methods > div > li > ul > li > label {
  display: flex; align-items: center; gap: 12px; min-height: 0; margin: 0; padding: 12px 14px;
  font-size: 15px; color: var(--text); cursor: pointer;
}
#payment#payment li.payment_method_bluemedia .bm-payment-channels-wrapper ul.woocommerce-shipping-methods > div > li > ul > li > label > input[type="radio"] { margin: 0; }
#payment#payment li.payment_method_bluemedia .bm-payment-channels-wrapper ul.woocommerce-shipping-methods > div > li > ul > li > label img {
  flex: none; width: 64px; height: 40px; max-width: none; margin: 0; padding: 4px 6px;
  background: #fff; border-radius: 4px; object-fit: contain;
}
#payment#payment li.payment_method_bluemedia .bm-payment-channels-wrapper ul.woocommerce-shipping-methods > div > li > ul > li > label p { margin: 0; }
#payment#payment li.payment_method_bluemedia .bm-payment-channels-wrapper ul.woocommerce-shipping-methods > div > li > ul > li > .bm-payment-channel-method-desc {
  padding: 0 14px 12px; font-size: 13.5px; color: var(--text-3);
}
/* Lista banków po wybraniu przelewu: siatka białych kafelków z logo. */
#payment#payment li.payment_method_bluemedia .bm-group-expandable-wrapper.active {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; padding-top: 10px;
}
#payment#payment li.payment_method_bluemedia .bm-group-expandable-wrapper > li {
  background: #fff; border: 2px solid transparent !important; border-radius: 4px;
}
#payment#payment li.payment_method_bluemedia .bm-group-expandable-wrapper > li.selected { border-color: var(--gold) !important; }
#payment#payment li.payment_method_bluemedia .bm-group-expandable-wrapper > li > label { display: block; margin: 0; padding: 0; }
#payment#payment li.payment_method_bluemedia .bm-group-expandable-wrapper > li > label img {
  display: block; width: 100%; height: 48px; margin: 0; padding: 6px; object-fit: contain;
}
.woocommerce-terms-and-conditions-wrapper { margin-bottom: 16px; }
.woocommerce-privacy-policy-text p { margin-bottom: 14px; font-size: 13px; line-height: 1.55; color: var(--text-4); }

/* ---------- 9. Potwierdzenie zamówienia ---------- */
.woocommerce-thankyou-order-received {
  margin-bottom: 24px; padding: 18px 20px;
  background: var(--bg-card); border: 1px solid var(--line-3); border-left: 3px solid var(--gold);
  font-size: 17px; color: var(--text);
}
ul.woocommerce-order-overview {
  display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 32px; padding: 0;
  background: var(--bg-card); border: 1px solid var(--line);
}
ul.woocommerce-order-overview li {
  flex: 1 1 180px; padding: 16px 20px; border-right: 1px solid var(--line);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-4);
}
ul.woocommerce-order-overview li:last-child { border-right: 0; }
ul.woocommerce-order-overview li strong {
  display: block; margin-top: 6px;
  font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--text);
}
.woocommerce-order-details,
.woocommerce-customer-details { margin-top: 32px; }
.woocommerce-customer-details address {
  padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--line);
  font-style: normal; line-height: 1.7; color: var(--text-2);
}
.woocommerce-bacs-bank-details ul { list-style: none; padding: 0; color: var(--text-2); }

/* ---------- 10. Koszyk i kasa na wąskich ekranach ---------- */
@media (max-width: 900px) {
  form.checkout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "details" "heading" "review";
    grid-template-rows: auto;
  }
}
@media (max-width: 720px) {
  .woocommerce-cart-form table.shop_table thead { display: none; }
  .woocommerce-cart-form table.shop_table tr { display: block; border-bottom: 1px solid var(--line); }
  .woocommerce-cart-form table.shop_table td {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    border-bottom: 0; padding: 10px 16px; width: auto;
  }
  .woocommerce-cart-form table.shop_table td[data-title]::before {
    content: attr(data-title);
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-4);
  }
  .woocommerce-cart-form .product-thumbnail { display: none !important; }
  .woocommerce-cart-form td.actions { flex-direction: column; align-items: stretch; }
  .woocommerce-cart-form td.actions::after { display: none; }
  .woocommerce-cart-form .coupon { float: none; flex-wrap: wrap; }
  .woocommerce-cart-form .coupon .button,
  .woocommerce-cart-form button[name="update_cart"] { float: none; width: 100%; }
  .woocommerce-cart-form .coupon .input-text { width: 100%; }
  .cart-collaterals { justify-content: stretch; }
  .cart_totals { width: 100%; }
}
@media (max-width: 560px) {
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-billing-fields__field-wrapper > .form-row-first,
  .woocommerce-billing-fields__field-wrapper > .form-row-last,
  .woocommerce-shipping-fields__field-wrapper > .form-row-first,
  .woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 1; }
}

/* ---------- 11. Wariant niedostępny ---------- */
.variant-tile.is-unavailable { color: var(--text-4); text-decoration: line-through; }
.variant-tile.is-unavailable.is-active { background: var(--bg-card); border-color: var(--line-3); color: var(--text-3); }
.single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }
