/* InPost — przewidywany czas dostawy */

#inpost_pl_delivery_terms,
#inpost_pl_block_delivery_terms {
  display: block !important;

  margin: 4px 0 0 !important;
  padding: 0 !important;

  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;

  color: #666 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}

/* Elementy utworzone wewnątrz komunikatu przez wtyczkę */
#inpost_pl_delivery_terms *,
#inpost_pl_block_delivery_terms * {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;

  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
/* Kasa — tekst pomocniczy pod nagłówkiem „Metody płatności” */

.wp-block-woocommerce-checkout-payment-block
.wc-block-components-checkout-step__title::after {
  content: "Wybierz płatność online lub przy odbiorze";
  display: block;

  margin-top: 6px;

  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}
/* =========================================================
   Kasa — komunikat wysyłki pod metodami dostawy
   ========================================================= */

#bf-shipping-countdown-under-methods {
  display: block !important;
  width: 100%;
  box-sizing: border-box;

  margin: 0 0 14px !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;

  color: #111 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

#bf-shipping-countdown-under-methods .bf-ship-countdown {
  display: inline !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;

  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

/* Mniejszy odstęp pod nagłówkiem */
.wc-block-components-checkout-step__heading-container:
has(+ #bf-shipping-countdown-under-methods) {
  margin-bottom: 2px !important;
}
/* =========================================================
   Kasa — box edycji koszyka
   ========================================================= */

body.woocommerce-checkout .bf-checkout-edit-cart-box {
  margin: 16px 0 18px;
  padding: 16px 18px 18px;

  background: #fbf6f5;
  border: 1px solid #e2c6c0;
  border-radius: 10px;
}

body.woocommerce-checkout .bf-checkout-edit-cart-box__title,
body.woocommerce-checkout .bf-checkout-edit-cart-box__text {
  padding-left: 8px;
}

body.woocommerce-checkout .bf-checkout-edit-cart-box__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  width: fit-content;
  min-width: 170px;
  min-height: 40px;

  margin: 0 auto;
  padding: 8px 22px;

  background: #fff;
  color: #111;

  border: 2px solid #111;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

body.woocommerce-checkout
.bf-checkout-edit-cart-box__button::after {
  content: "»";
  font-size: 16px;
  line-height: 1;
}

body.woocommerce-checkout
.bf-checkout-edit-cart-box__button:hover {
  background: #d9a29b;
  color: #000;
  border-color: #d9a29b;
}

@media (max-width: 767px) {
  body.woocommerce-checkout .bf-checkout-edit-cart-box {
    margin: 10px 0 18px;
    padding: 13px 14px;
  }

  body.woocommerce-checkout
  .bf-checkout-edit-cart-box__button {
    width: 100%;
  }
}
/* =========================================================
   Kasa — przycisk „Złóż zamówienie”
   ========================================================= */

body.woocommerce-checkout
.wc-block-components-checkout-place-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 56px;
  padding: 12px 32px;

  background: #fff;
  color: #111;

  border: 3px solid #111;
  border-radius: 999px;

  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;

  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

body.woocommerce-checkout
.wc-block-components-checkout-place-order-button:hover {
  background: #d9a29b;
  color: #000;
  border-color: #d9a29b;
}

@media (max-width: 767px) {
  body.woocommerce-checkout
  .wc-block-components-checkout-place-order-button {
    width: 100%;
    min-height: 52px;
    font-size: 18px;
  }
}
/* =========================================================
   Kasa — GLS: logo i przewidywany czas dostawy
   ========================================================= */

body.woocommerce-checkout
span.wc-block-components-radio-control__label[id*="gls" i]::after,
body.woocommerce-checkout
label[for*="gls" i]
.wc-block-components-radio-control__label::after {
  content: "Przewidywany czas dostawy: 1 dzień roboczy";
  display: block;

  min-height: 26px;
  margin-top: 8px;
  padding: 2px 0 0 52px;

  background-color: transparent;
  background-image: url("/wp-content/uploads/2026/05/GLS.png");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 42px auto;

  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;

  border: 0;
  outline: 0;
  box-shadow: none;
}
/* =========================================================
   Kasa — GLS / Apaczka: przycisk „Wybierz punkt”
   ========================================================= */

