/* Product typography and preorder presentation refinements. */
html body.single-product .kh-preorder-product-note-heading-mobile {
  display: flex !important;
}

html body.single-product .kh-lux-lightbox-track {
  display: none !important;
}

/* Mobile product gallery: flush 1px editorial progress line. */
@media screen and (max-width: 767px) {
  html body.single-product .kh-mobile-gallery-scrollbar {
    position: absolute !important;
    inset-inline: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #e5e5e5 !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none !important;
    z-index: 8 !important;
  }

  html body.single-product .kh-mobile-gallery-scrollbar-thumb {
    top: 0 !important;
    bottom: auto !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #111 !important;
    box-shadow: none !important;
    transition: none !important;
    will-change: transform, width !important;
  }

  html body.single-product .kh-mobile-gallery-track {
    touch-action: pan-x pan-y pinch-zoom !important;
    -ms-touch-action: pan-x pan-y !important;
  }

  html body.single-product .kh-mobile-gallery-track[data-kh-swipe-enabled="false"] {
    touch-action: pan-y pinch-zoom !important;
    -ms-touch-action: pan-y !important;
  }

  html body.single-product .kh-lux-frame {
    position: relative !important;
  }

  html body.single-product .kh-lux-lightbox {
    overflow: hidden !important;
    padding: 0 !important;
    touch-action: pan-x pan-y pinch-zoom !important;
  }

  html body.single-product .kh-lux-lightbox > img {
    display: none !important;
  }

  html body.single-product .kh-lux-lightbox-track {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    overscroll-behavior-x: contain !important;
    touch-action: pan-x pan-y pinch-zoom !important;
    direction: ltr !important;
  }

  html body.single-product .kh-lux-lightbox-track::-webkit-scrollbar {
    display: none !important;
  }

  html body.single-product .kh-lux-lightbox-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    overflow: hidden !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
  }

  html body.single-product .kh-lux-lightbox-slide img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    touch-action: pan-x pan-y pinch-zoom !important;
  }

  html body.single-product .kh-lux-lightbox-close,
  html body.single-product .kh-lux-lightbox-arrow {
    z-index: 3 !important;
  }
}

html body.single-product .kh-preorder-product-note-title-desktop {
  display: none !important;
}

html body.single-product .kh-preorder-product-policy > summary {
  display: flex !important;
}

html body.single-product .kh-preorder-product-policy:not([open]) > .kh-preorder-product-deadline {
  display: none !important;
}

html body.single-product .kh-preorder-product-policy > .kh-preorder-product-deadline {
  margin: 0;
}

/* Apply the compact preorder card on desktop and tablet as well as phones. */
html body.single-product .kh-preorder-product-note {
  width: 100% !important;
  margin: 14px 0 16px !important;
  padding: 14px !important;
  border: 1px solid #e8e5df !important;
  border-radius: 13px !important;
  background: #faf9f7 !important;
  box-shadow: none !important;
  text-align: start !important;
}

html body.single-product .kh-preorder-product-note-heading-mobile {
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 0 11px !important;
}

