/* WheelVexa product presentation. This file changes layout only: the audited
   product content, WooCommerce variation resolver and quotation gate remain intact. */

body.single-product .wheelvexa-catalog-quote,
body.single-product .wheelvexa-source-content.wheelvexa-product-details {
  --wv-detail-navy: #001e35;
  --wv-detail-orange: #ee4b1c;
  --wv-detail-action: #d63f14;
  --wv-detail-accent-text: #c83d14;
  --wv-detail-text: #26333d;
  --wv-detail-muted: #657079;
  --wv-detail-line: #dfe4e7;
  --wv-detail-wash: #f7f8f8;
  color: var(--wv-detail-text);
  font-family: var(--wv-font-body, "WV Montserrat", Arial, sans-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
}

body.single-product .wheelvexa-catalog-quote *,
body.single-product .wheelvexa-product-details * {
  box-sizing: border-box;
}

/* Keep the two enquiry routes distinct, aligned and comfortably separated. */
body.single-product .wheelvexa-catalog-quote {
  margin: 24px 0 28px;
  padding: 22px 0 0;
  border-top: 1px solid var(--wv-detail-line);
}

body.single-product .wheelvexa-quote-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 0 0 12px;
}

body.single-product .wheelvexa-catalog-quote .wheelvexa-quote-eyebrow {
  margin: 0;
  color: var(--wv-detail-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.5;
  text-transform: uppercase;
}

body.single-product .wheelvexa-catalog-quote .wheelvexa-catalog-sku {
  margin: 0;
  color: var(--wv-detail-muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.single-product .wheelvexa-catalog-quote .wheelvexa-quote-selection {
  margin: 0 0 18px;
  color: var(--wv-detail-text);
  font-size: 15px;
  line-height: 1.7;
}

body.single-product .wheelvexa-quote-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin: 0;
}

body.single-product .wheelvexa-quote-actions a.button.wheelvexa-quote-button,
body.single-product .wheelvexa-product-details a.button.wheelvexa-order-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  height: auto;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--wv-detail-action);
  border-radius: 0;
  background: var(--wv-detail-action);
  box-shadow: none;
  color: #fff;
  font-family: var(--wv-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  overflow-wrap: normal;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

body.single-product .wheelvexa-quote-actions a.button.wheelvexa-quote-trade,
body.single-product .wheelvexa-order-card--trade a.button.wheelvexa-order-link {
  border-color: var(--wv-detail-navy);
  background: #fff;
  color: var(--wv-detail-navy);
}

body.single-product .wheelvexa-quote-actions a.button.wheelvexa-quote-button::before,
body.single-product .wheelvexa-quote-actions a.button.wheelvexa-quote-button::after,
body.single-product .wheelvexa-product-details a.button.wheelvexa-order-link::before,
body.single-product .wheelvexa-product-details a.button.wheelvexa-order-link::after {
  content: none;
}

body.single-product .wheelvexa-quote-actions a.button.wheelvexa-quote-individual:hover,
body.single-product .wheelvexa-order-card--individual a.button.wheelvexa-order-link:hover {
  border-color: #c83d14;
  background: #c83d14;
  color: #fff;
}

body.single-product .wheelvexa-quote-actions a.button.wheelvexa-quote-trade:hover,
body.single-product .wheelvexa-order-card--trade a.button.wheelvexa-order-link:hover {
  border-color: var(--wv-detail-navy);
  background: var(--wv-detail-navy);
  color: #fff;
}

body.single-product .wheelvexa-quote-actions a:focus-visible,
body.single-product .wheelvexa-product-details a:focus-visible,
body.single-product .wheelvexa-faq summary:focus-visible {
  outline: 2px solid var(--wv-detail-orange);
  outline-offset: 4px;
}

body.single-product .wheelvexa-catalog-quote .wheelvexa-quote-note {
  margin: 15px 0 0;
  color: var(--wv-detail-muted);
  font-size: 13px;
  line-height: 1.75;
}

body.single-product .wheelvexa-catalog-quote .wheelvexa-source-conflict-note {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 2px solid var(--wv-detail-orange);
  background: var(--wv-detail-wash);
  font-size: 14px;
  line-height: 1.75;
}

/* A readable product story, with consistent section rhythm and real images. */
body.single-product .wheelvexa-source-content.wheelvexa-product-details {
  display: block;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 8px 0 0;
  text-align: left;
}

body.single-product .wheelvexa-product-details > section {
  margin: 0;
}

body.single-product .wheelvexa-product-details > section + section {
  margin-top: 64px;
}

body.single-product .wheelvexa-product-details h2 {
  margin: 0 0 16px;
  color: var(--wv-detail-navy);
  font-family: var(--wv-font-heading, "WV Roboto", Arial, sans-serif);
  font-size: var(--wv-heading-section, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.22;
  text-transform: none;
}

body.single-product .wheelvexa-product-details p {
  margin: 0 0 16px;
  color: var(--wv-detail-muted);
  font-size: 15px;
  line-height: 1.75;
}

body.single-product .wheelvexa-product-details p:last-child {
  margin-bottom: 0;
}

body.single-product .wheelvexa-product-details p.wheelvexa-source-content__eyebrow {
  margin: 0 0 10px;
  color: var(--wv-detail-accent-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  line-height: 1.5;
  text-transform: uppercase;
}

body.single-product .wheelvexa-detail-overview {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: start;
  gap: 48px;
}

body.single-product .wheelvexa-detail-overview > *,
body.single-product .wheelvexa-product-details figure,
body.single-product .wheelvexa-customization-grid > *,
body.single-product .wheelvexa-order-card {
  min-width: 0;
}

body.single-product .wheelvexa-product-details .wheelvexa-detail-lead {
  color: var(--wv-detail-text);
  font-size: 15px;
}

body.single-product .wheelvexa-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
}

body.single-product .wheelvexa-fact-grid > div {
  padding: 16px 0 0;
  border-top: 1px solid var(--wv-detail-line);
}

body.single-product .wheelvexa-fact-grid dt {
  margin: 0 0 7px;
  color: var(--wv-detail-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .055em;
  line-height: 1.5;
  text-transform: uppercase;
}

body.single-product .wheelvexa-fact-grid dd {
  margin: 0;
  color: var(--wv-detail-navy);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
}

body.single-product .wheelvexa-section-heading {
  max-width: 750px;
  margin: 0 0 28px;
}

body.single-product .wheelvexa-product-view-grid,
body.single-product .wheelvexa-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

body.single-product .wheelvexa-product-details figure {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

body.single-product .wheelvexa-product-view-grid figure img,
body.single-product .wheelvexa-process-grid figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fafafa;
}

body.single-product .wheelvexa-process-grid figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--wv-detail-wash);
}

body.single-product .wheelvexa-product-details figcaption {
  margin: 12px 0 0;
  padding: 0;
  color: var(--wv-detail-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
}

body.single-product .wheelvexa-customization-panel {
  padding: 36px;
  background: var(--wv-detail-wash);
}

body.single-product .wheelvexa-customization-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
}

body.single-product .wheelvexa-customization-grid > div {
  padding-top: 18px;
  border-top: 1px solid var(--wv-detail-line);
}

body.single-product .wheelvexa-customization-grid strong,
body.single-product .wheelvexa-customization-grid span {
  display: block;
}

body.single-product .wheelvexa-customization-grid strong {
  margin: 0 0 7px;
  color: var(--wv-detail-navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

body.single-product .wheelvexa-customization-grid span {
  color: var(--wv-detail-muted);
  font-size: 15px;
  line-height: 1.75;
}

body.single-product ol.wheelvexa-process-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

body.single-product .wheelvexa-process-timeline li {
  min-width: 0;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--wv-detail-line);
  color: var(--wv-detail-navy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  list-style: none;
}

body.single-product .wheelvexa-process-timeline li > span {
  display: block;
  margin: 0 0 6px;
  color: var(--wv-detail-accent-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.single-product .wheelvexa-order-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

body.single-product .wheelvexa-order-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 0 0;
  border-top: 2px solid var(--wv-detail-orange);
  background: #fff;
}

body.single-product .wheelvexa-order-card--trade {
  border-top-color: var(--wv-detail-navy);
}

body.single-product .wheelvexa-order-card--trade p.wheelvexa-source-content__eyebrow {
  color: var(--wv-detail-navy);
}

body.single-product .wheelvexa-product-details .wheelvexa-order-card h2 {
  max-width: 430px;
  font-size: var(--wv-heading-section, 28px);
}

body.single-product .wheelvexa-order-card > p:not(.wheelvexa-source-content__eyebrow) {
  flex: 1;
  margin-bottom: 24px;
}

body.single-product .wheelvexa-product-details a.button.wheelvexa-order-link {
  width: auto;
  max-width: 100%;
  padding-inline: 24px;
}

body.single-product .wheelvexa-faq {
  padding-top: 40px;
  border-top: 1px solid var(--wv-detail-line);
}

body.single-product .wheelvexa-faq details {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--wv-detail-line);
  border-radius: 0;
  background: transparent;
}

body.single-product .wheelvexa-faq summary {
  padding: 20px 6px 20px 0;
  color: var(--wv-detail-navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  cursor: pointer;
}

body.single-product .wheelvexa-faq summary::marker {
  color: var(--wv-detail-orange);
}

body.single-product .wheelvexa-faq details p {
  max-width: 82ch;
  margin: 0;
  padding: 0 24px 22px 0;
  font-size: 15px;
}

@media (max-width: 1120px) {
  body.single-product .wheelvexa-quote-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  body.single-product .wheelvexa-detail-overview {
    gap: 32px;
  }
  body.single-product ol.wheelvexa-process-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.single-product .wheelvexa-source-content.wheelvexa-product-details {
    padding-top: 0;
  }
  body.single-product .wheelvexa-product-details > section + section {
    margin-top: 40px;
  }
  body.single-product .wheelvexa-detail-overview,
  body.single-product .wheelvexa-product-view-grid,
  body.single-product .wheelvexa-process-grid,
  body.single-product .wheelvexa-customization-grid,
  body.single-product .wheelvexa-order-paths {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  body.single-product .wheelvexa-product-details h2 {
    font-size: var(--wv-heading-section, 26px);
  }
  body.single-product .wheelvexa-fact-grid {
    gap: 22px 20px;
  }
  body.single-product .wheelvexa-section-heading {
    margin-bottom: 24px;
  }
  body.single-product .wheelvexa-customization-panel {
    padding: 26px 22px;
  }
  body.single-product ol.wheelvexa-process-timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 26px;
  }
  body.single-product .wheelvexa-process-timeline li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
    padding: 15px 0;
  }
  body.single-product .wheelvexa-process-timeline li > span {
    margin: 0;
  }
  body.single-product .wheelvexa-product-details .wheelvexa-order-card h2 {
    font-size: var(--wv-heading-section, 26px);
  }
  body.single-product .wheelvexa-product-details a.button.wheelvexa-order-link {
    width: 100%;
  }
  body.single-product .wheelvexa-faq {
    padding-top: 32px;
  }
  body.single-product .wheelvexa-faq summary {
    padding-block: 18px;
    font-size: 16px;
  }
  body.single-product .wheelvexa-quote-heading {
    display: block;
  }
  body.single-product .wheelvexa-catalog-quote .wheelvexa-catalog-sku {
    margin-top: 7px;
  }
}

@media (max-width: 359px) {
  body.single-product .wheelvexa-fact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.single-product .wheelvexa-customization-panel {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product .wheelvexa-quote-actions a.button.wheelvexa-quote-button,
  body.single-product .wheelvexa-product-details a.button.wheelvexa-order-link {
    transition: none;
  }
}

/* Retail presentation is opt-in. Without the explicit body class, the existing
   quotation-only presentation above is unchanged. Native commerce events and
   quantity / variation validation remain owned by WooCommerce and Minimog. */
body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart {
  --wv-retail-navy: #001e35;
  --wv-retail-action: #d63f14;
  --wv-retail-line: #dfe4e7;
  margin: 24px 0 0;
}

body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .entry-product-quantity-wrapper {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .entry-product-quantity-wrapper > .quantity-button-wrapper {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}

body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .quantity-button-wrapper > label.screen-reader-text {
  display: block;
  position: static !important;
  width: auto;
  height: auto;
  margin: 0 0 7px;
  padding: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  color: var(--wv-retail-navy);
  font-family: var(--wv-font-body, "WV Montserrat", Arial, sans-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
}

body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .quantity-button-wrapper .quantity {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 52px;
  margin: 0;
}

body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .quantity-button-wrapper .quantity input.qty {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 52px;
  margin: 0;
  padding: 0 44px;
  border: 1px solid var(--wv-retail-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: var(--wv-retail-navy);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .quantity-button-wrapper .quantity button.decrease,
body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .quantity-button-wrapper .quantity button.increase {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 44px;
  min-width: 44px;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--wv-retail-navy);
  /* The parent draws one FontAwesome icon; hide only its fallback text. */
  font-size: 0;
  line-height: 1;
}

body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .quantity button.decrease {
  right: auto;
  left: 1px;
}

body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .quantity button.increase {
  right: 1px;
  left: auto;
}

body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .entry-product-quantity-wrapper > button.single_add_to_cart_button {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 52px;
  height: auto;
  margin: 0;
  padding: 14px 20px;
  border: 1px solid var(--wv-retail-action);
  border-radius: 0;
  background: var(--wv-retail-action);
  box-shadow: none;
  color: #fff;
  font-family: var(--wv-font-body, "WV Montserrat", Arial, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
  text-transform: none;
  white-space: normal;
}

body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .entry-product-quantity-wrapper > button.single_add_to_cart_button.button-buy-now {
  grid-column: 1 / -1;
  border-color: var(--wv-retail-navy);
  background: #fff;
  color: var(--wv-retail-navy);
}

body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .entry-product-quantity-wrapper > button.single_add_to_cart_button:not(.button-buy-now):hover {
  border-color: #c83d14;
  background: #c83d14;
  color: #fff;
}

body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .entry-product-quantity-wrapper > button.single_add_to_cart_button.button-buy-now:hover {
  border-color: var(--wv-retail-navy);
  background: var(--wv-retail-navy);
  color: #fff;
}

body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .entry-product-quantity-wrapper > button.single_add_to_cart_button.disabled,
body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .entry-product-quantity-wrapper > button.single_add_to_cart_button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart button:focus-visible,
body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart input.qty:focus-visible {
  outline: 2px solid #d63f14;
  outline-offset: 3px;
}

/* Support and trade remain easy to find, without competing with Add to cart. */
body.single-product.wv-retail-enabled .wheelvexa-catalog-quote {
  margin-top: 24px;
  padding-top: 22px;
}

body.single-product.wv-retail-enabled .wheelvexa-quote-actions a.button.wheelvexa-quote-button,
body.single-product.wv-retail-enabled .wheelvexa-quote-actions a.button.wheelvexa-quote-individual {
  min-height: 48px;
  padding: 12px 14px;
  border-color: var(--wv-detail-navy);
  background: #fff;
  color: var(--wv-detail-navy);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

body.single-product.wv-retail-enabled .wheelvexa-quote-actions a.button.wheelvexa-quote-button:hover,
body.single-product.wv-retail-enabled .wheelvexa-quote-actions a.button.wheelvexa-quote-individual:hover {
  border-color: var(--wv-detail-navy);
  background: var(--wv-detail-wash);
  color: var(--wv-detail-navy);
}

/* Both genuine product tabs must remain readable, including at 320px. */
@media (max-width: 767px) {
  body.single-product .woocommerce-main-tabs .minimog-tabs__header-inner {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  body.single-product .woocommerce-main-tabs .minimog-tabs__header-inner .minimog-tabs__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    align-items: stretch;
    gap: 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    white-space: normal;
  }
  body.single-product .woocommerce-main-tabs .minimog-tabs__header-inner .minimog-tabs__header > .tab-title {
    display: flex;
    align-items: stretch;
    width: auto;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    text-align: left;
    white-space: normal;
  }
  body.single-product .woocommerce-main-tabs .minimog-tabs__header-inner .minimog-tabs__header > .tab-title > .tab-title__text {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 10px 0;
    overflow: visible;
    font-family: var(--wv-font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: normal;
  }
}

@media (max-width: 359px) {
  body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .entry-product-quantity-wrapper {
    grid-template-columns: 132px minmax(0, 1fr);
  }
  body.single-product.wv-retail-enabled .woocommerce-variation-add-to-cart .entry-product-quantity-wrapper > button.single_add_to_cart_button {
    padding-inline: 12px;
  }
}
