/* Non-All-Offers: tags sit above their banners with a true 3D ribbon tail. */
.bonus-offer-layout:not(.is-all-offers) .promo-card {
  overflow: visible !important;
  z-index: 2;
}

.bonus-offer-layout:not(.is-all-offers) .promo-card .promo-top {
  z-index: 20 !important;
  overflow: visible !important;
}

.bonus-offer-layout:not(.is-all-offers) .promo-card .promo-top::after {
  position: absolute;
  z-index: -1;
  top: 12px;
  left: -11px;
  display: block !important;
  width: 25px;
  height: 13px;
  background: linear-gradient(145deg,#07572b 0%,#023718 100%);
  box-shadow: 0 2px 0 rgba(0,25,12,.48);
  clip-path: polygon(0 0,100% 0,73% 100%,0 62%);
  content: "" !important;
  transform: skewY(-10deg);
}

/* Final campaign-ribbon layer. This loads after all banner skins, so neither
   of the two ribbon tips can be clipped by a card or its list. */
.bonus-offer-layout:not(.is-all-offers),
.bonus-offer-layout:not(.is-all-offers) .promo-list,
.bonus-offer-layout:not(.is-all-offers) .promo-card:has(> .promo-top .promo-tag:not(.is-facebook):not(.is-telegram)) {
  overflow: visible !important;
}
.bonus-offer-layout:not(.is-all-offers) .promo-card > .promo-top:has(.promo-tag:not(.is-facebook):not(.is-telegram)) {
  top: 5px !important;
  right: auto !important;
  left: 21px !important;
  width: 50px !important;
  height: 17px !important;
  margin: 0 !important;
  overflow: visible !important;
  transform: translateX(-50%) rotate(-22.5deg) !important;
  transform-origin: center !important;
  z-index: 50 !important;
}
.bonus-offer-layout:not(.is-all-offers) .promo-card .promo-tag:not(.is-facebook):not(.is-telegram) {
  display: grid !important;
  box-sizing: border-box !important;
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  height: 17px !important;
  min-height: 17px !important;
  margin: 0 !important;
  padding: 0 5px !important;
  place-items: center !important;
  border-radius: 0 !important;
  font-size: 5px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  clip-path: polygon(16% 0,84% 0,100% 50%,84% 100%,16% 100%,0 50%) !important;
}
.bonus-offer-layout:not(.is-all-offers) .promo-card .promo-tag:not(.is-facebook):not(.is-telegram)::before,
.bonus-offer-layout:not(.is-all-offers) .promo-card .promo-tag:not(.is-facebook):not(.is-telegram)::after,
.bonus-offer-layout:not(.is-all-offers) .promo-card > .promo-top:has(.promo-tag:not(.is-facebook):not(.is-telegram))::after {
  display: none !important;
  content: none !important;
}

/* One condensed type treatment for every campaign label.  It is deliberately
   wide enough to read at a glance, while still fitting labels such as
   CHECK-IN and BIRTHDAY without each offer changing its own font size. */
.bonus-offer-layout:not(.is-all-offers) .promo-card > .promo-top .promo-tag:not(.is-facebook):not(.is-telegram),
.bonus-offer-layout:not(.is-all-offers) .promo-card.has-custom-tag[data-offer-source] > .promo-top .promo-tag:not(.is-facebook):not(.is-telegram) {
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif !important;
  font-size: 5.2px !important;
  font-weight: 900 !important;
  letter-spacing: .025em !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  -webkit-text-size-adjust: 100% !important;
}
