/* Product 029 only. Does not style cart, checkout, other product pages or admin. */
body.treasure-p029-appearance-fix .product_title,
body.treasure-p029-appearance-fix .entry-summary .product_title,
body.treasure-p029-appearance-fix .summary h1.product_title,
body.treasure-p029-appearance-fix h1.entry-title {
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: clamp(30px, 2.9vw, 38px) !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.055em !important;
  color: #202c41 !important;
  margin-bottom: 14px !important;
}
body.treasure-p029-appearance-fix .entry-summary .price,
body.treasure-p029-appearance-fix .summary .price {
  color: #1c3b5a !important;
  font-family: 'Manrope', Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 20px !important;
}
body.treasure-p029-appearance-fix .entry-summary .woocommerce-product-details__short-description,
body.treasure-p029-appearance-fix .summary .woocommerce-product-details__short-description {
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
  color: #435670 !important;
}
body.treasure-p029-appearance-fix .entry-summary .variations,
body.treasure-p029-appearance-fix .summary .variations {
  font-family: 'Manrope', Arial, sans-serif !important;
}
body.treasure-p029-appearance-fix .treasure-p029-color-row th.label,
body.treasure-p029-appearance-fix .treasure-p029-color-row label {
  font-family: 'Manrope', Arial, sans-serif !important;
  color: #263b57 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
/* Hide only the old selector's *presentation*, preserving its actual select
   node in the DOM so WooCommerce's variation/price/cart logic still works. */
body.treasure-p029-appearance-fix .treasure-p029-original-ui {
  display: none !important;
}
body.treasure-p029-appearance-fix .treasure-p029-swatches {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 2px;
  width: 100%;
}
body.treasure-p029-appearance-fix .treasure-p029-swatch {
  all: unset;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-height: 52px;
  padding: 7px 13px !important;
  border: 1px solid #d1ddeb !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #1f3553 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
body.treasure-p029-appearance-fix .treasure-p029-swatch:hover {
  border-color: #587391 !important;
  background: #f9fbff !important;
}
body.treasure-p029-appearance-fix .treasure-p029-swatch[aria-pressed='true'] {
  border-color: #1b3a5a !important;
  background: #f5f8fc !important;
  box-shadow: inset 0 0 0 1px #1b3a5a !important;
}
body.treasure-p029-appearance-fix .treasure-p029-swatch:focus-visible,
body.treasure-p029-appearance-fix .treasure-p029-clear:focus-visible {
  outline: 3px solid #6ca2dd !important;
  outline-offset: 3px !important;
}
body.treasure-p029-appearance-fix .treasure-p029-swatch[disabled] {
  opacity: 0.44;
  cursor: not-allowed !important;
}
body.treasure-p029-appearance-fix .treasure-p029-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef1f4;
  border: 1px solid #e1e5eb;
}
body.treasure-p029-appearance-fix .treasure-p029-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  margin: 0 !important;
  max-width: none !important;
}
body.treasure-p029-appearance-fix .treasure-p029-swatch-text {
  white-space: nowrap;
}
body.treasure-p029-appearance-fix .treasure-p029-clear {
  all: unset;
  display: inline-block;
  margin: 9px 0 0 !important;
  color: #536783 !important;
  font: 500 12px/1.5 'Manrope', Arial, sans-serif !important;
  cursor: pointer !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.treasure-p029-appearance-fix .treasure-p029-clear:hover {
  color: #153c63 !important;
}
body.treasure-p029-appearance-fix .treasure-p029-color-row .value,
body.treasure-p029-appearance-fix .treasure-p029-color-row td {
  overflow: visible !important;
}
@media (max-width: 767px) {
  body.treasure-p029-appearance-fix .product_title,
  body.treasure-p029-appearance-fix h1.entry-title {font-size: 29px !important;}
  body.treasure-p029-appearance-fix .treasure-p029-swatches {gap: 8px;}
  body.treasure-p029-appearance-fix .treasure-p029-swatch {padding: 6px 10px !important; min-height: 47px;}
  body.treasure-p029-appearance-fix .treasure-p029-thumb {width: 27px; height: 27px; flex-basis: 27px;}
}

/* Long description immediately beneath product meta (SKU and category). */
body.treasure-p029-appearance-fix .summary .treasure-p029-description,
body.treasure-p029-appearance-fix .entry-summary .treasure-p029-description {
    border-top: 1px solid #dfe5ed;
    margin-top: 22px;
    padding-top: 20px;
    clear: both;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 400;
    color: #465a73;
}
body.treasure-p029-appearance-fix .summary .treasure-p029-description p {margin: 0 0 12px;}
body.treasure-p029-appearance-fix .summary .treasure-p029-description p:last-child {margin-bottom: 0;}
