/* ELGAR 0.1.8 - PROMOCJA: dopracowany burst dla kart produktow Dynamite.
   Faktyczny DOM: <ul class="product-flags js-product-flags"><li class="product-flag discount">-5%</li></ul>
   ELGAR: +18% rozmiaru, czytelniejszy napis PROMOCJA, lekki bialy obrys/cien.
*/
.product-miniature .product-flags .product-flag.discount {
  position: relative !important;
  top: -5px !important;
  left: -5px !important;
  right: auto !important;
  z-index: 12 !important;
  width: 90px !important;
  height: 90px !important;
  min-width: 90px !important;
  min-height: 90px !important;
  padding: 31px 5px 5px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  text-align: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #e30613 !important;
  color: #fff !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  line-height: .95 !important;
  letter-spacing: -.4px !important;
  text-transform: none !important;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 3px 4px rgba(0,0,0,.25)) !important;
  clip-path: polygon(50% 0%,60% 10%,74% 4%,79% 18%,94% 18%,90% 33%,100% 43%,88% 53%,94% 68%,79% 70%,74% 86%,60% 79%,50% 100%,40% 79%,26% 86%,21% 70%,6% 68%,12% 53%,0% 43%,10% 33%,6% 18%,21% 18%,26% 4%,40% 10%) !important;
  overflow: visible !important;
}

.product-miniature .product-flags .product-flag.discount::before {
  content: "PROMOCJA" !important;
  position: absolute !important;
  top: 20px !important;
  left: 0 !important;
  width: 100% !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .15px !important;
  text-align: center !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.16) !important;
}

/* ELGAR - nie pokazuj drugiego napisu SALE/ON SALE, jesli motyw go dodaje. */
.product-miniature .product-flags .product-flag.on-sale {
  display: none !important;
}

@media (max-width: 767px) {
  .product-miniature .product-flags .product-flag.discount {
    top: -3px !important;
    left: -3px !important;
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    padding-top: 24px !important;
    font-size: 18px !important;
  }
  .product-miniature .product-flags .product-flag.discount::before {
    top: 15px !important;
    font-size: 8px !important;
  }
}

/* ELGAR 0.1.9 - karta produktu Dynamite.
   Faktyczny DOM produktu: .images-container .product-cover-wrap > ul.product-flags.js-product-flags
   Ten sam burst co na listingu, ale wiekszy na stronie produktu.
*/
.product-container-top .product-cover-wrap .product-flags .product-flag.discount,
.images-container .product-cover-wrap .product-flags .product-flag.discount {
  position: relative !important;
  top: -6px !important;
  left: -6px !important;
  right: auto !important;
  z-index: 20 !important;
  width: 104px !important;
  height: 104px !important;
  min-width: 104px !important;
  min-height: 104px !important;
  padding: 36px 6px 6px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  text-align: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #e30613 !important;
  color: #fff !important;
  font-size: 27px !important;
  font-weight: 900 !important;
  line-height: .95 !important;
  letter-spacing: -.5px !important;
  text-transform: none !important;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 3px 5px rgba(0,0,0,.26)) !important;
  clip-path: polygon(50% 0%,60% 10%,74% 4%,79% 18%,94% 18%,90% 33%,100% 43%,88% 53%,94% 68%,79% 70%,74% 86%,60% 79%,50% 100%,40% 79%,26% 86%,21% 70%,6% 68%,12% 53%,0% 43%,10% 33%,6% 18%,21% 18%,26% 4%,40% 10%) !important;
  overflow: visible !important;
}

.product-container-top .product-cover-wrap .product-flags .product-flag.discount::before,
.images-container .product-cover-wrap .product-flags .product-flag.discount::before {
  content: "PROMOCJA" !important;
  position: absolute !important;
  top: 23px !important;
  left: 0 !important;
  width: 100% !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .2px !important;
  text-align: center !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.16) !important;
}

.product-container-top .product-cover-wrap .product-flags .product-flag.on-sale,
.images-container .product-cover-wrap .product-flags .product-flag.on-sale {
  display: none !important;
}

@media (max-width: 767px) {
  .product-container-top .product-cover-wrap .product-flags .product-flag.discount,
  .images-container .product-cover-wrap .product-flags .product-flag.discount {
    top: -3px !important;
    left: -3px !important;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    padding-top: 28px !important;
    font-size: 20px !important;
  }
  .product-container-top .product-cover-wrap .product-flags .product-flag.discount::before,
  .images-container .product-cover-wrap .product-flags .product-flag.discount::before {
    top: 17px !important;
    font-size: 9px !important;
  }
}

/* ELGAR 0.2.0 - spokojniejsza hierarchia promocji. */
.product-miniature .product-flags .product-flag.discount {
  width: 82px !important; height: 82px !important; min-width:82px !important; min-height:82px !important;
  top:-4px !important; left:-4px !important; padding-top:28px !important; font-size:21px !important;
  background:#d90816 !important;
}
.product-miniature .product-flags .product-flag.discount::before { top:18px !important; font-size:9px !important; }
.product-container-top .product-cover-wrap .product-flags .product-flag.discount,
.images-container .product-cover-wrap .product-flags .product-flag.discount {
  width:94px !important; height:94px !important; min-width:94px !important; min-height:94px !important;
  top:-4px !important; left:-4px !important; padding-top:33px !important; font-size:24px !important; background:#d90816 !important;
}
.product-container-top .product-cover-wrap .product-flags .product-flag.discount::before,
.images-container .product-cover-wrap .product-flags .product-flag.discount::before { top:21px !important; font-size:11px !important; }

