/* Gallery and native product tabs share the left column. The summary stays
 * within this detail section, then scrolls away before recommendations. */
body.dlwc-page #dlwc-main .entry-summary .dlwc-inquiry {
  margin: 16px 0 !important;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.dlwc-page #dlwc-main .dlwc-quote-link {
  display: inline-block;
  padding: 4px 0;
  color: var(--dl-teal);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.dlwc-page #dlwc-main .dlwc-quote-link:hover { color: #085d58; }
/* Blocksy's decorative payment badges, only in this product template.
 * Checkout/payment gateways are unaffected. Remove its preceding divider too. */
body.dlwc-page #dlwc-main .entry-summary .ct-payment-methods,
body.dlwc-page #dlwc-main .entry-summary .ct-product-divider:has(+ .ct-payment-methods) {
  display: none !important;
}
body.dlwc-page #dlwc-main .dlwc-detail-left {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  width: 100%;
}
body.dlwc-page #dlwc-main .dlwc-detail-left .woocommerce-tabs {
  padding-top: 24px;
  margin-top: 0;
  margin-bottom: 30px;
}
body.dlwc-page #dlwc-main .dlwc-detail-left .woocommerce-tabs ul.tabs {
  justify-content: flex-start;
  gap: 22px;
}
body.dlwc-page #dlwc-main .dlwc-detail-left .woocommerce-tabs ul.tabs li a {
  font-size: 14px;
  padding: 14px 0;
  text-align: left;
}
body.dlwc-page #dlwc-main > div.product .related { display: none; }
body.dlwc-page #dlwc-main .dlwc-recommendations {
  clear: both;
  width: 100%;
  margin: 48px 0 0;
  padding: 36px 0 0;
  border-top: 1px solid var(--dl-line);
}
.dlwc-recommendations > h2 { font-size: 30px; margin: 0 0 28px; }
.dlwc-recommendations .dlwc-empty { color: var(--dl-muted); font-size: 14px; }
body.dlwc-page #dlwc-main .dlwc-card-list { align-items: stretch; }
body.dlwc-page #dlwc-main li.dlwc-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--dl-line);
  border-radius: 10px;
  padding: 16px;
  overflow: hidden;
}
body.dlwc-page #dlwc-main li.dlwc-product-card .price { margin: auto 0 0; padding: 16px 0 0; }
body.dlwc-page #dlwc-main li.dlwc-product-card > .button { text-align: center; }
body.dlwc-page #dlwc-main li.dlwc-product-card .added_to_cart { margin-top: 10px; font-size: 13px; }
@media (min-width: 1000px) {
  body.dlwc-page #dlwc-main div.product.dlwc-sticky-ready > .entry-summary,
  body.dlwc-page #dlwc-main div.product > .dlwc-sticky-ready > .entry-summary {
    position: sticky;
    top: var(--dlwc-sticky-top, 20px);
    align-self: start;
    margin-bottom: 0 !important;
    max-height: var(--dlwc-sticky-height, calc(100dvh - 32px));
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    padding-right: 8px;
  }
  body.dlwc-page #dlwc-main .dlwc-sticky-ready > .entry-summary .product_title {
    position: sticky;
    top: 0;
    z-index: 6;
    background: #fff;
    box-shadow: 0 8px 0 #fff;
    padding: 6px 0 8px;
    font-size: clamp(24px, 2.05vw, 30px);
    line-height: 1.22;
  }
}
@media (max-width: 767px) {
  body.dlwc-page #dlwc-main .dlwc-detail-left { grid-column: 1; grid-row: auto; }
  /* Keep purchase controls before the long description on a phone. */
  body.dlwc-page #dlwc-main .dlwc-detail-left { display: contents; }
  body.dlwc-page #dlwc-main .dlwc-detail-left > .woocommerce-product-gallery { grid-row: 1; }
  body.dlwc-page #dlwc-main .dlwc-sticky-ready > .entry-summary { grid-row: 2; }
  body.dlwc-page #dlwc-main .dlwc-detail-left > .woocommerce-tabs { grid-row: 3; }
  body.dlwc-page #dlwc-main .dlwc-sticky-ready > .woocommerce-tabs { grid-row: 3; }
  .dlwc-recommendations > h2 { font-size: 26px; }
  body.dlwc-page #dlwc-main li.dlwc-product-card { padding: 10px; }
}
