/* MiF Zaar – EU/PL + NFZ. CSS jest celowo wąsko ograniczony do .mfz-smart-price. */
.mfz-smart-price,
.mfz-smart-price *{
  box-sizing:border-box;
}

.mfz-smart-price{
  display:inline-grid;
  width:auto;
  max-width:100%;
  gap:3px;
  vertical-align:top;
  color:#17384a;
  font-family:inherit;
  font-style:normal;
  line-height:1.35;
}

.mfz-smart-price__line{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px;
  min-width:0;
}

.mfz-smart-price__label{
  color:#365d70;
  font-size:.82em;
  font-weight:700;
  white-space:nowrap;
}

.mfz-smart-price__value{
  color:#0f6fae;
  font-size:1em;
  font-weight:820;
  white-space:nowrap;
}

.mfz-smart-price__value .woocommerce-Price-amount,
.mfz-smart-price__value .amount{
  color:inherit!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  white-space:nowrap!important;
}

.mfz-smart-price__refund{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:3px;
  color:#315f49;
  font-size:.72em;
  font-weight:650;
  line-height:1.4;
}

.mfz-smart-price__refund strong{
  color:#244f3b;
  font-weight:800;
  white-space:nowrap;
}

.mfz-smart-price__refund-mark{
  display:inline-flex;
  flex:0 0 auto;
  min-height:20px;
  align-items:center;
  justify-content:center;
  padding:2px 6px;
  border:1px solid #9dc9ae;
  border-radius:999px;
  color:#315f49;
  background:#eef8f1;
  font-size:10px;
  line-height:1;
  font-weight:850;
  letter-spacing:.2px;
}

/* Karty sklepu / kategorii / modułów Woo. Nie zmieniamy szerokości karty. */
.woocommerce ul.products li.product .price .mfz-smart-price,
body.post-type-archive-product .woocommerce ul.products li.product .price .mfz-smart-price,
body.tax-product_cat .woocommerce ul.products li.product .price .mfz-smart-price{
  display:grid;
  width:100%;
  gap:2px;
  font-size:16px;
}

.woocommerce ul.products li.product .price .mfz-smart-price__line{
  gap:5px;
}

.woocommerce ul.products li.product .price .mfz-smart-price__refund{
  margin-top:4px;
  font-size:12px;
}

/* Pojedynczy produkt — większa czytelność, bez wpływu na warianty i przycisk zakupu. */
body.single-product .mfz-product-buy-b25 .price .mfz-smart-price,
body.single-product .price .mfz-smart-price{
  display:grid;
  width:100%;
  gap:5px;
  font-size:22px;
  line-height:1.32;
}

body.single-product .price .mfz-smart-price__label{
  font-size:15px;
}

body.single-product .price .mfz-smart-price__refund{
  margin-top:4px;
  font-size:14px;
}

/* Tablet i telefon — każda cena w osobnym, stabilnym wierszu. */
@media(max-width:980px){
  .woocommerce ul.products li.product .price .mfz-smart-price{
    font-size:16px;
  }

  body.single-product .price .mfz-smart-price{
    font-size:21px;
  }
}

@media(max-width:680px){
  .mfz-smart-price{
    width:100%;
  }

  .mfz-smart-price__line{
    display:flex;
    width:100%;
    justify-content:flex-start;
    gap:6px;
  }

  .woocommerce ul.products li.product .price .mfz-smart-price{
    font-size:17px;
  }

  .woocommerce ul.products li.product .price .mfz-smart-price__refund{
    font-size:12px;
  }

  body.single-product .price .mfz-smart-price{
    font-size:22px;
  }

  body.single-product .price .mfz-smart-price__label{
    font-size:16px;
  }

  body.single-product .price .mfz-smart-price__refund{
    font-size:14px;
  }
}

/* Bardzo wąskie telefony — refundacja może przejść do dwóch linii, cena nie. */
@media(max-width:380px){
  .mfz-smart-price__refund{
    align-items:flex-start;
  }
}

/* v1.1.0 — dokładna cena wybranego wariantu/zestawu.
   WooCommerce w niektórych konfiguracjach zostawiał price_html pusty.
   PHP powyżej wymusza price_html; CSS poniżej zapewnia czytelność na telefonie. */
body.single-product form.variations_form .single_variation_wrap .woocommerce-variation-price{
  display:block;
}

body.single-product form.variations_form .single_variation_wrap .woocommerce-variation-price .price{
  display:block;
  color:#073651;
  font-weight:800;
}

@media(max-width:700px){
  body.single-product form.variations_form .single_variation_wrap .woocommerce-variation-price{
    display:block!important;
    width:100%!important;
    margin:12px 0 15px!important;
    padding:0!important;
    min-height:0!important;
  }

  body.single-product form.variations_form .single_variation_wrap .woocommerce-variation-price .price{
    display:block!important;
    margin:0!important;
    color:#073651!important;
    font-size:25px!important;
    line-height:1.25!important;
    font-weight:850!important;
  }

  body.single-product form.variations_form .single_variation_wrap .woocommerce-variation-price .price:before{
    content:"Cena wybranego zestawu";
    display:block!important;
    margin:0 0 4px!important;
    color:#365d70!important;
    font-size:14px!important;
    line-height:1.35!important;
    font-weight:700!important;
  }

  body.single-product form.variations_form .single_variation_wrap .woocommerce-variation-price del{
    opacity:.62;
    font-size:.78em;
    font-weight:600;
  }

  body.single-product form.variations_form .single_variation_wrap .woocommerce-variation-price ins{
    text-decoration:none;
  }
}

