/* Top Promo Bar */
.promotions-topbar {
  width: 100%;
  font-size: 14px;
  line-height: 1.3;
}
.promotions-topbar .container {
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promotions-topbar__countdown {
  font-weight: bold;
  margin-left: 12px;
  white-space: nowrap;
}

.promotions-topbar__link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}
.promotions-topbar__link:hover {
  text-decoration: underline;
}

.promotions-badge {
  background: #e20613;
  color: #fff;
  position: absolute;
  top: 15px;
  left: auto;
  right: 10px;
  z-index: 2;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
  line-height: 1;
}

.promotions-badge-tl {
  left: 10px;
  right: auto;
}

.promotions-badge-tr {
  right: 10px;
  left: auto;
}

/* żeby badge był overlay na miniaturze */
a.image {
  position: relative;
  display: block;
}

/* === PROMOTIONS: fixes to match homefeatured === */

.promotions-home-featured .promo-slide {
  height: 100%;
}

.promotions-home-featured .wrapper-product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.promotions-home-featured .wrapper-product a.image {
  display: block;
}

.promotions-home-featured .wrapper-product a.name {
  display: block;
  height: 56px;
  overflow: hidden;
}

.promotions-home-featured .wrapper-product .price,
.promotions-home-featured .wrapper-product a.name {
  position: relative;
  top: 0;
  transition: all 0.4s;
}

.promotions-home-featured .wrapper-product:hover .price {
  top: -28px;
}

.promotions-home-featured .wrapper-product:hover .name {
  top: -20px;
}

.promotions-home-featured .wrapper-product a.btn-add-to-cart .bullet svg path,
.promotions-home-featured .wrapper-product a.btn-add-to-cart .bullet svg line {
  fill: #fff;
  stroke: #fff;
}

.promotions-home-featured .wrapper-product .price {
  white-space: nowrap;
}

section.promotions-home-featured {
  padding-top: 30px;
  padding-bottom: 30px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.promotions-home-featured .action-product > div {
  width: 24px;
  height: 24px;
}

/* === PROMOTIONS + NEWNESSBADGE: stack badges === */

/* Przypadek 1:
   HTML: Nowość -> Promocja
   Czyli aktualnie tak, jak masz na screenie z homefeatured */
a.image .newness-badge + .promotions-badge,
#view_full_size .newness-badge + .promotions-badge,
.gallery-mobileSlider .tns-item .newness-badge + .promotions-badge {
  top: 41px !important;
  right: 10px !important;
  left: auto !important;
  z-index: 2 !important;
}

a.image .promotions-badge:has(+ .newness-badge),
#view_full_size .promotions-badge:has(+ .newness-badge),
.gallery-mobileSlider .tns-item .promotions-badge:has(+ .newness-badge) {
  top: 41px !important;
  right: 10px !important;
  left: auto !important;
  z-index: 2 !important;
}

@media (max-width: 767px) {
  a.image .newness-badge + .promotions-badge,
  #view_full_size .newness-badge + .promotions-badge,
  .gallery-mobileSlider .tns-item .newness-badge + .promotions-badge,
  a.image .promotions-badge:has(+ .newness-badge),
  #view_full_size .promotions-badge:has(+ .newness-badge),
  .gallery-mobileSlider .tns-item .promotions-badge:has(+ .newness-badge) {
    top: 36px !important;
    right: 8px !important;
    left: auto !important;
  }
}