html body.single-product .kh-preorder-product-note-heading-mobile strong {
  color: #171717 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

html body.single-product .kh-preorder-product-note-heading-mobile > span {
  flex: 0 0 auto !important;
  padding: 4px 8px !important;
  border: 1px solid #e7e3dc !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #6f6b65 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

html body.single-product .kh-preorder-product-note dl {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin: 0 !important;
}

html body.single-product .kh-preorder-product-note dl > div {
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 9px 10px !important;
  border: 1px solid #eeece8 !important;
  border-radius: 9px !important;
  background: #fff !important;
  text-align: start !important;
}

html body.single-product .kh-preorder-product-note dl > div:nth-child(3) {
  grid-column: 1 / -1 !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
}

html body.single-product .kh-preorder-product-note dt {
  margin: 0 !important;
  color: #77736e !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

html body.single-product .kh-preorder-product-note dd {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 4px !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #171717 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-align: start !important;
}

html body.single-product .kh-preorder-product-note .kh-preorder-product-deposit-rate {
  color: #77736e !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html body.single-product .kh-preorder-product-note > p {
  margin: 10px 0 0 !important;
  padding-top: 9px !important;
  border-top: 1px solid #e8e5df !important;
  color: #64615c !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  text-align: start !important;
}

html body.single-product .kh-preorder-product-policy {
  margin-top: 8px !important;
  border-top: 1px solid #e8e5df !important;
}

html body.single-product .kh-preorder-product-policy > summary {
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 38px !important;
  color: #33312e !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  list-style: none !important;
}

html body.single-product .kh-preorder-product-policy > summary::-webkit-details-marker {
  display: none !important;
}

html body.single-product .kh-preorder-product-policy > summary::after {
  content: "+";
  color: #77736e;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

html body.single-product .kh-preorder-product-policy[open] > summary::after {
  content: "−";
}

html body.single-product .kh-preorder-product-policy > .kh-preorder-product-deadline {
  margin: 0 0 2px !important;
  padding: 0 0 2px !important;
  border: 0 !important;
  color: #64615c !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  text-align: start !important;
}

/* Product names stay Jost Light and prices use Jost Regular. */
html body.single-product .kh-lux-summary .product_title,
html body.single-product .kh-lux-summary .product_title.entry-title,
html body.single-product .product_title.entry-title {
  font-size: clamp(24px, calc(2.5vw - 2px), 34px) !important;
}

html body.single-product .kh-current-price,
html body.single-product .kh-current-price .woocommerce-Price-amount,
html body.single-product .kh-current-price .woocommerce-Price-currencySymbol,
html body.single-product .kh-current-price bdi,
html body.single-product .kh-sale-row,
html body.single-product .kh-sale-row * {
  font-family: "Jost", "Thmanyah Serif Display", serif !important;
  font-variation-settings: "wght" 400 !important;
}

@media (min-width: 768px) and (max-width: 1180px) {
  html body.single-product .kh-lux-breadcrumb,
  html body.single-product nav.woocommerce-breadcrumb,
  html body.single-product .woocommerce-breadcrumb {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.single-product .kh-lux-product,
  html body.single-product.woocommerce div.product,
  html body.single-product .kh-main > .product,
  html body.single-product .kh-main > .kh-lux-product {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  html body.single-product .kh-lux-summary .product_title,
  html body.single-product .kh-lux-summary .product_title.entry-title,
  html body.single-product .product_title.entry-title {
    font-size: 24px !important;
  }
}

@media (min-width: 1181px) {
  html body.single-product .kh-lux-breadcrumb,
  html body.single-product nav.woocommerce-breadcrumb,
  html body.single-product .woocommerce-breadcrumb {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.single-product .kh-lux-product,
  html body.single-product.woocommerce div.product,
  html body.single-product .kh-main > .product,
  html body.single-product .kh-main > .kh-lux-product {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

@media screen and (max-width: 767px) {
  html body.single-product .kh-lux-product {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  html body.single-product .kh-lux-gallery {
    order: -1 !important;
    position: sticky !important;
    top: calc(60px + env(safe-area-inset-top, 0px)) !important;
    z-index: 1 !important;
    align-self: stretch !important;
    margin: 0 !important;
  }

  html body.single-product .kh-lux-summary {
    order: 0 !important;
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    z-index: 2 !important;
    margin-top: 2px !important;
    padding-top: 22px !important;
    border-radius: 14px 14px 0 0 !important;
    background: #fff !important;
    box-shadow: 0 -8px 24px rgba(20, 20, 20, 0.045) !important;
  }

  html body.single-product .kh-lux-summary .product_title,
  html body.single-product .kh-lux-summary .product_title.entry-title,
  html body.single-product .product_title.entry-title {
    font-size: 23px !important;
  }

  /* Undo fixed purchase-form widths used by wider breakpoints on narrow phones. */
  html body.single-product .kh-lux-summary .kh-lux-purchase,
  html body.single-product .kh-lux-summary form.variations_form,
  html body.single-product .kh-lux-summary .variations,
  html body.single-product .kh-lux-summary .kh-variation-buttons,
  html body.single-product .kh-lux-summary .single_variation_wrap,
  html body.single-product .kh-lux-summary .woocommerce-variation-add-to-cart,
  html body.single-product .kh-lux-summary .kh-lux-purchase .quantity,
  html body.single-product .kh-lux-summary .kh-preorder-payment-options,
  html body.single-product .kh-lux-summary .single_add_to_cart_button,
  html body.single-product .kh-lux-summary .kh-buy-now-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
  }

  html body.single-product .kh-lux-summary form.variations_form,
  html body.single-product .kh-lux-summary .variations,
  html body.single-product .kh-lux-summary .single_variation_wrap,
  html body.single-product .kh-lux-summary .woocommerce-variation-add-to-cart {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body.single-product .kh-lux-summary .kh-qty-ready {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html body.single-product .kh-lux-summary .kh-variation-buttons {
    flex-wrap: wrap !important;
  }

  html body.single-product .kh-preorder-product-note {
    width: 100% !important;
    margin: 14px 0 16px !important;
    padding: 14px !important;
    border: 1px solid #e8e5df !important;
    border-radius: 13px !important;
    background: #faf9f7 !important;
    box-shadow: none !important;
    text-align: start !important;
  }

  html body.single-product .kh-preorder-product-note-title-desktop {
    display: none !important;
  }

  html body.single-product .kh-preorder-product-note-heading-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 0 0 11px !important;
  }

  html body.single-product .kh-preorder-product-note-heading-mobile strong {
    color: #171717 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
  }

  html body.single-product .kh-preorder-product-note-heading-mobile > span {
    flex: 0 0 auto !important;
    padding: 4px 8px !important;
    border: 1px solid #e7e3dc !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #6f6b65 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
  }

  html body.single-product .kh-preorder-product-note dl {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin: 0 !important;
  }

  html body.single-product .kh-preorder-product-note dl > div {
    display: flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 9px 10px !important;
    border: 1px solid #eeece8 !important;
    border-radius: 9px !important;
    background: #fff !important;
    text-align: start !important;
  }

  html body.single-product .kh-preorder-product-note dl > div:nth-child(3) {
    grid-column: 1 / -1 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  html body.single-product .kh-preorder-product-note dt {
    margin: 0 !important;
    color: #77736e !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
  }

  html body.single-product .kh-preorder-product-note dd {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 4px !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #171717 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: start !important;
  }

  html body.single-product .kh-preorder-product-note .kh-preorder-product-deposit-rate {
    color: #77736e !important;
    font-size: 12px !important;
    font-weight: 500 !important;
  }

  html body.single-product .kh-preorder-product-note > p {
    margin: 10px 0 0 !important;
    padding-top: 9px !important;
    border-top: 1px solid #e8e5df !important;
    color: #64615c !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    text-align: start !important;
  }

  html body.single-product .kh-preorder-product-policy {
    margin-top: 8px !important;
    border-top: 1px solid #e8e5df !important;
  }

  html body.single-product .kh-preorder-product-policy > summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 38px !important;
    color: #33312e !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    list-style: none !important;
  }

  html body.single-product .kh-preorder-product-policy > summary::-webkit-details-marker {
    display: none !important;
  }

  html body.single-product .kh-preorder-product-policy > summary::after {
    content: "+";
    color: #77736e;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
  }

  html body.single-product .kh-preorder-product-policy[open] > summary::after {
    content: "−";
  }

  html body.single-product .kh-preorder-product-policy > .kh-preorder-product-deadline {
    margin: 0 0 2px !important;
    padding: 0 0 2px !important;
    border: 0 !important;
    color: #64615c !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    text-align: start !important;
  }
}
/* Keep discounted product prices on one line, with the original price subdued. */
html body.single-product .kh-lux-price .kh-sale-price-card {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  justify-items: unset !important;
  gap: 9px !important;
  width: 100% !important;
}

html body.single-product .kh-lux-price .kh-original-price {
  color: #8a8885 !important;
  font-size: 0.76em !important;
  font-weight: 300 !important;
  line-height: 1.2 !important;
  text-decoration: line-through !important;
  text-decoration-color: #9a9793 !important;
  text-decoration-thickness: 1px !important;
  white-space: nowrap !important;
}

html body.single-product .kh-lux-price .kh-original-price[hidden] {
  display: none !important;
}

html body.single-product .kh-lux-price .kh-original-price .woocommerce-Price-amount,
html body.single-product .kh-lux-price .kh-original-price bdi,
html body.single-product .kh-lux-price .kh-original-price .woocommerce-Price-currencySymbol {
  color: inherit !important;
  font: inherit !important;
}
