.wsd-banner-stack {
  position: relative;
  width: 100%;
}

.wsd-banner {
  padding: 10px 16px;
  margin-bottom: 20px;
  border-radius: 6px;
}

.wsd-archive-meta {
  display: none !important;
}

.wsd-banner.is-sticky {
  position: sticky;
  top: var(--wsd-banner-sticky-top, 0px);
  z-index: 999;
}

.wsd-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  font-weight: 700;
}

/* Keep campaign product-overview titles compact; normal shop titles stay untouched. */
body.wsd-campaign-products-page .woocommerce-products-header__title.page-title {
  font-size: 26px !important;
  line-height: 1.2 !important;
}

@media (max-width: 767px) {
  body.wsd-campaign-products-page .woocommerce-products-header__title.page-title {
    font-size: 22px !important;
  }
}

.wsd-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.single-product div.product {
  position: relative;
}

.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .product-gallery-slider,
.single-product .flickity-slider,
.single-product .product-images,
.single-product div.images {
  position: relative;
}

.single-product .wsd-single-overlay-host {
  position: relative;
}

.single-product .wsd-single-overlays {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  z-index: 25;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
  align-items: flex-start;
}

.single-product .wsd-single-overlays.wsd-pos-left-top {
  left: 12px;
  right: auto;
  align-items: flex-start;
}

.single-product .wsd-single-overlays.wsd-pos-right-top {
  right: 12px;
  left: auto;
  align-items: flex-end;
}

.single-product .wsd-single-overlays.wsd-pos-right-top .wsd-timer,
.single-product .wsd-single-overlays.wsd-pos-right-top .wsd-timer .wsd-timer-count {
  text-align: right;
  justify-content: flex-end;
}

/* Hide the server-rendered stack until JS anchors it to the fixed gallery. */
.single-product .wsd-single-overlays.wsd-single-overlays-pending {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.single-product .wsd-single-overlays.wsd-single-overlays-ready {
  opacity: 1 !important;
  visibility: visible !important;
}

.single-product .wsd-single-overlays .wsd-badge-single-overlay-candidate,
.single-product .wsd-single-overlays .wsd-badge-single-overlay,
.single-product .wsd-single-overlays .wsd-single-timer-overlay-candidate,
.single-product .wsd-single-overlays .wsd-single-timer-overlay,
.single-product .wsd-single-overlays .wsd-info-badge-overlay-candidate {
  margin: 0 !important;
  display: inline-flex;
  width: max-content;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.single-product .wsd-single-overlays .wsd-badge-single-overlay-candidate,
.single-product .wsd-single-overlays .wsd-badge-single-overlay,
.single-product .wsd-single-overlays .wsd-single-timer-overlay-candidate,
.single-product .wsd-single-overlays .wsd-single-timer-overlay {
  pointer-events: none;
}

.single-product .wsd-single-overlays .wsd-info-badge-overlay-candidate {
  pointer-events: auto !important;
}

/*
 * Prevent visual jumps: Rey can duplicate product prices in sticky/footer
 * markup, so hide candidates everywhere until JS places them on the image.
 */
.single-product .wsd-badge-single-overlay-candidate,
.single-product .wsd-single-timer-overlay-candidate,
.single-product .wsd-info-badge-overlay-candidate {
  position: absolute !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.single-product .wsd-overlay-candidate-fallback,
.single-product .summary .wsd-overlay-candidate-fallback,
.single-product .summary.entry-summary .wsd-overlay-candidate-fallback {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: inline-flex;
  margin: 0 0 8px 0 !important;
}

.single-product .wsd-info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  padding: 7px 10px;
  margin: 0 0 8px 0;
}

.single-product .wsd-info-badge:hover {
  filter: brightness(0.96);
}

.single-product .wsd-info-badge:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.single-product .wsd-single-overlays .wsd-info-badge {
  margin: 0 !important;
}

.single-product .wsd-badge-single {
  position: static !important;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  margin-bottom: 0;
  z-index: 1 !important;
  max-width: min(220px, calc(100vw - 36px));
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
  border-radius: 4px;
  padding: 7px 10px !important;
  font-size: 13px;
}

.single-product .wsd-single-overlays .wsd-badge-single {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: min(280px, calc(100vw - 40px));
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.15;
  overflow: visible;
  text-overflow: clip;
}

.single-product .price .wsd-badge-single-inline {
  display: inline-block !important;
  vertical-align: middle;
  margin-left: 10px;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 13px;
  padding: 7px 10px !important;
}

.single-product .summary .wsd-info-badge-inline,
.single-product .summary.entry-summary .wsd-info-badge-inline {
  margin: 0 0 8px 0;
}

/* Small breathing room when info badge + timer are both in summary/price area. */
.single-product .summary .wsd-info-badge-inline + .wsd-timer,
.single-product .summary.entry-summary .wsd-info-badge-inline + .wsd-timer {
  margin-left: 6px;
}

.wsd-info-drawer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.wsd-info-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wsd-info-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.wsd-info-drawer.is-open .wsd-info-drawer-backdrop {
  opacity: 1;
}

.wsd-info-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 88vw);
  height: 100%;
  background: #ffffff;
  color: #111111;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.16);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(108%);
  opacity: 0.98;
  transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.22s ease;
}

.wsd-info-drawer.is-open .wsd-info-drawer-panel {
  transform: translateX(0);
  opacity: 1;
}

.wsd-info-drawer-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  color: #111111;
  float: none;
  align-self: flex-end;
  justify-content: flex-end;
  text-align: right;
  margin: -2px -2px 10px 0;
  padding: 2px 4px;
  margin-left: auto;
}

.wsd-info-drawer-close-label {
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}

