/* GeSmart: stessa grafica PROMO ridotta in tutte le viste del prodotto.
 * L'idoneità alla promozione resta nel template, per il gruppo cliente.
 * Elenco e compatta conservano le proprie posizioni e gli spazi riservati.
 */
html body .product-cover {
  position: relative;
}

html body :is(.product-miniature .thumbnail-top, .product-cover) > .gs-product-promo-badge {
  position: absolute !important;
  top: auto !important;
  right: 8px !important;
  bottom: 4px !important;
  left: auto !important;
  z-index: 8;
  display: block !important;
  width: 64px;
  height: 82px;
  transform: scale(.70) !important;
  transform-origin: right bottom !important;
  pointer-events: none !important;
}

html body :is(#js-product-list .product-miniature, #product .product-cover, .product-miniature, .product-cover) .gs-product-promo-badge > .gs-product-promo-badge__tag {
  position: absolute !important;
  top: 0;
  right: 7px;
  display: flex;
  width: 48px;
  height: 58px;
  align-items: center;
  justify-content: center;
  background: var(--gs-promo-badge-bg, #ff7200);
  color: var(--gs-promo-badge-icon, #fff);
  clip-path: polygon(18% 0, 78% 0, 100% 20%, 100% 88%, 50% 100%, 0 88%, 0 18%);
  transform: rotate(-8deg);
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 22%));
}

html body :is(#js-product-list .product-miniature, #product .product-cover, .product-miniature, .product-cover) .gs-product-promo-badge > .gs-product-promo-badge__tag::before {
  content: "";
  position: absolute;
  top: 7px;
  right: auto;
  left: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gs-promo-badge-icon, #fff);
}

html body :is(#js-product-list .product-miniature, #product .product-cover, .product-miniature, .product-cover) .gs-product-promo-badge > .gs-product-promo-badge__tag::after {
  content: none;
}

html body :is(#js-product-list .product-miniature, #product .product-cover, .product-miniature, .product-cover) .gs-product-promo-badge .gs-product-promo-badge__percent {
  margin-top: 8px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  transform: rotate(8deg);
}

html body :is(#js-product-list .product-miniature, #product .product-cover, .product-miniature, .product-cover) .gs-product-promo-badge > .gs-product-promo-badge__ribbon {
  position: absolute !important;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: block;
  min-width: 64px;
  margin-top: 0;
  padding: 4px 7px 5px;
  background: var(--gs-promo-ribbon-bg, #0069cd);
  color: var(--gs-promo-ribbon-text, #fff);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 3px rgb(0 0 0 / 15%);
}

html body :is(#js-product-list .product-miniature, #product .product-cover, .product-miniature, .product-cover) .gs-product-promo-badge::after {
  content: "✦";
  position: absolute;
  top: -8px;
  right: -2px;
  z-index: 5;
  color: var(--gs-promo-sparkle, #f5a000);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 1px rgb(255 255 255 / 80%);
}

/* La vista compatta aveva anche vecchie regole display:none. */
html body #js-product-list .products.st-catalog-view--compact .product-miniature .gs-product-promo-badge {
  display: block !important;
}
