.kcc-catalog-validity {
  margin: 0 0 1rem;
  color: var(--kcc-regular-price-color, #555);
  font-size: 0.9em;
  font-weight: normal;
  line-height: 1.5;
}

.kcc-pricing-loop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  gap: 0.25rem;
}

.kcc-pricing-loop .kcc-campaigns-list {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
}

/* Woo archive and related cards share this wrapper; singles and drawers do not. */
ul.products li.product .kcc-pricing-loop {
  align-items: center;
  text-align: center;
}

ul.products li.product .kcc-pricing-loop .kcc-campaigns-list {
  justify-content: center;
}

.kcc-pricing-loop .kcc-campaigns,
.kcc-pricing-loop .kcc-campaign-item {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kcc-pricing-loop .kcc-regular-price {
  display: block;
  white-space: nowrap;
}

.kcc-pricing-loop .kcc-regular-price-label,
.kcc-pricing-loop .kcc-regular-price del {
  color: inherit;
  opacity: 1;
}

.kcc-pricing-loop .kcc-regular-price del {
  text-decoration: line-through;
}

.kcc-campaign-lowest-price {
  display: block;
  /* Two size steps below 0.8em, with a readable minimum on small cards. */
  font-size: max(0.75rem, 0.6em);
}

/* Keep the main single's reference note independent of the larger price font.
   Embedded product lists retain their existing typography. */
.single-product .summary .kcc-campaign-lowest-price:not(ul.products *) {
  font-size: 1rem;
}

.kcc-pricing-loop .kcc-regular-price,
.kcc-campaigns-single .kcc-regular-price,
.kcc-campaign-lowest-price {
  color: var(--kcc-regular-price-color, #555);
  font-weight: normal;
}

.kcc-pricing-loop .kcc-regular-price,
.kcc-campaigns-single .kcc-regular-price {
  font-size: 0.8em;
}

.kcc-campaign-item .kcc-regular-price,
.kcc-campaign-item .kcc-campaign-lowest-price {
  margin-top: 0.25rem;
}

.kcc-availability {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  margin: 0.75rem 0;
  color: #333;
  font-size: 0.9rem;
  font-weight: normal;
  line-height: 1.5;
}

.kcc-availability-dot {
  flex: 0 0 0.65em;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
}

.kcc-availability-normal .kcc-availability-dot {
  background: #25823b;
}

.kcc-availability-low .kcc-availability-dot {
  background: #b87900;
}

.kcc-availability-sold_out .kcc-availability-dot {
  background: #c62828;
}

/* Anchor the overlay without changing the card's grid or image dimensions. */
li.product.kcc-availability-sold-out {
  position: relative;
}

li.product.kcc-availability-sold-out .kcc-sold-out-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  max-width: calc(100% - 1rem);
  box-sizing: border-box;
  padding: 0.3em 0.6em;
  border-radius: 3px;
  color: #fff;
  background: #333;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  pointer-events: none;
}