.wsd-info-drawer-close-icon {
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.wsd-info-drawer-content {
  clear: both;
  font-size: 15px;
  line-height: 1.55;
  padding-top: 4px;
  flex: 1 1 auto;
  overflow-y: auto;
  padding-bottom: 12px;
}

.wsd-info-drawer-content img,
.wsd-info-drawer-content .wsd-info-drawer-media {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto !important;
  margin: 0 0 16px;
  object-fit: contain;
  image-rendering: auto;
}

.wsd-info-drawer-media-small .wsd-info-drawer-content img,
.wsd-info-drawer-media-small .wsd-info-drawer-content .wsd-info-drawer-media,
.wsd-info-drawer-media-small .wsd-info-drawer-content figure {
  max-width: min(180px, 100%);
}

.wsd-info-drawer-media-medium .wsd-info-drawer-content img,
.wsd-info-drawer-media-medium .wsd-info-drawer-content .wsd-info-drawer-media,
.wsd-info-drawer-media-medium .wsd-info-drawer-content figure {
  max-width: min(260px, 100%);
}

.wsd-info-drawer-media-large .wsd-info-drawer-content img,
.wsd-info-drawer-media-large .wsd-info-drawer-content .wsd-info-drawer-media,
.wsd-info-drawer-media-large .wsd-info-drawer-content figure {
  max-width: min(360px, 100%);
}

.wsd-info-drawer-content figure {
  margin: 0 0 16px;
}

.wsd-info-drawer-align-center .wsd-info-drawer-content img,
.wsd-info-drawer-align-center .wsd-info-drawer-content .wsd-info-drawer-media,
.wsd-info-drawer-align-center .wsd-info-drawer-content figure {
  margin-left: auto;
  margin-right: auto;
}

.wsd-info-drawer-align-right .wsd-info-drawer-content img,
.wsd-info-drawer-align-right .wsd-info-drawer-content .wsd-info-drawer-media,
.wsd-info-drawer-align-right .wsd-info-drawer-content figure {
  margin-left: auto;
}

.wsd-info-drawer-align-left .wsd-info-drawer-content {
  text-align: left;
}

.wsd-info-drawer-align-center .wsd-info-drawer-content {
  text-align: center;
}

.wsd-info-drawer-align-right .wsd-info-drawer-content {
  text-align: right;
}

.wsd-info-drawer-footer {
  flex: 0 0 auto;
  padding-top: 18px !important;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.wsd-info-drawer-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.wsd-info-drawer-terms {
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  margin: 0 0 10px;
}

.wsd-info-drawer-actions + .wsd-info-drawer-terms {
  margin: 10px 0 0;
}

.wsd-info-drawer-terms-link {
  font-weight: 600;
  text-decoration: underline;
  color: inherit;
}

.wsd-info-drawer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 0 !important;
  padding: 10px 14px;
  background: #111111;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  border: 0;
  cursor: pointer;
}

.wsd-info-drawer-action-soft {
  border-radius: 8px !important;
}

.wsd-info-drawer-action-rect {
  border-radius: 0 !important;
}

.wsd-info-drawer-footer .wsd-info-drawer-action {
  border-radius: inherit;
}

.wsd-info-drawer-button-align-left .wsd-info-drawer-footer {
  text-align: left;
}

.wsd-info-drawer-button-align-left .wsd-info-drawer-actions {
  justify-content: flex-start;
}

.wsd-info-drawer-button-align-center .wsd-info-drawer-footer {
  text-align: center;
}

.wsd-info-drawer-button-align-center .wsd-info-drawer-actions {
  justify-content: center;
}

.wsd-info-drawer-button-align-right .wsd-info-drawer-footer {
  text-align: right;
}

.wsd-info-drawer-button-align-right .wsd-info-drawer-actions {
  justify-content: flex-end;
}

@media (min-width: 641px) {
  .wsd-info-drawer-footer .wsd-info-drawer-action {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

body.wsd-info-drawer-open {
  overflow: hidden;
}

.single-product .wsd-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.2;
  text-align: center;
  padding: 7px 10px;
  margin: 10px 0 14px;
}

.single-product .wsd-timer .wsd-timer-icon {
  width: 1.18em;
  height: 1.18em;
  font-size: 1.02em;
}

.single-product .wsd-timer .wsd-timer-label,
.single-product .wsd-timer .wsd-timer-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.single-product .wsd-timer .wsd-timer-count {
  min-width: 0;
  text-align: center;
  font-weight: 700;
}


.wsd-timer {
  margin: 10px 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.wsd-tier-note,
.wsd-price-note,
.wsd-campaign-price-note {
  display: inline-block;
  margin-left: 6px;
  color: #6b7280;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  white-space: nowrap;
  vertical-align: baseline;
}

.price .wsd-tier-note,
.rey-loopPrice .wsd-tier-note {
  display: inline !important;
  margin-left: 6px !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
}

.wsd-archive-price {
  font-weight: 700;
}

.wsd-archive-price-range {
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}

.wsd-archive-price-range .amount {
  font-weight: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
}

.wsd-archive-price-range .wsd-range-sep {
  display: inline-block;
  margin: 0 2px;
}

.wsd-price-note {
  margin-inline-start: 6px;
}

.price .wsd-price-note,
.rey-loopPrice .wsd-price-note,
.single-product .price .wsd-price-note {
  display: inline !important;
  margin-left: -4px !important;
  margin-inline-start: -4px !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
}

/* One normal space between the price and optional text in Rey live search. */
.rey-searchItem-price .wsd-price-note,
.rey-searchItem-price .wsd-tier-note,
.rey-searchItem-price .wsd-campaign-price-note {
  margin-left: 0.25em !important;
  margin-inline-start: 0.25em !important;
}

/* Single product: give suffix and note a bit more air after the price. */
.single-product .summary .price .woocommerce-price-suffix,
.single-product .summary.entry-summary .price .woocommerce-price-suffix {
  margin-left: 6px !important;
  margin-inline-start: 6px !important;
}

.single-product .summary .price .wsd-price-note,
.single-product .summary.entry-summary .price .wsd-price-note {
  margin-left: 6px !important;
  margin-inline-start: 6px !important;
}

/* Loop cards (category/carousel): keep suffix and note close to the price. */
.woocommerce ul.products li.product .price .woocommerce-price-suffix,
.woocommerce-page ul.products li.product .price .woocommerce-price-suffix,
.rey-loopPrice .woocommerce-price-suffix {
  margin-left: 1px !important;
  margin-inline-start: 1px !important;
}

/* Strong non-single summary rule:
   keep suffix + plugin label tight on every small product card, including
   related/upsell/recent/cross-sell cards on single-product pages. */
body:not(.single-product) .price .woocommerce-price-suffix,
body:not(.single-product) .price .wsd-price-note,
body:not(.single-product) .rey-loopPrice .woocommerce-price-suffix,
body:not(.single-product) .rey-loopPrice .wsd-price-note,
.single-product .related .price .woocommerce-price-suffix,
.single-product .related .price .wsd-price-note,
.single-product .upsells .price .woocommerce-price-suffix,
.single-product .upsells .price .wsd-price-note,
.single-product .cross-sells .price .woocommerce-price-suffix,
.single-product .cross-sells .price .wsd-price-note,
.single-product [class*="recent"] .price .woocommerce-price-suffix,
.single-product [class*="recent"] .price .wsd-price-note,
.single-product .product_list_widget .price .woocommerce-price-suffix,
.single-product .product_list_widget .price .wsd-price-note {
  margin-left: 0 !important;
  margin-inline-start: 0 !important;
  padding-left: 0 !important;
  display: inline !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
}

/* Hard override for all small-card suffix labels that themes often space too much. */
body:not(.single-product) .woocommerce-price-suffix,
.single-product .related .woocommerce-price-suffix,
.single-product .upsells .woocommerce-price-suffix,
.single-product .cross-sells .woocommerce-price-suffix,
.single-product [class*="recent"] .woocommerce-price-suffix,
.single-product .product_list_widget .woocommerce-price-suffix {
  margin-left: 0 !important;
  margin-inline-start: 0 !important;
  padding-left: 0 !important;
}

body:not(.single-product) .price .wsd-price-note,
body:not(.single-product) .price .wsd-tier-note,
.single-product .related .price .wsd-price-note,
.single-product .related .price .wsd-tier-note,
.single-product .upsells .price .wsd-price-note,
.single-product .upsells .price .wsd-tier-note,
.single-product .cross-sells .price .wsd-price-note,
.single-product .cross-sells .price .wsd-tier-note,
.single-product [class*="recent"] .price .wsd-price-note,
.single-product [class*="recent"] .price .wsd-tier-note,
.single-product .product_list_widget .price .wsd-price-note,
.single-product .product_list_widget .price .wsd-tier-note {
  display: inline-flex !important;
  align-items: center !important;
  margin-left: -4px !important;
  margin-inline-start: -4px !important;
  padding-left: 0 !important;
  transform: none !important;
  position: relative !important;
  left: 0 !important;
  vertical-align: middle !important;
  align-self: center !important;
}

/* Mobile only: make price-side labels a bit smaller to keep one-line prices. */
@media (max-width: 767px) {
  .wsd-price-note,
  .wsd-tier-note {
    font-size: 0.78em !important;
    line-height: 1 !important;
    display: inline-block !important;
    white-space: nowrap !important;
    vertical-align: baseline !important;
  }

  /* Small product cards: keep price + suffix/label on one line with
     efficient width usage (category/carousel + related/upsell/recent/cross-sell). */
  body:not(.single-product) .woocommerce ul.products li.product .price,
  body:not(.single-product) .woocommerce-page ul.products li.product .price,
  .single-product ul.products li.product .price,
  .single-product .related .price,
  .single-product .upsells .price,
  .single-product .cross-sells .price,
  .single-product [class*="recent"] .price,
  .single-product .product_list_widget .price {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    column-gap: 2px !important;
    white-space: nowrap !important;
    max-width: calc(100% - 4px) !important;
  }

  /* Catch every Rey/Woo product-card shape (square, wide, grid and carousel)
     on archives, the homepage and below single-product pages. */
  li.product .price,
  .rey-loopPrice {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    white-space: nowrap !important;
  }

  body:not(.single-product) .woocommerce ul.products li.product .price .woocommerce-price-suffix,
  body:not(.single-product) .woocommerce-page ul.products li.product .price .woocommerce-price-suffix,
  .single-product .related .price .woocommerce-price-suffix,
  .single-product .upsells .price .woocommerce-price-suffix,
  .single-product .cross-sells .price .woocommerce-price-suffix,
  .single-product [class*="recent"] .price .woocommerce-price-suffix,
  .single-product .product_list_widget .price .woocommerce-price-suffix,
  body:not(.single-product) .woocommerce ul.products li.product .price .wsd-price-note,
  body:not(.single-product) .woocommerce-page ul.products li.product .price .wsd-price-note,
  body:not(.single-product) .woocommerce ul.products li.product .price .wsd-tier-note,
  body:not(.single-product) .woocommerce-page ul.products li.product .price .wsd-tier-note,
  .single-product .related .price .wsd-price-note,
  .single-product .upsells .price .wsd-price-note,
  .single-product .cross-sells .price .wsd-price-note,
  .single-product [class*="recent"] .price .wsd-price-note,
  .single-product .product_list_widget .price .wsd-price-note,
  .single-product .related .price .wsd-tier-note,
  .single-product .upsells .price .wsd-tier-note,
  .single-product .cross-sells .price .wsd-tier-note,
  .single-product [class*="recent"] .price .wsd-tier-note,
  .single-product .product_list_widget .price .wsd-tier-note {
    margin-right: 0 !important;
    padding-right: 2px !important;
    align-self: flex-end !important;
    vertical-align: bottom !important;
  }

  li.product .price .wsd-price-note,
  li.product .price .wsd-tier-note,
  .rey-loopPrice .wsd-price-note,
  .rey-loopPrice .wsd-tier-note {
    align-self: flex-end !important;
    vertical-align: bottom !important;
  }

  /* Only product loops shown underneath a single-product page need a safe
     mobile gap; archive/category cards keep their tighter spacing. */
  .single-product ul.products li.product .price .wsd-price-note,
  .single-product ul.products li.product .price .wsd-tier-note,
  .single-product .product_list_widget .price .wsd-price-note,
  .single-product .product_list_widget .price .wsd-tier-note {
    margin-left: 2px !important;
    margin-inline-start: 2px !important;
  }
}

.wsd-tier-picker {
  margin-top: 10px;
  position: relative;
  z-index: 8;
}

.wsd-tier-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  max-width: 430px;
  width: 100%;
}

.single-product .summary .wsd-tier-picker .wsd-tier-options,
.single-product .summary.entry-summary .wsd-tier-picker .wsd-tier-options {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 430px !important;
}

.wsd-tier-option {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #d7dbe2 !important;
  background: #fff !important;
  color: #111827;
  border-radius: 0 !important;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
  width: 100% !important;
  min-height: 68px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  pointer-events: auto;
  touch-action: manipulation;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.single-product .summary .wsd-tier-picker .wsd-tier-option,
.single-product .summary.entry-summary .wsd-tier-picker .wsd-tier-option {
  border: 1px solid #d7dbe2 !important;
  background: #fff !important;
  border-radius: 0 !important;
  display: flex !important;
  width: 100% !important;
  min-height: 68px !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

.wsd-tier-option-qty {
  font-size: 14px;
  font-weight: 700;
}

.wsd-tier-option-discount {
  font-size: 12px;
  color: #4b5563;
}

.wsd-tier-option-label {
  font-size: 11px;
  color: #6b7280;
}

.wsd-tier-option.is-active {
  background: #dfe3e8 !important;
  color: #111827 !important;
  border-color: #9aa3ad !important;
  box-shadow: inset 0 0 0 1px #9aa3ad;
}

.wsd-tier-option.wsd-selected {
  background: #dfe3e8 !important;
  color: #111827 !important;
  border-color: #9aa3ad !important;
  box-shadow: inset 0 0 0 1px #9aa3ad;
}

.wsd-tier-option:not(.is-active):not(.wsd-selected):hover,
.wsd-tier-option:not(.is-active):not(.wsd-selected):focus {
  background: #f4f6f8 !important;
  border-color: #c8ced6 !important;
}

.wsd-tier-option.is-active .wsd-tier-option-discount,
.wsd-tier-option.is-active .wsd-tier-option-label {
  color: #334155 !important;
}

.wsd-tier-option.wsd-selected .wsd-tier-option-discount,
.wsd-tier-option.wsd-selected .wsd-tier-option-label {
  color: #334155 !important;
}

/* Tiny extra breathing room under the final tier block (desktop + mobile). */
.wsd-tier-options .wsd-tier-option:last-child {
  margin-bottom: 12px;
}

/* Style 2: price ladder (informational, uses normal Woo qty selector). */
.wsd-tier-picker.wsd-tier-picker-style-ladder .wsd-tier-ladder {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  max-width: 430px;
}

.wsd-tier-picker.wsd-tier-picker-style-ladder .wsd-tier-ladder-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #d7dbe2;
  background: #f8fafc;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.2;
  color: #1f2937;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.wsd-tier-picker.wsd-tier-picker-style-ladder .wsd-tier-ladder-qty {
  font-weight: 700;
}

.wsd-tier-picker.wsd-tier-picker-style-ladder .wsd-tier-ladder-sep {
  opacity: 0.55;
}

.wsd-tier-picker.wsd-tier-picker-style-ladder .wsd-tier-ladder-discount {
  font-weight: 600;
}

.wsd-tier-picker.wsd-tier-picker-style-ladder .wsd-tier-ladder-item.is-active {
  border: 1px solid #111111;
  background: #eef2f6;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.35);
}

/* Style 3: live hint message based on selected Woo qty. */
.wsd-tier-picker.wsd-tier-picker-style-hint .wsd-tier-hint {
  max-width: 430px;
  margin: 0 0 24px;
  padding: 8px 10px;
  border: 1px solid #d7dbe2;
  background: #f8fafc;
  color: #1f2937;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.35;
}

.wsd-tier-total-amount {
  font-weight: 700;
}

.wsd-tier-total-amount.is-discounted {
  color: #ff0000 !important;
}

.wsd-tier-total-regular {
  color: #9ca3af;
  margin-right: 6px;
}

.wsd-tier-total-sale {
  color: #ff0000 !important;
  font-weight: 700;
  text-decoration: none;
}

.wsd-timer.is-archive {
  margin: 0;
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1.1;
  position: relative;
  z-index: 6;
  display: inline-flex;
  justify-content: flex-start;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
  box-sizing: border-box;
}

.wsd-timer.is-archive-inline {
  margin: 6px 0 8px;
  padding: 4px 5px;
  border-radius: 6px;
  line-height: 1.05;
  font-size: 10.5px;
  display: inline-grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon label"
    "icon count";
  column-gap: 2px;
  row-gap: 0;
  align-items: center;
  justify-content: flex-start;
  justify-items: start;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
  overflow: visible;
  text-overflow: unset;
  box-sizing: border-box;
}

.wsd-timer.is-archive.no-label .wsd-timer-label {
  display: none;
}

.wsd-timer.is-archive-inline.no-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-width: 0;
  padding: 4px 8px 4px 6px;
}

.wsd-timer.is-archive-inline.no-label .wsd-timer-icon,
.wsd-timer.is-archive-inline.no-label .wsd-timer-count {
  display: inline-flex;
  align-items: center;
  align-self: center;
  line-height: 1;
}

.wsd-timer.is-archive-inline.no-label .wsd-timer-icon {
  width: 1.2em;
  height: 1.2em;
  font-size: 1em;
  grid-row: auto;
  justify-self: auto;
}

.wsd-timer.is-archive-inline.no-label .wsd-timer-count {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transform: translateY(0);
}

.wsd-timer .wsd-timer-count {
  display: inline-block;
  min-width: 14.5ch;
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.wsd-timer .wsd-timer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  line-height: 1;
  font-size: 0.95em;
  opacity: .98;
}

.wsd-timer .wsd-timer-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wsd-timer.wsd-timer-days .wsd-timer-count::before {
  content: '+';
  margin-right: 0.08em;
}

.wsd-timer.is-archive-inline .wsd-timer-icon {
  grid-area: icon;
  align-self: center;
  justify-self: center;
  grid-row: 1 / span 2;
  width: 1.34em;
  height: 1.34em;
  font-size: 1.14em;
}

.wsd-timer.is-archive-inline .wsd-timer-label {
  grid-area: label;
  display: block;
  line-height: 1.02;
  margin: 0;
  font-size: 0.94em;
}

.wsd-timer.is-archive-inline .wsd-timer-count {
  grid-area: count;
  display: block;
  line-height: 1.02;
  min-width: 0;
  width: auto;
  max-width: none;
  white-space: nowrap;
  text-align: left;
  font-weight: 700;
  font-size: 1em;
}

/* Single-product recommendation blocks (related/recent/upsell/cross-sell):
   compact one-line badge with icon + countdown only (no label text), toggled by setting. */
.single-product .related .wsd-timer.is-archive-inline.wsd-related-label-disabled,
.single-product .upsells .wsd-timer.is-archive-inline.wsd-related-label-disabled,
.single-product .cross-sells .wsd-timer.is-archive-inline.wsd-related-label-disabled,
.single-product [class*="recent"] .wsd-timer.is-archive-inline.wsd-related-label-disabled {
  grid-template-columns: auto auto;
  grid-template-areas: "icon count";
  column-gap: 3px;
  row-gap: 0;
  width: max-content;
  max-width: calc(100% - 8px);
  min-width: 0;
  white-space: nowrap;
}

.single-product .related .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-label,
.single-product .upsells .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-label,
.single-product .cross-sells .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-label,
.single-product [class*="recent"] .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-label {
  display: none !important;
}

.single-product .related .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-count,
.single-product .upsells .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-count,
.single-product .cross-sells .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-count,
.single-product [class*="recent"] .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-count {
  white-space: nowrap;
  grid-area: count;
}

.single-product .related .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-icon,
.single-product .upsells .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-icon,
.single-product .cross-sells .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-icon,
.single-product [class*="recent"] .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-icon {
  grid-row: auto;
  grid-area: icon;
  align-self: center;
}

/* Optional setting ON: show label above time (same structure as loop cards). */
.single-product .related .wsd-timer.is-archive-inline.wsd-related-label-enabled,
.single-product .upsells .wsd-timer.is-archive-inline.wsd-related-label-enabled,
.single-product .cross-sells .wsd-timer.is-archive-inline.wsd-related-label-enabled,
.single-product [class*="recent"] .wsd-timer.is-archive-inline.wsd-related-label-enabled {
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon label"
    "icon count";
  column-gap: 2px;
  row-gap: 0;
  width: max-content;
  max-width: calc(100% - 8px);
  min-width: 0;
  white-space: nowrap;
}

.single-product .related .wsd-timer.is-archive-inline.wsd-related-label-enabled .wsd-timer-label,
.single-product .upsells .wsd-timer.is-archive-inline.wsd-related-label-enabled .wsd-timer-label,
.single-product .cross-sells .wsd-timer.is-archive-inline.wsd-related-label-enabled .wsd-timer-label,
.single-product [class*="recent"] .wsd-timer.is-archive-inline.wsd-related-label-enabled .wsd-timer-label {
  display: block !important;
  white-space: nowrap;
}

.single-product .related .wsd-timer.is-archive-inline.wsd-related-label-enabled .wsd-timer-count,
.single-product .upsells .wsd-timer.is-archive-inline.wsd-related-label-enabled .wsd-timer-count,
.single-product .cross-sells .wsd-timer.is-archive-inline.wsd-related-label-enabled .wsd-timer-count,
.single-product [class*="recent"] .wsd-timer.is-archive-inline.wsd-related-label-enabled .wsd-timer-count {
  white-space: nowrap;
}

/* Hard fallback for Rey/theme overrides: apply related/recent layout by class only. */
.single-product .wsd-timer.is-archive-inline.wsd-related-label-enabled {
  display: inline-grid !important;
  grid-template-columns: auto 1fr !important;
  grid-template-areas:
    "icon label"
    "icon count" !important;
  column-gap: 2px !important;
  row-gap: 0 !important;
  white-space: nowrap !important;
  padding: 4px 14px 4px 6px !important;
}

.single-product .wsd-timer.is-archive-inline.wsd-related-label-enabled .wsd-timer-label {
  display: block !important;
  grid-area: label !important;
  white-space: nowrap !important;
}

.single-product .wsd-timer.is-archive-inline.wsd-related-label-enabled .wsd-timer-count {
  display: block !important;
  grid-area: count !important;
  white-space: nowrap !important;
}

.single-product .wsd-timer.is-archive-inline.wsd-related-label-enabled .wsd-timer-icon {
  grid-area: icon !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  justify-self: center !important;
}

.single-product .wsd-timer.is-archive-inline.wsd-related-label-disabled {
  display: inline-grid !important;
  grid-template-columns: auto auto !important;
  grid-template-areas: "icon count" !important;
  column-gap: 3px !important;
  row-gap: 0 !important;
  white-space: nowrap !important;
  align-items: center !important;
  padding: 4px 12px 4px 6px !important;
  transform: translateY(-2px) !important;
}

.single-product .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-label {
  display: none !important;
}

.single-product .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-count {
  grid-area: count !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
  line-height: 1.04 !important;
  align-self: center !important;
}

.single-product .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-icon {
  grid-area: icon !important;
  grid-row: auto !important;
  align-self: center !important;
  line-height: 1 !important;
}

/* Hard pin for small product overlays on single product page (recent/related/upsell/cross-sell):
   ensure icon/text vertical alignment and visible right-side padding in no-label mode. */
.single-product .wsd-archive-timer-overlay .wsd-timer.is-archive-inline.no-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  padding: 4px 12px 4px 6px !important;
  transform: translateY(-2px) !important;
}

.single-product .wsd-archive-timer-overlay .wsd-timer.is-archive-inline.no-label .wsd-timer-icon,
.single-product .wsd-archive-timer-overlay .wsd-timer.is-archive-inline.no-label .wsd-timer-count {
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  line-height: 1 !important;
}

.single-product .wsd-archive-timer-overlay .wsd-timer.is-archive-inline.no-label .wsd-timer-icon {
  width: 1.2em !important;
  height: 1.2em !important;
  font-size: 1em !important;
  grid-row: auto !important;
  justify-self: auto !important;
}

/* Product page: keep days mode in one line. */
.single-product .wsd-timer.wsd-timer-days {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.single-product .wsd-timer.wsd-timer-days .wsd-timer-label,
.single-product .wsd-timer.wsd-timer-days .wsd-timer-count {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.wsd-timer[data-mode="days_only"] .wsd-timer-count {
  width: auto;
  min-width: 0;
  max-width: none;
}

@media (max-width: 768px) {
  .wsd-timer.is-archive {
    font-size: 10px;
    padding: 4px 6px;
    max-width: none;
  }

  .wsd-timer.is-archive-inline {
    font-size: 11px;
    padding: 4px 5px;
    column-gap: 2px;
    row-gap: 0;
    width: max-content;
    max-width: 100%;
  }

  .wsd-timer.is-archive-inline .wsd-timer-icon {
    width: 1.22em;
    height: 1.22em;
    font-size: 1.04em;
  }

  .wsd-timer.is-archive-inline .wsd-timer-count {
    min-width: 0;
    width: auto;
    text-align: left;
  }

.wsd-timer.is-archive-inline:not([data-mode="days_only"]) .wsd-timer-count {
    min-width: 0;
  }
}

/* Desktop only: make loop/recommendation timer badge text slightly larger.
   Keep single-product main timer unchanged by targeting archive-inline only. */
@media (min-width: 768px) {
  .wsd-timer.is-archive-inline {
    font-size: 12px;
  }

  .wsd-timer.is-archive-inline .wsd-timer-label,
  .wsd-timer.is-archive-inline .wsd-timer-count {
    font-size: 1em;
    transform: translateY(-1px) !important;
    display: inline-flex;
    align-items: center;
  }
}

.wsd-archive-badge-overlay {
  position: absolute;
  right: 5px;
  bottom: 3px;
  z-index: 12;
  pointer-events: none;
  transition: none !important;
  max-width: calc(100% - 12px);
}

.wsd-overlay-host {
  position: relative;
}

.wsd-card-overlay-root {
  position: relative;
}

.wsd-overlay-host.wsd-card-overlay-surface {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  overflow: visible;
}

.wsd-archive-badge-overlay.wsd-pending {
  opacity: 1;
  visibility: visible;
}

.wsd-archive-badge-overlay.wsd-ready {
  opacity: 1;
  visibility: visible;
}

.wsd-archive-badge-overlay.wsd-pos-left-top {
  left: 5px;
  top: 3px;
  right: auto;
  bottom: auto;
}

.wsd-archive-badge-overlay.wsd-pos-left-bottom {
  left: 5px;
  bottom: 3px;
  right: auto;
  top: auto;
}

.wsd-archive-badge-overlay.wsd-pos-right-top {
  right: 5px;
  top: 3px;
  left: auto;
  bottom: auto;
}

.wsd-archive-badge-overlay.wsd-pos-right-bottom {
  right: 5px;
  bottom: 3px;
  left: auto;
  top: auto;
}

.wsd-archive-badge-overlay .wsd-badge-archive,
.wsd-archive-badge-fallback .wsd-badge-archive {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.15;
}

.wsd-archive-badge-inline {
  display: block;
  margin: 6px 0;
}

.wsd-archive-badge-inline .wsd-badge-archive {
  display: inline-block;
  margin: 0;
  max-width: 100%;
  white-space: normal;
  padding: 3px 7px;
  font-size: 10.5px;
  line-height: 1.1;
}

.wsd-archive-timer-overlay {
  position: absolute;
  left: 6px;
  bottom: 4px;
  z-index: 11;
  pointer-events: none;
  transition: none !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.wsd-archive-timer-overlay .wsd-timer.is-archive-inline {
  margin: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.wsd-archive-timer-overlay .wsd-timer.is-archive-inline .wsd-timer-icon svg {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.wsd-archive-timer-inline {
  transition: none !important;
}

/* Keep timer text optically centered to the icon on all small loop cards. */
.wsd-timer.is-archive-inline .wsd-timer-count {
  display: inline-flex;
  align-items: center;
  transform: translateY(-1px);
}

/* Keep one-line loop timers (no label) perfectly centered with icon. */
.wsd-timer.is-archive-inline.no-label .wsd-timer-count {
  transform: translateY(0);
}

/* Single-product small loops (related/upsell/recent): fix right padding + vertical centering. */
.single-product .wsd-timer.is-archive-inline.wsd-related-label-enabled {
  padding-right: 10px !important;
}

.single-product .wsd-timer.is-archive-inline.wsd-related-label-disabled {
  padding-right: 8px !important;
  transform: translateY(0) !important;
}

.single-product .wsd-timer.is-archive-inline.wsd-related-label-enabled .wsd-timer-count,
.single-product .wsd-timer.is-archive-inline.wsd-related-label-disabled .wsd-timer-count {
  transform: translateY(-1px) !important;
}

/* Single-product small blocks (related/recent/upsell/cross-sell):
   when timer is positioned in-image (overlay), keep text slightly lower for
   perfect vertical centering inside the badge. */
.single-product .related .wsd-archive-timer-overlay .wsd-timer.is-archive-inline .wsd-timer-label,
.single-product .related .wsd-archive-timer-overlay .wsd-timer.is-archive-inline .wsd-timer-count,
.single-product .upsells .wsd-archive-timer-overlay .wsd-timer.is-archive-inline .wsd-timer-label,
.single-product .upsells .wsd-archive-timer-overlay .wsd-timer.is-archive-inline .wsd-timer-count,
.single-product .cross-sells .wsd-archive-timer-overlay .wsd-timer.is-archive-inline .wsd-timer-label,
.single-product .cross-sells .wsd-archive-timer-overlay .wsd-timer.is-archive-inline .wsd-timer-count,
.single-product [class*="recent"] .wsd-archive-timer-overlay .wsd-timer.is-archive-inline .wsd-timer-label,
.single-product [class*="recent"] .wsd-archive-timer-overlay .wsd-timer.is-archive-inline .wsd-timer-count {
  transform: translateY(0) !important;
}

/* Same single-product small blocks: when timer is outside image (inline),
   keep text 1px lower so it is vertically centered. */
.single-product .related .wsd-archive-timer-inline:not(.wsd-archive-timer-overlay) .wsd-timer.is-archive-inline .wsd-timer-label,
.single-product .related .wsd-archive-timer-inline:not(.wsd-archive-timer-overlay) .wsd-timer.is-archive-inline .wsd-timer-count,
.single-product .upsells .wsd-archive-timer-inline:not(.wsd-archive-timer-overlay) .wsd-timer.is-archive-inline .wsd-timer-label,
.single-product .upsells .wsd-archive-timer-inline:not(.wsd-archive-timer-overlay) .wsd-timer.is-archive-inline .wsd-timer-count,
.single-product .cross-sells .wsd-archive-timer-inline:not(.wsd-archive-timer-overlay) .wsd-timer.is-archive-inline .wsd-timer-label,
.single-product .cross-sells .wsd-archive-timer-inline:not(.wsd-archive-timer-overlay) .wsd-timer.is-archive-inline .wsd-timer-count,
.single-product [class*="recent"] .wsd-archive-timer-inline:not(.wsd-archive-timer-overlay) .wsd-timer.is-archive-inline .wsd-timer-label,
.single-product [class*="recent"] .wsd-archive-timer-inline:not(.wsd-archive-timer-overlay) .wsd-timer.is-archive-inline .wsd-timer-count {
  transform: translateY(0) !important;
}

/* Prevent tiny load-shifts: keep archive UI hidden until first JS positioning pass. */
.wsd-archive-badge-overlay.wsd-init-pending,
.wsd-archive-badge-inline.wsd-init-pending,
.wsd-archive-timer-inline.wsd-init-pending,
.wsd-archive-timer-overlay.wsd-init-pending {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.wsd-archive-badge-overlay.wsd-ui-ready,
.wsd-archive-badge-inline.wsd-ui-ready,
.wsd-archive-timer-inline.wsd-ui-ready,
.wsd-archive-timer-overlay.wsd-ui-ready {
  opacity: 1 !important;
  visibility: visible !important;
}

.wsd-archive-badge-overlay .wsd-badge {
  margin: 0;
  padding: 3px 7px;
  font-size: 10.5px;
  line-height: 1.1;
}

.wsd-archive-badge-fallback {
  margin: 0 0 6px;
}

.wsd-has-button-style .button.single_add_to_cart_button,
.wsd-has-button-style .single_add_to_cart_button.button,
form.wsd-button-style-active .button.single_add_to_cart_button,
form.wsd-button-style-active .single_add_to_cart_button.button,
.single_add_to_cart_button.button.wsd-button-style-active,
.button.single_add_to_cart_button.wsd-button-style-active {
  background: var(--wsd-btn-bg, #007cba) !important;
  color: var(--wsd-btn-color, #ffffff) !important;
  border-color: var(--wsd-btn-bg, #007cba) !important;
  min-height: 45px;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
}

/* Keep the campaign label horizontal while Rey is sizing/rebuilding the button. */
.wsd-has-button-style .single_add_to_cart_button .single_add_to_cart_button-text,
.wsd-has-button-style .single_add_to_cart_button .single_add_to_cart_button-text .__text,
form.wsd-button-style-active .single_add_to_cart_button .single_add_to_cart_button-text,
form.wsd-button-style-active .single_add_to_cart_button .single_add_to_cart_button-text .__text,
.single_add_to_cart_button.wsd-button-style-active .single_add_to_cart_button-text,
.single_add_to_cart_button.wsd-button-style-active .single_add_to_cart_button-text .__text {
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
}

/* Hide campaign countdown only in mini-cart suggestion blocks (mobile/off-canvas). */
.rey-cartPanel .wsd-archive-timer-inline,
.rey-cartPanel .wsd-archive-timer-overlay,
.rey-cartPanel .wsd-timer.is-archive-inline,
.widget_shopping_cart_content .wsd-archive-timer-inline,
.widget_shopping_cart_content .wsd-archive-timer-overlay,
.widget_shopping_cart_content .wsd-timer.is-archive-inline,
.woocommerce-mini-cart .wsd-archive-timer-inline,
.woocommerce-mini-cart .wsd-archive-timer-overlay,
.woocommerce-mini-cart .wsd-timer.is-archive-inline {
  display: none !important;
}

/* Keep action-price label out of mini-cart/offcanvas UI (too cramped). */
.rey-cartPanel .wsd-price-note,
.rey-cartPanel .wsd-tier-note,
.rey-cartPanel .wsd-campaign-price-note,
.widget_shopping_cart_content .wsd-price-note,
.widget_shopping_cart_content .wsd-tier-note,
.widget_shopping_cart_content .wsd-campaign-price-note,
.woocommerce-mini-cart .wsd-price-note,
.woocommerce-mini-cart .wsd-tier-note,
.woocommerce-mini-cart .wsd-campaign-price-note {
  display: none !important;
}

/* Keep plugin discount line-item markup visually identical to theme/Woo defaults. */
.wsd-cart-price-discounted {
  color: inherit !important;
  font-weight: inherit !important;
  line-height: inherit;
}

/* Checkout: keep plugin discount presentation equal to Woo sale-style line display. */
.woocommerce-checkout .wsd-cart-price-discounted {
  display: inline-block;
  line-height: 1.35;
}

.woocommerce-checkout .wsd-cart-price-discounted del,
.woocommerce-checkout .wsd-cart-price-discounted del .woocommerce-Price-amount.amount {
  display: block;
  margin: 0 0 2px 0;
}

.woocommerce-checkout .wsd-cart-price-discounted ins {
  display: block;
  color: #ff0000 !important;
  text-decoration: underline !important;
  text-decoration-skip-ink: none;
  text-decoration-thickness: from-font;
  text-underline-offset: 1px;
}

.woocommerce-checkout .wsd-cart-price-discounted ins .woocommerce-Price-amount.amount {
  color: #ff0000 !important;
  text-decoration: inherit !important;
}

/* Mini-cart: keep sale + regular prices on one line like native Rey/Woo rows. */
.rey-cartPanel .wsd-cart-price-discounted del,
.rey-cartPanel .wsd-cart-price-discounted del .woocommerce-Price-amount.amount,
.rey-cartPanel .wsd-cart-price-discounted ins,
.rey-cartPanel .wsd-cart-price-discounted ins .woocommerce-Price-amount.amount,
.widget_shopping_cart_content .wsd-cart-price-discounted del,
.widget_shopping_cart_content .wsd-cart-price-discounted del .woocommerce-Price-amount.amount,
.widget_shopping_cart_content .wsd-cart-price-discounted ins,
.widget_shopping_cart_content .wsd-cart-price-discounted ins .woocommerce-Price-amount.amount,
.woocommerce-mini-cart .wsd-cart-price-discounted del,
.woocommerce-mini-cart .wsd-cart-price-discounted del .woocommerce-Price-amount.amount,
.woocommerce-mini-cart .wsd-cart-price-discounted ins,
.woocommerce-mini-cart .wsd-cart-price-discounted ins .woocommerce-Price-amount.amount {
  display: inline !important;
}

.rey-cartPanel .wsd-cart-price-discounted,
.widget_shopping_cart_content .wsd-cart-price-discounted,
.woocommerce-mini-cart .wsd-cart-price-discounted {
  display: inline-block !important;
  white-space: nowrap;
}

.rey-cartPanel .wsd-cart-price-discounted del,
.widget_shopping_cart_content .wsd-cart-price-discounted del,
.woocommerce-mini-cart .wsd-cart-price-discounted del {
  margin-right: 6px;
}

/* Per-campaign promotion and quantity progress in cart + mini-cart. */
.wsd-cart-progress-shell {
  display: grid;
  gap: 14px;
  width: 100%;
  margin: 0 0 24px;
  box-sizing: border-box;
}

.wsd-cart-progress-shell[hidden] {
  display: none !important;
}

.wsd-cart-progress-card {
  width: 100%;
  padding: 24px;
  border: 1px solid var(--wsd-progress-border, #dedede);
  background: var(--wsd-progress-bg, #fff);
  color: var(--wsd-progress-color, #111);
  box-sizing: border-box;
}

.wsd-cart-progress-title {
  display: block;
  margin: 0 0 8px;
  color: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.wsd-cart-progress-message {
  margin: 0 0 18px;
  color: inherit;
  font-size: 16px;
  line-height: 1.45;
}

.wsd-cart-progress-count {
  margin: 0 0 7px;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.wsd-cart-progress-reward {
  margin: -7px 0 14px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.wsd-cart-progress-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 9px;
  margin: 0 0 20px;
  border: 1px solid var(--wsd-progress-border, #dedede);
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}

.wsd-cart-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--wsd-progress-bar, #222);
  transition: width 180ms ease;
}

.wsd-cart-progress-card.is-complete .wsd-cart-progress-track > span {
  background: var(--wsd-progress-bar, #222);
}

.wsd-cart-progress-card .wsd-cart-progress-button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 12px 28px;
  border: 1px solid var(--wsd-progress-button-bg, #222) !important;
  border-radius: 0;
  background: var(--wsd-progress-button-bg, #222) !important;
  color: var(--wsd-progress-button-color, #fff) !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: none !important;
}

.wsd-cart-progress-card .wsd-cart-progress-button.button:hover,
.wsd-cart-progress-card .wsd-cart-progress-button.button:focus {
  border-color: var(--wsd-progress-button-bg, #222) !important;
  background: var(--wsd-progress-button-bg, #222) !important;
  color: var(--wsd-progress-button-color, #fff) !important;
  filter: brightness(0.9);
}

.wsd-cart-progress-shell--mini {
  gap: 10px;
  margin: 0 0 14px;
}

.wsd-cart-progress-shell--mini .wsd-cart-progress-card {
  padding: 15px;
  border-color: var(--wsd-progress-border, #dedede) !important;
  text-align: center;
}

.wsd-cart-progress-shell--mini .wsd-cart-progress-title {
  margin-bottom: 5px;
  font-size: 16px;
}

.wsd-cart-progress-shell--mini .wsd-cart-progress-message {
  margin-bottom: 11px;
  font-size: 13px;
  line-height: 1.35;
}

.wsd-cart-progress-shell--mini .wsd-cart-progress-count {
  margin-bottom: 5px;
  font-size: 12px;
}

.wsd-cart-progress-shell--mini .wsd-cart-progress-reward {
  margin: -4px 0 9px;
  font-size: 12px;
  line-height: 1.35;
}

.wsd-cart-progress-shell--mini .wsd-cart-progress-track {
  height: 7px;
  margin-bottom: 12px;
}

.wsd-cart-progress-shell--mini .wsd-cart-progress-button.button {
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  font-size: 12px;
}

@media (max-width: 767px) {
  .wsd-cart-progress-shell {
    gap: 10px;
    margin-bottom: 18px;
  }

  .wsd-cart-progress-card {
    padding: 20px 16px;
  }

  .wsd-cart-progress-title {
    font-size: 20px;
  }

  .wsd-cart-progress-message {
    margin-bottom: 15px;
    font-size: 15px;
  }

  .wsd-cart-progress-card .wsd-cart-progress-button.button {
    width: 100%;
  }
}