/* ELGAR 0.2.0 - cena jest wazniejsza niz naklejka. */
.elpromo-saving { display:block; width:max-content; max-width:100%; margin-top:5px; padding:3px 7px; border-radius:5px; background:#fff0f1; color:#c90b18; font-size:12px; font-weight:700; line-height:1.25; }
.product-container-top .elpromo-saving { margin-top:8px; font-size:14px; padding:5px 9px; }
@media (max-width:767px){
 .product-miniature .product-flags .product-flag.discount{width:66px!important;height:66px!important;min-width:66px!important;min-height:66px!important;padding-top:23px!important;font-size:17px!important}
 .product-miniature .product-flags .product-flag.discount::before{top:14px!important;font-size:8px!important}
 .product-container-top .product-cover-wrap .product-flags .product-flag.discount,.images-container .product-cover-wrap .product-flags .product-flag.discount{width:76px!important;height:76px!important;min-width:76px!important;min-height:76px!important;padding-top:26px!important;font-size:19px!important}
}


/* ELGAR 0.2.1 - czytelna korzysc procentowa bez powtarzania kwoty. */
.elpromo-saving {
  display:inline-flex !important;
  align-items:center !important;
  width:max-content !important;
  max-width:100% !important;
  margin-top:6px !important;
  padding:4px 9px !important;
  border-radius:6px !important;
  background:#eaf7ee !important;
  color:#237a3b !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1.25 !important;
}
.product-container-top .elpromo-saving {
  margin-top:8px !important;
  padding:6px 11px !important;
  font-size:14px !important;
}

/* ELGAR 0.2.2 - powiekszony tylko komunikat oszczednosci; ceny PrestaShop bez zmian. */
.product-miniature .elpromo-saving {
  font-size:16px !important;
  font-weight:800 !important;
  padding:6px 12px !important;
  border-radius:7px !important;
  line-height:1.2 !important;
}
.product-container-top .elpromo-saving,
.images-container ~ * .elpromo-saving {
  font-size:18px !important;
  padding:7px 14px !important;
}
@media (max-width:767px){
  .product-miniature .elpromo-saving { font-size:14px !important; padding:5px 10px !important; }
  .product-container-top .elpromo-saving { font-size:16px !important; padding:6px 12px !important; }
}


/* ELGAR 0.2.4 - zielone badge: lzejszy tekst, pogrubiony tylko procent; ceny PrestaShop bez zmian. */
.elpromo-saving {
  background:#16a34a !important;
  color:#fff !important;
  border:1px solid #12813c !important;
  box-shadow:0 1px 2px rgba(0,0,0,.10) !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
  vertical-align:middle !important;
}
.product-miniature .elpromo-saving {
  font-size:14px !important;
  font-weight:500 !important;
  line-height:1 !important;
  padding:7px 10px !important;
  margin:4px 0 0 7px !important;
}
.product-container-top .elpromo-saving {
  font-size:16px !important;
  font-weight:500 !important;
  line-height:1 !important;
  padding:8px 12px !important;
  margin:6px 0 0 9px !important;
}
@media (max-width:767px){
  .product-miniature .elpromo-saving { font-size:13px !important; padding:6px 9px !important; margin-left:6px !important; }
  .product-container-top .elpromo-saving { font-size:14px !important; padding:7px 10px !important; margin-left:7px !important; }
}

/* ELGAR 0.2.4 - procent pozostaje mocnym akcentem we wszystkich zielonych blokach. */
.elpromo-saving .elpromo-saving-pct { font-weight:700 !important; }


/* ELGAR 0.2.5 - odporny wiersz ceny na dlugie kwoty (xxx,yy / xxxx,yy).
   Cena i stara cena maja pierwszenstwo; zielony badge moze zejsc do kolejnego wiersza.
   Nie zmieniamy fontow ani wartosci cen PrestaShop. */
.product-miniature .product-price-and-shipping {
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:baseline !important;
  column-gap:6px !important;
  row-gap:5px !important;
  min-width:0 !important;
}
.product-miniature .product-price-and-shipping > .price,
.product-miniature .product-price-and-shipping > .regular-price,
.product-miniature .product-price-and-shipping > .current-price,
.product-miniature .product-price-and-shipping > [class*="price"] {
  flex:0 0 auto !important;
}
.product-miniature .product-price-and-shipping .elpromo-saving {
  margin:0 !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
}
/* Gdy karta jest ciasna, badge przechodzi naturalnie do nastepnego wiersza. */
@media (max-width: 1399px) {
  .product-miniature .product-price-and-shipping { column-gap:5px !important; }
}
@media (max-width: 767px) {
  .product-miniature .product-price-and-shipping { column-gap:4px !important; row-gap:4px !important; }
}
