/* Single product summary badge */
.single-product .summary .dealoffer-deal-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin: 0 0 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #D71928;
  box-shadow: 0 3px 8px rgba(190, 0, 20, 0.18);
  color: #FFFFFF;
  font-family: "Inter", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.single-product .summary .dealoffer-deal-type.dealoffer-deal-type--offline {
  background: #102A4C;
  box-shadow: 0 3px 8px rgba(16, 42, 76, 0.18);
}

/* DealOffer deal type badge (ONLINE / OFFLINE) - replaces the SALE! badge.
 * Shop / category / related cards keep the theme .onsale position and red; only the shape becomes a pill. */
.products .product .onsale.dealoffer-deal-type,
.related-product .onsale.dealoffer-deal-type,
.tf-products .item .image .dealoffer-deal-type {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 4px 9px;
  border-radius: 999px;
  color: #FFFFFF;
  font-family: "Inter", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The theme hides every .onsale on single product pages; show it again on related product cards. */
.related-product .onsale.dealoffer-deal-type {
  display: block;
}

/* Homepage carousels: same spot and red as the old SALE circle. */
.tf-products .item .image .dealoffer-deal-type {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 5;
  background: #D71928;
  box-shadow: 0 3px 8px rgba(190, 0, 20, 0.18);
  pointer-events: none;
}

/* OFFLINE in navy so it reads apart from ONLINE; !important beats the per-surface red backgrounds (shop, related, homepage). */
.dealoffer-deal-type.dealoffer-deal-type--offline {
  background: #102A4C !important;
  box-shadow: 0 3px 8px rgba(16, 42, 76, 0.18);
}

/* Keep the top-right merchant badge clear of the wider pill. */
@media (min-width: 768px) {
  .products li .inner:has(.dealoffer-deal-type) .dealoffer-merchant-badge,
  .tf-products .item .image:has(.dealoffer-deal-type) .dealoffer-merchant-badge {
    max-width: calc(100% - 112px);
  }
}

@media (max-width: 767px) {
  .products .product .onsale.dealoffer-deal-type,
  .related-product .onsale.dealoffer-deal-type,
  .tf-products .item .image .dealoffer-deal-type {
    padding: 3px 8px;
    font-size: 9.5px;
  }

  .tf-products .item .image .dealoffer-deal-type {
    top: 8px;
    left: 8px;
  }
}
