/* SMTSB discount highlight: readable crossed-out regular price on LISTING CARDS and the cart only.
   Must not restyle the PDP, quick view, or PDP pack cards. */
:root {
  --smt-save: #e11d48;
  --smt-save-ink: #444444;
}

/* —— Offer / current price on product cards —— */
body:not(.checkout-page) .smt-product-card__price-current,
body:not(.checkout-page) .smt-product-card__price .smt-product-card__price-current,
body:not(.checkout-page) .smt-product-card__price .product-price,
body:not(.checkout-page) .smt-product-card__price > span:first-child,
.smt-deals .smt-product-card__price-current,
.smt-deals .smt-product-card__price .product-price,
.smt-deals .smt-product-card__price > span:first-child {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

/* —— Crossed-out regular price: charcoal, thin red line-through (cards + cart) —— */
.smt-product-card .smt-price-was,
.smt-product-card__price-old,
.smt-product-card__price del,
.smt-product-card__price s,
.smt-product-card__price .smt-product-card__price-old,
.smt-deals .smt-product-card__price-old,
.smt-deals .smt-product-card__price del,
.smt-deals .smt-product-card__price s,
.tp-cart-area .smt-price-was,
.tp-cart-area [data-bb-value="product-original-price"],
.bb-cart-form .smt-price-was,
[data-smt-price]:not(.ax):not(.bb-product-detail):not(.smt-product-page) .smt-price-was,
[data-smt-price]:not(.ax):not(.bb-product-detail):not(.smt-product-page) [data-bb-value="product-original-price"] {
  color: var(--smt-save-ink) !important;
  font-weight: 600 !important;
  position: static;
  display: inline-block;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: line-through !important;
  text-decoration-color: var(--smt-save) !important;
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;
  -webkit-text-decoration-color: var(--smt-save) !important;
  -webkit-text-decoration-thickness: 2px;
}

/* Kill any leftover overlay-bar strike on cards/cart only */
.smt-product-card .smt-price-was::after,
.smt-product-card__price del::after,
.smt-product-card__price s::after,
.smt-product-card__price .smt-product-card__price-old::after,
.smt-deals .smt-product-card__price-old::after,
.smt-deals .smt-product-card__price del::after,
.tp-cart-area .smt-price-was::after,
[data-smt-price]:not(.ax):not(.bb-product-detail):not(.smt-product-page) .smt-price-was::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Cards: ~87% of the 16px offer price, with clear space beside it */
.smt-product-card__price {
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px 10px;
}

.smt-product-card__price-old,
.smt-product-card__price del,
.smt-product-card__price s,
.smt-product-card__price .smt-product-card__price-old,
.smt-deals .smt-product-card__price-old,
.smt-deals .smt-product-card__price del {
  font-size: 14px !important;
}

.smt-product-card__price-old-wrap small,
.smt-wv__list small,
.smt-product-card span[data-bb-toggle="product-original-price-wrap"] small,
.smt-product-card .smt-price-was-wrap small,
.tp-cart-area .smt-price-was-wrap small {
  font-size: inherit !important;
}

@media (max-width: 575.98px) {
  body:not(.checkout-page) .smt-product-card__price-current,
  body:not(.checkout-page) .smt-product-card__price .smt-product-card__price-current,
  body:not(.checkout-page) .smt-product-card__price .product-price,
  body:not(.checkout-page) .smt-product-card__price > span:first-child {
    font-size: 16px !important;
  }

  .smt-product-card__price-old,
  .smt-product-card__price del,
  .smt-product-card__price s,
  .smt-product-card__price .smt-product-card__price-old {
    font-size: 14px !important;
  }

  .smt-product-card__price-row {
    flex-wrap: wrap;
  }

  .smt-product-card__price {
    flex-wrap: nowrap;
  }
}

/* —— Back-to-top is disabled via theme option back_to_top_button_enabled.
      Hide any leftover markup from stale cached HTML. —— */
.back-to-top-wrapper,
#back_to_top,
.back-to-top-btn {
  display: none !important;
}