body.woocommerce-checkout
button.apaczka_pl_geowidget_block {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 200px !important;
  min-height: 62px !important;

  margin: 14px auto 18px !important;
  padding: 10px 18px !important;

  background: #f3b8ad !important;
  color: #fff !important;

  border: 0 !important;
  border-radius: 3px !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16) !important;

  font-family: "Inter", sans-serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;

  text-align: center !important;
  text-decoration: none !important;

  cursor: pointer !important;

  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

body.woocommerce-checkout
button.apaczka_pl_geowidget_block:hover,
body.woocommerce-checkout
button.apaczka_pl_geowidget_block:focus,
body.woocommerce-checkout
button.apaczka_pl_geowidget_block:active {
  background: #e6a397 !important;
  color: #fff !important;
  text-decoration: none !important;
  outline: 0 !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18) !important;
}
/* =========================================================
   Kasa — „Kontynuuj zakupy” pod „Złóż zamówienie”
   ========================================================= */

.bf-checkout-continue-shopping {
  display: flex !important;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 56px;
  margin-top: 14px;
  padding: 12px 32px;
  box-sizing: border-box;

  background: #fff;
  color: #111;

  border: 3px solid #111;
  border-radius: 999px;

  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;

  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.bf-checkout-continue-shopping:hover,
.bf-checkout-continue-shopping:focus-visible {
  background: #d9a29b;
  color: #111;
  border-color: #d9a29b;
}

.bf-checkout-continue-shopping:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .bf-checkout-continue-shopping {
    min-height: 52px;
    margin-top: 12px;
    padding: 10px 20px;
    font-size: 18px;
  }
}

/* =========================================================
   Kasa — podsumowanie, powrót, cross-sell i kupon
   Przeniesione z CSS osadzonego na stronie
   ========================================================= */

/* =========================================================
   KASA — PODSUMOWANIE ZAMÓWIENIA / FINAL POPRAWNY
   ========================================================= */

/* Ukrywa opis i cenę pod nazwą, ale NIE rusza ceny po prawej */
.wc-block-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-metadata,
.wc-block-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-price {
  display: none !important;
}

/* DESKTOP — szersze podsumowanie zamówienia */
@media (min-width: 1024px) {
  .wc-block-checkout .wc-block-components-main {
    flex-basis: 54% !important;
    width: 54% !important;
  }

  .wc-block-checkout .wc-block-components-sidebar {
    flex-basis: 46% !important;
    width: 46% !important;
  }
}

/* PRODUKT — układ wspólny */
.wc-block-checkout .wc-block-components-order-summary-item {
  display: grid !important;
  align-items: center !important;
}

.wc-block-checkout .wc-block-components-order-summary-item__image {
  grid-column: 1;
  align-self: center !important;
}

.wc-block-checkout .wc-block-components-order-summary-item__image img,
.wc-block-checkout .wc-block-components-product-image img {
  object-fit: contain !important;
}

