/* CFS Storefront v0.2.1 — deterministic PDP parity.
 * The parent owns the page/grid. This release replaces only the INSIDE of the
 * purchase-panel summary with the accepted demo composition. */

/* ---- Gallery thumbnails: compact, unnumbered, close together ---- */
.single-product .woocommerce-product-gallery ol,
.single-product .woocommerce-product-gallery ul,
.single-product .flex-control-nav,
.single-product .flex-control-thumbs,
.single-product .cfs-pdp-gallery-parity ol,
.single-product .cfs-pdp-gallery-parity ul {
  list-style: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.single-product .woocommerce-product-gallery li::marker,
.single-product .flex-control-thumbs li::marker,
.single-product .cfs-pdp-gallery-parity li::marker {
  content: "" !important;
  font-size: 0 !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs,
.single-product .cfs-pdp-gallery-parity .flex-control-thumbs,
.single-product .woocommerce-product-gallery > ol,
.single-product .woocommerce-product-gallery > ul {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 6px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li,
.single-product .cfs-pdp-gallery-parity .flex-control-thumbs li {
  float: none !important;
  flex: 0 0 52px !important;
  width: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs img,
.single-product .cfs-pdp-gallery-parity .flex-control-thumbs img {
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  margin: 0 !important;
  object-fit: cover !important;
  border: 1px solid #d9d3ca !important;
  border-radius: 4px !important;
  opacity: 1 !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.single-product .cfs-pdp-gallery-parity .flex-control-thumbs img.flex-active {
  border-color: #ee7025 !important;
  outline: 1px solid #ee7025 !important;
  outline-offset: -2px !important;
}

/* ---- Deterministic accepted purchase panel ---- */
.single-product .cfs-pdp-summary-parity-host .cfs-pdp-original-summary-bridge {
  display: none !important;
}
.single-product .cfs-pdp-summary-parity-host {
  min-width: 0;
}
.single-product .cfs-pdp-summary-parity-host .cfs-pdp-accepted-summary,
.single-product .cfs-pdp-summary-parity-host .cfs-pdp-accepted-summary * {
  box-sizing: border-box;
}
.single-product .cfs-pdp-accepted-summary {
  display: block;
  width: 100%;
  color: #191816;
  font-family: inherit !important;
}
.single-product .cfs-pdp-accepted-identity {
  margin: 0 0 12px !important;
  color: #292724 !important;
  font-family: inherit !important;
  font-size: .98rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}
.single-product .cfs-pdp-accepted-title {
  margin: 0 !important;
  color: #171614 !important;
  font-family: inherit !important;
  font-size: clamp(2rem, 3.15vw, 3.3rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: .98 !important;
  text-transform: none !important;
}
.single-product .cfs-pdp-accepted-sku {
  margin: 18px 0 0 !important;
  color: #706b64 !important;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace) !important;
  font-size: .75rem !important;
  font-weight: 500 !important;
  letter-spacing: .02em !important;
  line-height: 1.4 !important;
  text-transform: none !important;
}
.single-product .cfs-pdp-accepted-specs {
  margin: 18px 0 0 !important;
  color: #706b64 !important;
  font-family: inherit !important;
  font-size: .92rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.52 !important;
  text-transform: none !important;
}
.single-product .cfs-pdp-accepted-price {
  margin: 25px 0 0 !important;
}
.single-product .cfs-pdp-price-sqft {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 !important;
}
.single-product .cfs-pdp-price-sqft strong {
  color: #171614 !important;
  font-family: inherit !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1 !important;
}
.single-product .cfs-pdp-price-sqft span {
  color: #6e6962 !important;
  font-family: inherit !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
}
.single-product .cfs-pdp-price-carton {
  margin-top: 13px !important;
  color: #6f6a63 !important;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace) !important;
  font-size: .74rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  text-transform: none !important;
}
.single-product .cfs-pdp-pro-link {
  display: inline-block;
  margin-top: 9px !important;
  color: #2e5b86 !important;
  font-family: inherit !important;
  font-size: .76rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}
.single-product .cfs-pdp-pro-link:hover,
.single-product .cfs-pdp-pro-link:focus-visible {
  text-decoration: underline !important;
}
.single-product .cfs-pdp-accepted-divider {
  height: 1px;
  margin: 22px 0 18px !important;
  background: #ded9d1;
}
.single-product .cfs-pdp-calc-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(150px, .86fr);
  gap: 10px;
  margin: 0 0 10px !important;
}
.single-product .cfs-pdp-calc-fields label {
  display: grid;
  gap: 6px;
  margin: 0 !important;
  color: #24211e !important;
  font-family: inherit !important;
  font-size: .74rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}
.single-product .cfs-pdp-calc-fields input,
.single-product .cfs-pdp-calc-fields select {
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #cfc8be !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #171614 !important;
  font-family: inherit !important;
  font-size: .88rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
.single-product .cfs-pdp-calc-fields input:focus,
.single-product .cfs-pdp-calc-fields select:focus {
  border-color: #2e5b86 !important;
  outline: 2px solid rgba(46, 91, 134, .2) !important;
  outline-offset: 1px !important;
}
.single-product .cfs-pdp-calc-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 84px;
  margin: 0 !important;
  padding: 13px 14px !important;
  border: 1px solid #ddd7cf !important;
  border-radius: 7px !important;
  background: #f8f6f3 !important;
}
.single-product .cfs-pdp-result-copy {
  min-width: 0;
}
.single-product .cfs-pdp-cartons {
  display: block;
  margin: 0 !important;
  color: #171614 !important;
  font-family: inherit !important;
  font-size: .96rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
  text-transform: none !important;
}
.single-product .cfs-pdp-coverage {
  display: block;
  margin-top: 6px !important;
  color: #746f68 !important;
  font-family: inherit !important;
  font-size: .78rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.48 !important;
  text-transform: none !important;
}
.single-product .cfs-pdp-subtotal {
  margin: 0 !important;
  white-space: nowrap;
  color: #171614 !important;
  font-family: inherit !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
}
.single-product .cfs-pdp-actions {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.2fr);
  gap: 10px;
  margin: 10px 0 0 !important;
}
.single-product .cfs-pdp-actions button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border-radius: 4px !important;
  font-family: inherit !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.single-product .cfs-pdp-sample-button {
  border: 1.5px solid #191816 !important;
  background: #fff !important;
  color: #191816 !important;
}
.single-product .cfs-pdp-sample-button:hover,
.single-product .cfs-pdp-sample-button:focus-visible {
  border-color: #191816 !important;
  background: #f5f2ed !important;
  color: #191816 !important;
}
.single-product .cfs-pdp-add-button {
  border: 1.5px solid #ee7025 !important;
  background: #ee7025 !important;
  color: #fff !important;
}
.single-product .cfs-pdp-add-button:hover,
.single-product .cfs-pdp-add-button:focus-visible {
  border-color: #d95e16 !important;
  background: #d95e16 !important;
  color: #fff !important;
}
.single-product .cfs-pdp-waste-note {
  margin: 9px 0 0 !important;
  color: #77716a !important;
  font-family: inherit !important;
  font-size: .7rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
  text-transform: none !important;
}

/* ---- Colors in collection: after gallery/thumbs and before Specifications ---- */
.single-product .cfs-collection-colors {
  display: block;
  width: 100%;
  margin: 22px 0 18px !important;
  padding: 18px 20px 16px !important;
  border: 1px solid #e3ded6 !important;
  border-radius: 9px !important;
  background: #fff !important;
  clear: both;
}
.single-product .cfs-collection-colors h2 {
  margin: 0 0 12px !important;
  color: #181715 !important;
  font-family: inherit !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}
.single-product .cfs-collection-colors-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.single-product .cfs-collection-color {
  display: block;
  min-width: 0;
  color: #222 !important;
  text-decoration: none !important;
}
.single-product .cfs-collection-color img {
  display: block;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: #f4f2ee !important;
}
.single-product .cfs-collection-color.is-active img {
  border: 2px solid #ee7025 !important;
}
.single-product .cfs-collection-color span {
  display: block;
  margin-top: 5px !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  color: #292724 !important;
  font-family: inherit !important;
  font-size: .63rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
  text-transform: none !important;
}

/* ---- Specifications typography: same normal CFS type system as demo ---- */
.single-product .cfs-pdp-specs-restyled,
.single-product .cfs-pdp-specs-restyled * {
  font-family: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.single-product .cfs-pdp-specs-restyled h2,
.single-product .cfs-pdp-specs-restyled h3 {
  color: #181715 !important;
  font-size: 1.22rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
.single-product .cfs-pdp-specs-restyled th,
.single-product .cfs-pdp-specs-restyled dt,
.single-product .cfs-pdp-specs-restyled [class*="label"],
.single-product .cfs-pdp-specs-restyled [class*="key"] {
  color: #77716a !important;
  font-size: .76rem !important;
  font-weight: 400 !important;
}
.single-product .cfs-pdp-specs-restyled td,
.single-product .cfs-pdp-specs-restyled dd,
.single-product .cfs-pdp-specs-restyled strong,
.single-product .cfs-pdp-specs-restyled [class*="value"] {
  color: #24211e !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
}

/* ---- Coordinated accessories copy parity ---- */
.single-product .cfs-accessories-parity-heading .cfs-accessory-subtitle {
  margin-top: 4px !important;
  color: #746f68 !important;
  font-family: inherit !important;
  font-size: .8rem !important;
  line-height: 1.45 !important;
}

@media (max-width: 1100px) {
  .single-product .cfs-collection-colors-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .single-product .cfs-pdp-accepted-title {
    font-size: clamp(1.85rem, 10vw, 2.55rem) !important;
  }
  .single-product .cfs-pdp-calc-fields,
  .single-product .cfs-pdp-actions,
  .single-product .cfs-pdp-calc-result {
    grid-template-columns: 1fr;
  }
  .single-product .cfs-pdp-subtotal {
    justify-self: start;
  }
  .single-product .cfs-collection-colors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .single-product .woocommerce-product-gallery .flex-control-thumbs li,
  .single-product .cfs-pdp-gallery-parity .flex-control-thumbs li,
  .single-product .woocommerce-product-gallery .flex-control-thumbs img,
  .single-product .cfs-pdp-gallery-parity .flex-control-thumbs img {
    width: 48px !important;
    flex-basis: 48px !important;
    height: 48px !important;
  }
}

/* ---- v0.1.26 PDP finishing refinements ----
 * Keep the accepted component intact; only tune scale/spacing requested in QA. */
.single-product .cfs-pdp-accepted-title {
  font-size: clamp(1.9rem, 2.65vw, 2.85rem) !important;
  line-height: 1.01 !important;
}

/* Slightly reduce the visual scale of the selected product image without
 * changing the gallery column or FlexSlider/WooCommerce geometry. */
.single-product .woocommerce-product-gallery__image > a,
.single-product .cfs-pdp-gallery-parity .woocommerce-product-gallery__image > a {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
}
.single-product .woocommerce-product-gallery__image > a > img,
.single-product .cfs-pdp-gallery-parity .woocommerce-product-gallery__image > a > img {
  width: 92% !important;
  max-width: 92% !important;
  height: auto !important;
  margin: 0 auto !important;
}

@media (max-width: 760px) {
  .single-product .cfs-pdp-accepted-title {
    font-size: clamp(1.75rem, 8.8vw, 2.3rem) !important;
  }
  .single-product .woocommerce-product-gallery__image > a > img,
  .single-product .cfs-pdp-gallery-parity .woocommerce-product-gallery__image > a > img {
    width: 96% !important;
    max-width: 96% !important;
  }
}

/* ---- v0.2.0 compact PDP refinement ----
 * Keep the accepted calculator/content hierarchy, but use real estate more
 * efficiently and remove the visual artifacts created by WooCommerce zoom. */
@media (min-width: 921px) {
  .single-product .cfs-pdp-accepted-title {
    font-size: clamp(1.8rem, 2.15vw, 2.35rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.03em !important;
  }
  .single-product .cfs-pdp-accepted-identity {
    margin-bottom: 8px !important;
    font-size: .9rem !important;
  }
  .single-product .cfs-pdp-accepted-sku {
    margin-top: 12px !important;
    font-size: .7rem !important;
  }
  .single-product .cfs-pdp-accepted-specs {
    margin-top: 13px !important;
    font-size: .84rem !important;
    line-height: 1.45 !important;
  }
  .single-product .cfs-pdp-accepted-price {
    margin-top: 18px !important;
  }
  .single-product .cfs-pdp-accepted-divider {
    margin: 17px 0 15px !important;
  }

  /* Bound the whole gallery instead of making the image smaller inside an
   * oversized gallery frame. This produces deliberate whitespace around the
   * gallery rather than awkward white strips inside the image area. */
  .single-product .woocommerce-product-gallery,
  .single-product .cfs-pdp-gallery-parity {
    width: 100% !important;
    max-width: 620px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .single-product .woocommerce-product-gallery__image > a,
  .single-product .cfs-pdp-gallery-parity .woocommerce-product-gallery__image > a {
    display: block !important;
    width: 100% !important;
    cursor: default !important;
  }
  .single-product .woocommerce-product-gallery__image > a > img,
  .single-product .cfs-pdp-gallery-parity .woocommerce-product-gallery__image > a > img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 560px !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain !important;
  }
}

/* WooCommerce zoom/lightbox is intentionally disabled for CFS product images. */
.single-product .woocommerce-product-gallery__trigger {
  display: none !important;
}
.single-product .woocommerce-product-gallery__image > a,
.single-product .cfs-pdp-gallery-parity .woocommerce-product-gallery__image > a {
  cursor: default !important;
}

/* Smaller, tighter thumbnails for the two principal flooring images. */
.single-product .woocommerce-product-gallery .flex-control-thumbs,
.single-product .cfs-pdp-gallery-parity .flex-control-thumbs,
.single-product .woocommerce-product-gallery > ol,
.single-product .woocommerce-product-gallery > ul {
  gap: 5px !important;
  margin-top: 8px !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li,
.single-product .cfs-pdp-gallery-parity .flex-control-thumbs li {
  flex-basis: 44px !important;
  width: 44px !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs img,
.single-product .cfs-pdp-gallery-parity .flex-control-thumbs img {
  width: 44px !important;
  height: 44px !important;
}

@media (max-width: 920px) {
  .single-product .cfs-pdp-accepted-title {
    font-size: clamp(1.7rem, 7.4vw, 2.2rem) !important;
    line-height: 1.03 !important;
  }
  .single-product .woocommerce-product-gallery,
  .single-product .cfs-pdp-gallery-parity {
    max-width: 100% !important;
  }
  .single-product .woocommerce-product-gallery__image > a > img,
  .single-product .cfs-pdp-gallery-parity .woocommerce-product-gallery__image > a > img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
  }
}


/* ---- v0.2.6 native WooCommerce gallery geometry correction ----
 * WooCommerce FlexSlider owns the viewport, wrapper, and slide widths/offsets.
 * Do NOT force width:100% or margin offsets onto those nodes: doing so
 * overrides FlexSlider's inline geometry and can leave the selected secondary
 * slide outside the visible viewport (a blank large-image area).
 * CFS keeps only presentation rules on the actual anchor/image. */
.single-product .woocommerce-product-gallery,
.single-product .cfs-pdp-gallery-parity {
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}
.single-product .woocommerce-product-gallery__image > a,
.single-product .cfs-pdp-gallery-parity .woocommerce-product-gallery__image > a {
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}
.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery__image > a > img,
.single-product .cfs-pdp-gallery-parity .woocommerce-product-gallery__image img,
.single-product .cfs-pdp-gallery-parity .woocommerce-product-gallery__image > a > img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
}

/* One-time sample feedback appears next to PDP actions; no cart redirect. */
.single-product .cfs-pdp-sample-feedback{margin:10px 0 8px;font-size:.82rem;line-height:1.55;background:#f2f7f1;border-left:3px solid #3a894b;padding:10px 12px;color:#283e2d}
.single-product .cfs-pdp-sample-feedback.is-error{background:#fff4f1;border-left-color:#c6472e;color:#6d2c23}
.single-product .cfs-pdp-sample-feedback a{font-weight:700;color:#265889;text-decoration:underline}
