/* Preserve native price visibility and the existing quotation/variant guards. */
.gs-wholesale [data-gs-range-active="1"] { display: none !important; }
.gs-wholesale .gs-reference-range:has(+ .product_price.gs-await-quote),
.gs-wholesale .gs-reference-range:has(+ .product_price.d-none) { display: none; }
.gs-wholesale .product_price[data-gs-range-active="1"].gs-await-quote:not(.d-none) { display: inline-block !important; }

/* Use the same label/value hierarchy as the native single reference price. */
.gs-wholesale .gs-reference-range {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--gs-ink, #0b2e40);
  font-size: 16px;
  line-height: 1.7;
}
.gs-wholesale .gs-reference-range > span {
  display: block;
  margin-bottom: 4px;
  color: #647078;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
}
.gs-wholesale .gs-reference-range strong {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.gs-wholesale .gs-range-value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.gs-wholesale .gs-reference-range b { font-weight: 400; }
.gs-wholesale .gs-reference-range small {
  margin-left: 0;
  font-size: 12px;
  color: #647078;
  white-space: nowrap;
}
.gs-wholesale .gs-featured-body .gs-reference-range { margin: 14px 0; }
.gs-wholesale .gs-featured-body .gs-reference-range strong { font-size: 17px; }
.gs-wholesale #product_details .gs-reference-range { margin: 1rem 0; }
.gs-wholesale #product_details .gs-reference-range strong { font-size: 28px; font-weight: 600; }
@media (max-width: 575px) {
  .gs-wholesale #products_grid .gs-reference-range { font-size: 14px; }
  .gs-wholesale #products_grid .gs-reference-range strong { font-size: 14px; }
}

/* Only long ranges adapt to the actual card content width. */
.gs-wholesale #products_grid .o_wsale_product_information { container-type: inline-size; }
@container (max-width: 180px) {
  .gs-wholesale #products_grid .gs-reference-range .gs-range-long { gap: 2px; }
  .gs-wholesale #products_grid .gs-reference-range .gs-range-long strong {
    font-size: clamp(10px, 8.6cqi, 15px);
  }
  .gs-wholesale #products_grid .gs-reference-range .gs-range-long small {
    font-size: clamp(10px, 7.2cqi, 12px);
  }
}

/* Match the product note panel's left-hand gold accent. */
.gs-wholesale #product_details .gs-date-control-product {
  border-top: 1px solid #e2dfd4;
  border-left: 3px solid var(--gs-gold, #b49352);
}

/* Native heading utilities must use the same brand typeface as range prices. */
.gs-wholesale .product_price .h6,
.gs-wholesale .product_price .oe_price,
.gs-wholesale .gs-range-value,
.gs-wholesale .gs-reference-range strong,
.gs-wholesale .gs-featured-price strong {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
/* Both reference captions share the existing market-price gold-brown. */
.gs-wholesale .gs-reference-label,
.gs-wholesale .gs-reference-range > span {
  color: #80642f;
}

/* Keep each catalogue price below its action in the normal document flow.
   Native desktop actions retain their existing absolute positioning. */
.gs-wholesale #products_grid .o_wsale_product_sub {
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}
.gs-wholesale #products_grid .o_wsale_product_sub > .product_price,
.gs-wholesale #products_grid .o_wsale_product_sub > .gs-reference-range {
  width: 100%;
  min-width: 0;
  text-align: left;
}
.gs-wholesale .product_price { white-space: nowrap; }
.gs-wholesale .gs-single-unit {
  margin-left: 4px;
  color: #647078;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

/* Native amounts remain intact for Odoo updates and GS zero-price checks. */
.gs-wholesale .oe_currency_value.gs-precision-source { display: none !important; }
.gs-wholesale .gs-display-currency-value { font: inherit; }
