/* TPS: catalog variation pills (exact-2 only) */
/* Fixed slot on every card so rows stay even (with/without pills) */

/* Card column: box-text fills leftover under the image (NOT 100% of the whole card).
   height:100% on .box-text used to equal the full .box (image + text). Combined with
   .product-small .box { overflow:hidden } and home mobile .col-inner { height:100% },
   prices were pushed (margin-top:auto) below the clip edge — empty space under titles. */
.product-small.box,
.product-small .col-inner {
  display: flex !important;
  flex-direction: column !important;
}
.product-small.box {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
}
.product-small .box-image {
  flex: 0 0 auto !important;
}
.product-small .box-text,
.product-small .box-text-products {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
.product-small .box-text .price-wrapper,
.product-small .box-text-products .price-wrapper,
.product-small .box-text .price,
.product-small .box-text-products > .price {
  margin-top: auto !important;
}

/* Homepage + shop mobile: never clip / hide loop prices */
@media (max-width: 849px) {
  body.home .product-small .box-text,
  body.home .product-small .box-text-products,
  body.post-type-archive-product .product-small .box-text,
  body.woocommerce-shop .product-small .box-text,
  body.tax-product_cat .product-small .box-text,
  body.woocommerce.archive .product-small .box-text {
    height: auto !important;
    overflow: visible !important;
  }
  body.home .product-small .price-wrapper,
  body.home .product-small .price,
  body.post-type-archive-product .product-small .price-wrapper,
  body.post-type-archive-product .product-small .price,
  body.woocommerce-shop .product-small .price-wrapper,
  body.woocommerce-shop .product-small .price,
  body.tax-product_cat .product-small .price-wrapper,
  body.tax-product_cat .product-small .price,
  body.woocommerce.archive .product-small .price-wrapper,
  body.woocommerce.archive .product-small .price {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    position: static !important;
    clip: auto !important;
    clip-path: none !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    color: #008b4b !important;
  }
  body.home .product-small .price .amount,
  body.home .product-small .price ins,
  body.home .product-small .price ins .amount,
  body.home .product-small .price bdi,
  body.post-type-archive-product .product-small .price .amount,
  body.post-type-archive-product .product-small .price ins,
  body.woocommerce-shop .product-small .price .amount,
  body.woocommerce-shop .product-small .price ins,
  body.tax-product_cat .product-small .price .amount,
  body.woocommerce.archive .product-small .price .amount {
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 16px !important;
    color: #008b4b !important;
  }
  body.home .product-small .price del,
  body.home .product-small .price del .amount,
  body.home .product-small .price del bdi,
  body.post-type-archive-product .product-small .price del,
  body.woocommerce-shop .product-small .price del,
  body.tax-product_cat .product-small .price del,
  body.woocommerce.archive .product-small .price del {
    visibility: visible !important;
    font-size: 14px !important;
    color: #999 !important;
  }
}

.product-small .tps-var-slot {
  flex: 0 0 28px !important;
  width: 100% !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  margin: 6px 0 4px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.product-small .tps-var-pills {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 1px !important;
  background: #f3f4f6 !important;
  border-radius: 5px !important;
  box-sizing: border-box !important;
}
/* Override Flatsome/Woo global button padding that was inflating the track */
.product-small .tps-var-pills .tps-var-pill,
.product-small button.tps-var-pill,
.product-small .tps-var-pill.button {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #6b7280 !important;
  font-family: "Be Vietnam Pro", Montserrat, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease !important;
}
.product-small .tps-var-pills .tps-var-pill.is-active,
.product-small button.tps-var-pill.is-active {
  background: #fff !important;
  background-image: none !important;
  color: #008b4b !important;
  box-shadow: inset 0 0 0 1px #e5e7eb !important;
}
.product-small .tps-var-pills .tps-var-pill:hover,
.product-small button.tps-var-pill:hover {
  color: #008b4b !important;
}
.product-small .tps-var-pills .tps-var-pill:focus,
.product-small button.tps-var-pill:focus {
  outline: none !important;
}
.product-small .tps-var-pills .tps-var-pill:focus-visible {
  box-shadow: inset 0 0 0 1px #008b4b !important;
}
.product-small .price-wrapper,
.product-small .box-text .price {
  min-height: 1.4em !important;
}
