.maxbox-offer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #852c48;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.maxbox-product-card .maxbox-offer-badge--card {
  position: absolute;
  top: 47px;
  left: 12px;
  z-index: 5;
  pointer-events: none;
}

.maxbox-product-card--spacer .maxbox-offer-badge--card {
  top: 82px;
}

.maxbox-product-card .product-flag:has(.maxbox-offer-badge--card) .new,
.maxbox-product-card .product-flag:has(.maxbox-offer-badge--card) .pack {
  top: 83px !important;
}

.maxbox-product-card--spacer .product-flag:has(.maxbox-offer-badge--card) .new,
.maxbox-product-card--spacer .product-flag:has(.maxbox-offer-badge--card) .pack {
  top: 118px !important;
}

.maxbox-product-card .product-price-and-shipping .maxbox-price-pair,
.product-prices .product-price .maxbox-price-pair {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 12px;
  row-gap: 4px;
  line-height: 1.25;
}

.maxbox-product-card .product-price-and-shipping:not(.maxbox-prices--discounted) .maxbox-price-pair,
.product-prices:not(.maxbox-prices--discounted) .product-price .maxbox-price-pair {
  flex-direction: row-reverse;
  justify-content: flex-end;
  column-gap: 8px;
}

.maxbox-price-pair__values {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.maxbox-price-pair__previous {
  color: #65616a;
  text-decoration-thickness: 1px;
  font-size: .84em;
  font-weight: 500;
  white-space: nowrap;
}

.maxbox-product-card .product-price-and-shipping .maxbox-price-pair .price,
.maxbox-product-card .maxbox-price-pair .maxbox-product-card__tax-incl-price-value {
  font-weight: 800;
  font-size: 17px;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

.maxbox-product-card .product-price-and-shipping .maxbox-price-pair .price_sale {
  color: #852c48;
}

.maxbox-product-card:hover .maxbox-price-pair__previous {
  color: inherit;
}

.product-prices .maxbox-pdp-tax-excl-label,
#product .product-prices .current-price .maxbox-pdp-tax-excl-label,
.product-prices .maxbox-pdp-tax-incl-price__label {
  font-size: 13px;
  margin: 0;
  color: #51565b;
  font-weight: 500;
}

.product-prices .maxbox-pdp-net-price,
.product-prices .maxbox-pdp-tax-incl-price__value {
  white-space: nowrap;
}

.product-prices .product-price .maxbox-pdp-tax-incl-price__value {
  font-size: 21px;
  font-weight: 800;
}

.product-prices .has-discount .maxbox-pdp-net-price {
  color: #852c48;
}

.product-prices .maxbox-pdp-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  margin: 3px 0 12px;
  color: #72223c;
  font-size: 14px;
  font-weight: 700;
}

.maxbox-pdp-offer__savings small {
  font-size: .85em;
  font-weight: 500;
}

/* The legacy header is absolute. When the campaign bar is present, let
   the header reserve its own height and remove the old manual offsets. */
main:has(> .maxbox-offers-bar) > #header {
  position: relative;
}

main > .maxbox-offers-bar ~ .breadcrumb_container {
  margin-top: 16px;
}

main > .maxbox-offers-bar + .pos_bannerslide .slideshow_container {
  margin-top: 0;
  padding-top: 18px;
}

main > .maxbox-offers-bar + .pos_bannerslide .pos-slideshow {
  margin-top: 0;
}

#checkout main > .maxbox-offers-bar ~ #wrapper {
  margin-top: 16px;
}

@media (max-width: 991px) {
  main:has(> .maxbox-offers-bar) > #header .mobile_header .row-mobile {
    align-items: center;
    padding-bottom: 10px;
  }

  main > .maxbox-offers-bar ~ .breadcrumb_container {
    margin-top: 10px;
  }

  main > .maxbox-offers-bar + .pos_bannerslide .slideshow_container {
    padding-top: 10px;
  }
}

.maxbox-offers-bar {
  background: #302139;
  color: #fff;
}

.maxbox-offers-bar .maxbox-offers-bar__link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px 12px;
  min-height: 41px;
  padding-top: 6px;
  padding-bottom: 6px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.maxbox-offers-bar__link strong {
  color: #ffcf91;
  font-weight: 800;
}

.maxbox-offers-bar__action {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.maxbox-offers-bar__link:focus-visible,
.maxbox-offers__all:focus-visible,
.maxbox-offers__controls button:focus-visible,
.maxbox-offers__track:focus-visible {
  outline: 2px solid #e69747;
  outline-offset: -2px;
}

.maxbox-offers-wrap {
  margin-block: clamp(24px, 5vw, 56px);
}

.maxbox-offers {
  padding: clamp(14px, 3vw, 32px);
  border-radius: 14px;
  background: #302139;
  color: #fff;
}

.maxbox-offers__header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 13px 24px;
  margin-bottom: 15px;
}

.maxbox-offers__header h2 {
  color: #fff;
  font-size: clamp(23px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 6px;
}

.maxbox-offers__header p {
  margin: 0;
  color: #eee1ee;
}

.maxbox-offers .maxbox-offers__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #eabf91;
  border-radius: 5px;
  color: #ffcf91;
  font-weight: 700;
}

.maxbox-offers__controls {
  display: flex;
  justify-content: end;
  gap: 7px;
  margin-bottom: 9px;
}

.maxbox-offers__controls[hidden] {
  display: none;
}

.maxbox-offers__controls button {
  width: 44px;
  height: 44px;
  background: #fff;
  color: #302139;
  border: 0;
  border-radius: 5px;
  font-size: 26px;
  line-height: 1;
}

.maxbox-offers__controls button[aria-disabled="true"] {
  opacity: .5;
  cursor: default;
}

.maxbox-offers__track {
  --offers-gap: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--offers-gap)) / 4);
  gap: var(--offers-gap);
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: #c7a8cb #47334d;
}

.maxbox-offers__item {
  min-width: 0;
  display: flex;
  scroll-snap-align: start;
}

.maxbox-offers__item > article {
  width: 100%;
  margin: 0;
  color: #323232;
  background: #fff;
}

@media (max-width: 1199px) {
  .maxbox-offers__track {
    grid-auto-columns: calc((100% - 2 * var(--offers-gap)) / 3);
  }
}

@media (max-width: 991px) {
  .maxbox-offers__track {
    grid-auto-columns: calc((100% - var(--offers-gap)) / 2);
  }
}

@media (max-width: 767px) {
  .maxbox-product-card--made-in-italy .maxbox-offer-badge--card {
    top: 77px;
  }

  .maxbox-product-card--made-in-italy .product-flag:has(.maxbox-offer-badge--card) .new,
  .maxbox-product-card--made-in-italy .product-flag:has(.maxbox-offer-badge--card) .pack {
    top: 113px !important;
  }

  .maxbox-offers__track {
    --offers-gap: 10px;
    grid-auto-columns: min(82%, 310px);
  }
}