.wc-block-checkout .wc-block-components-order-summary-item__description {
  grid-column: 2;
  align-self: center !important;

  display: grid !important;
  align-content: center !important;
  justify-items: start !important;

  text-align: left !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wc-block-checkout .wc-block-components-product-name,
.wc-block-checkout .wc-block-components-product-name a {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;

  text-align: left !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.wc-block-checkout .wc-block-components-order-summary-item__total-price {
  grid-column: 3;
  align-self: center !important;
  justify-self: end !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;

  text-align: right !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* MOBILE / RWD */
@media (max-width: 767px) {
  .wc-block-checkout .wc-block-components-order-summary-item {
    grid-template-columns: 76px minmax(0, 1fr) 92px !important;
    column-gap: 10px !important;
  }

  .wc-block-checkout .wc-block-components-order-summary-item__image,
  .wc-block-checkout .wc-block-components-order-summary-item__image img,
  .wc-block-checkout .wc-block-components-product-image,
  .wc-block-checkout .wc-block-components-product-image img {
    width: 76px !important;
    height: 76px !important;
    max-width: 76px !important;
  }

  .wc-block-checkout .wc-block-components-order-summary-item__description {
    min-height: 76px !important;
  }

  .wc-block-checkout .wc-block-components-product-name,
  .wc-block-checkout .wc-block-components-product-name a {
    font-size: 13px !important;
    line-height: 1.22 !important;
    font-weight: 500 !important;
  }

  .wc-block-checkout .wc-block-components-order-summary-item__total-price {
    min-height: 76px !important;
  }

  .wc-block-checkout .wc-block-components-order-summary-item__total-price,
  .wc-block-checkout .wc-block-components-order-summary-item__total-price .wc-block-components-formatted-money-amount {
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
  }

  /* RWD — ukrywa tylko pasek "Oszczędzasz", nie cenę */
  .wc-block-checkout .wc-block-components-order-summary-item__total-price .wc-block-components-sale-badge,
  .wc-block-checkout .wc-block-components-order-summary-item__total-price .wc-block-components-product-sale-badge {
    display: none !important;
  }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1023px) {
  .wc-block-checkout .wc-block-components-order-summary-item {
    grid-template-columns: 78px minmax(0, 1fr) auto !important;
    column-gap: 12px !important;
  }

  .wc-block-checkout .wc-block-components-order-summary-item__image,
  .wc-block-checkout .wc-block-components-order-summary-item__image img,
  .wc-block-checkout .wc-block-components-product-image,
  .wc-block-checkout .wc-block-components-product-image img {
    width: 78px !important;
    height: 78px !important;
    max-width: 78px !important;
  }

  .wc-block-checkout .wc-block-components-order-summary-item__description {
    min-height: 78px !important;
  }

  .wc-block-checkout .wc-block-components-product-name,
  .wc-block-checkout .wc-block-components-product-name a {
    font-size: 13.5px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
  }

  .wc-block-checkout .wc-block-components-order-summary-item__total-price,
  .wc-block-checkout .wc-block-components-order-summary-item__total-price .wc-block-components-formatted-money-amount {
    font-size: 14px !important;
    font-weight: 600 !important;
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .wc-block-checkout .wc-block-components-order-summary-item {
    grid-template-columns: 88px minmax(0, 1fr) auto !important;
    column-gap: 16px !important;
  }

  .wc-block-checkout .wc-block-components-order-summary-item__image,
  .wc-block-checkout .wc-block-components-order-summary-item__image img,
  .wc-block-checkout .wc-block-components-product-image,
  .wc-block-checkout .wc-block-components-product-image img {
    width: 88px !important;
    height: 88px !important;
    max-width: 88px !important;
  }

  .wc-block-checkout .wc-block-components-order-summary-item__description {
    min-height: 88px !important;
  }

  .wc-block-checkout .wc-block-components-product-name,
  .wc-block-checkout .wc-block-components-product-name a {
    font-size: 13px !important;
    line-height: 1.28 !important;
    font-weight: 500 !important;
  }

  .wc-block-checkout .wc-block-components-order-summary-item__total-price {
    min-height: 88px !important;
  }

  .wc-block-checkout .wc-block-components-order-summary-item__total-price,
  .wc-block-checkout .wc-block-components-order-summary-item__total-price .wc-block-components-formatted-money-amount {
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
  }
}

/* =========================================================
   KASA — "Kontynuuj zakupy" jak przycisk "Złóż zamówienie"
   ========================================================= */

body.page-id-20872 a.wc-block-components-checkout-return-to-cart-button,
body.woocommerce-checkout a.wc-block-components-checkout-return-to-cart-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 56px !important;
  padding: 12px 32px !important;

  background: #ffffff !important;
  color: #111111 !important;

  border: 3px solid #111111 !important;
  border-radius: 999px !important;

  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;

  text-align: center !important;
  text-decoration: none !important;

  box-shadow: none !important;
  cursor: pointer !important;

  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

body.page-id-20872 a.wc-block-components-checkout-return-to-cart-button:hover,
body.woocommerce-checkout a.wc-block-components-checkout-return-to-cart-button:hover {
  background: #d9a29b !important;
  color: #000000 !important;
  border-color: #d9a29b !important;
}

/* Mobile */
@media (max-width: 767px) {
  body.page-id-20872 a.wc-block-components-checkout-return-to-cart-button,
  body.woocommerce-checkout a.wc-block-components-checkout-return-to-cart-button {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }
}

/* =========================================================
   BONAFORA — CROSS-SELL W KOSZYKU / KASIE
   shortcode: [bf_cart_cross_sells]
   ========================================================= */

.bf-cart-cross-sells-woo {
  margin-top: 36px !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Nagłówek */
.bf-cart-cross-sells-woo__heading {
  margin: 0 0 26px 0 !important;
  color: #111 !important;
  font-size: 34px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  text-align: left !important;
}

/* Siatka */
.bf-cart-cross-sells-woo ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 34px !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Karta produktu */
.bf-cart-cross-sells-woo ul.products li.product {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  text-align: center !important;
}

.bf-cart-cross-sells-woo ul.products li.product a {
  color: inherit !important;
  text-decoration: none !important;
}

.bf-cart-cross-sells-woo ul.products li.product .woocommerce-LoopProduct-link,
.bf-cart-cross-sells-woo ul.products li.product .woocommerce-loop-product__link {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}

/* Zdjęcie */
.bf-cart-cross-sells-woo ul.products li.product img:not(.yith-wcwl-icon):not(.yith-wcwl-custom-icon):not(.yith-wcwl-add-to-wishlist-button-icon) {
  display: block !important;
  width: 100% !important;
  height: clamp(260px, 24vw, 340px) !important;
  max-height: 340px !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
}

/* Swatche */
.bf-cart-cross-sells-woo .bonafora-loop-swatches-slot {
  width: 100% !important;
  min-height: 34px !important;
  margin: 0 0 8px 0 !important;
}

.bf-cart-cross-sells-woo .bonafora-loop-swatches,
.bf-cart-cross-sells-woo .bonafora-full-swatches {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  width: 100% !important;
  min-height: 34px !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
}

.bf-cart-cross-sells-woo .bonafora-loop-swatch,
.bf-cart-cross-sells-woo .bonafora-swatch-more {
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  border-radius: 6px !important;
}

.bf-cart-cross-sells-woo .bonafora-loop-swatch__inner {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 6px !important;
}

.bf-cart-cross-sells-woo .bonafora-swatch-more {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f1f1f1 !important;
  color: #111 !important;
  border: 1px solid #d8d8d8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* Tytuł */
.bf-cart-cross-sells-woo ul.products li.product .woocommerce-loop-product__title {
  min-height: 78px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  color: #111 !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  text-align: center !important;
}

/* Dla produktów bez swatchy */
.bf-cart-cross-sells-woo ul.products li.product:not(:has(.bonafora-loop-swatches)) .woocommerce-loop-product__title {
  margin-top: 44px !important;
}

/* Cena */
.bf-cart-cross-sells-woo ul.products li.product .price,
.bf-cart-cross-sells-woo ul.products li.product .price .woocommerce-Price-amount,
.bf-cart-cross-sells-woo ul.products li.product .woocommerce-Price-amount {
  display: block !important;
  margin: 0 0 24px 0 !important;
  color: #111 !important;
  font-size: 24px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  text-align: center !important;
}

/* Ukrycie ilości */
.bf-cart-cross-sells-woo ul.products li.product .quantity {
  display: none !important;
}

/* Przycisk */
.bf-cart-cross-sells-woo ul.products li.product .button,
.bf-cart-cross-sells-woo ul.products li.product .add_to_cart_button,
.bf-cart-cross-sells-woo ul.products li.product button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 300px !important;
  min-height: 56px !important;
  margin-top: auto !important;
  padding: 12px 28px !important;
  background: #fff !important;
  color: #111 !important;
  border: 3px solid #111 !important;
  border-radius: 999px !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-transform: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.bf-cart-cross-sells-woo ul.products li.product .button::after,
.bf-cart-cross-sells-woo ul.products li.product .add_to_cart_button::after {
  content: "»" !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

/* Wishlist */
.bf-cart-cross-sells-woo .yith-add-to-wishlist-button-block,
.bf-cart-cross-sells-woo .yith-wcwl-add-to-wishlist,
.bf-cart-cross-sells-woo .bonafora-wishlist-icon {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bf-cart-cross-sells-woo .yith-add-to-wishlist-button-block a,
.bf-cart-cross-sells-woo .yith-wcwl-add-to-wishlist a,
.bf-cart-cross-sells-woo .bonafora-wishlist-icon a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-decoration: none !important;
}

.bf-cart-cross-sells-woo .yith-add-to-wishlist-button-block a::before,
.bf-cart-cross-sells-woo .yith-wcwl-add-to-wishlist a::before,
.bf-cart-cross-sells-woo .bonafora-wishlist-icon a::before {
  content: none !important;
  display: none !important;
}

.bf-cart-cross-sells-woo img.yith-wcwl-icon,
.bf-cart-cross-sells-woo img.yith-wcwl-custom-icon,
.bf-cart-cross-sells-woo img.yith-wcwl-add-to-wishlist-button-icon {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.bf-cart-cross-sells-woo .yith-wcwl-add-to-wishlist-button__label {
  display: none !important;
}


/* Tablet */
@media (max-width: 1023px) {
  .bf-cart-cross-sells-woo ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }

  .bf-cart-cross-sells-woo ul.products li.product img:not(.yith-wcwl-icon):not(.yith-wcwl-custom-icon):not(.yith-wcwl-add-to-wishlist-button-icon) {
    height: clamp(260px, 42vw, 380px) !important;
    max-height: 380px !important;
  }

  .bf-cart-cross-sells-woo ul.products li.product .woocommerce-loop-product__title {
    min-height: 72px !important;
    font-size: 18px !important;
  }
}

/* Mobile — 2 produkty w rzędzie */
@media (max-width: 767px) {
  .bf-cart-cross-sells-woo__heading {
    font-size: 24px !important;
  }

  .bf-cart-cross-sells-woo ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }

  .bf-cart-cross-sells-woo ul.products li.product img:not(.yith-wcwl-icon):not(.yith-wcwl-custom-icon):not(.yith-wcwl-add-to-wishlist-button-icon) {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 3 / 4 !important;
  }

  .bf-cart-cross-sells-woo .bonafora-loop-swatches,
  .bf-cart-cross-sells-woo .bonafora-full-swatches {
    gap: 5px !important;
    min-height: 30px !important;
  }

  .bf-cart-cross-sells-woo .bonafora-loop-swatch,
  .bf-cart-cross-sells-woo .bonafora-swatch-more,
  .bf-cart-cross-sells-woo .bonafora-loop-swatch__inner {
    flex-basis: 28px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
  }

  .bf-cart-cross-sells-woo .bonafora-swatch-more {
    font-size: 10px !important;
  }

  .bf-cart-cross-sells-woo ul.products li.product:not(:has(.bonafora-loop-swatches)) .woocommerce-loop-product__title {
    margin-top: 36px !important;
  }

  .bf-cart-cross-sells-woo ul.products li.product .woocommerce-loop-product__title {
    min-height: 76px !important;
    font-size: 15px !important;
  }

  .bf-cart-cross-sells-woo ul.products li.product .price,
  .bf-cart-cross-sells-woo ul.products li.product .woocommerce-Price-amount {
    font-size: 17px !important;
    margin-bottom: 16px !important;
  }

  .bf-cart-cross-sells-woo ul.products li.product .button,
  .bf-cart-cross-sells-woo ul.products li.product .add_to_cart_button,
  .bf-cart-cross-sells-woo ul.products li.product button {
    max-width: 100% !important;
    min-height: 46px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
  }

  .bf-cart-cross-sells-woo ul.products li.product .button::after,
  .bf-cart-cross-sells-woo ul.products li.product .add_to_cart_button::after {
    font-size: 18px !important;
  }
}
/* KASA - przycisk "Zastosuj" przy kodzie rabatowym */
form.wc-block-components-totals-coupon__form button,
form.wc-block-components-totals-coupon__form .wc-block-components-button {
  background-color: #d9a29b !important;
  border: 2px solid #d9a29b !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  min-height: 50px !important;
  padding: 0 28px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  transition: all 0.25s ease !important;
  opacity: 1 !important;
}

/* Hover - efekt sklepowy */
form.wc-block-components-totals-coupon__form button:hover,
form.wc-block-components-totals-coupon__form .wc-block-components-button:hover {
  background-color: #ffffff !important;
  border-color: #d9a29b !important;
  color: #d9a29b !important;
  transform: translateY(-1px);
}

/* Kliknięcie */
form.wc-block-components-totals-coupon__form button:active,
form.wc-block-components-totals-coupon__form .wc-block-components-button:active {
  transform: translateY(0);
  box-shadow: none !important;
}

/* Nieaktywny przycisk, gdy kod rabatowy nie jest wpisany */
form.wc-block-components-totals-coupon__form button:disabled,
form.wc-block-components-totals-coupon__form button[disabled],
form.wc-block-components-totals-coupon__form button[aria-disabled="true"] {
  background-color: #d9a29b !important;
  border-color: #d9a29b !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Pole wpisywania kodu - żeby pasowało do przycisku */
form.wc-block-components-totals-coupon__form input {
  min-height: 50px !important;
  border-radius: 999px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  border: 1px solid #d8d8d8 !important;
}

/* Focus pola kodu */
form.wc-block-components-totals-coupon__form input:focus {
  border-color: #d9a29b !important;
  box-shadow: 0 0 0 1px #d9a29b !important;
  outline: none !important;
}
/*
 * Kasa — komunikat podczas ładowania produktów
 * w podsumowaniu zamówienia.
 */
.wp-block-woocommerce-checkout-order-summary-block:not(
    :has(.wc-block-components-order-summary-item)
)::after {
    content: "Ładujemy podsumowanie zamówienia…";
    display: block;
    padding: 18px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/*
 * Po pojawieniu się produktów komunikat znika automatycznie.
 */
.wp-block-woocommerce-checkout-order-summary-block:has(
    .wc-block-components-order-summary-item
)::after {
    content: none;
}
/* BONAFORA — GLS: przycisk wyboru punktu */
.woocommerce-checkout .bf-gls-point-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 200px !important;
    min-height: 62px !important;
    margin: 14px auto 18px auto !important;
    padding: 10px 18px !important;

    background: #f3b8ad !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 3px !important;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16) !important;

    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-decoration: none !important;

    cursor: pointer !important;
}

/* Hover */
.woocommerce-checkout .bf-gls-point-button:hover {
    background: #e6a397 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Focus / active */
.woocommerce-checkout .bf-gls-point-button:focus,
.woocommerce-checkout .bf-gls-point-button:active {
    background: #e6a397 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18) !important;
}