/* Keep native content tables visibly tabular on desktop and mobile. */
body.single-product .chipak-product-description table,
body.single-product .woocommerce-Tabs-panel--description table {
  width: 100%;
  max-width: 100%;
  margin: 16px 0 24px;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid #d8e0e7;
  background: #fff;
  color: #182433;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.85;
}
body.single-product .chipak-product-description table th,
body.single-product .chipak-product-description table td,
body.single-product .woocommerce-Tabs-panel--description table th,
body.single-product .woocommerce-Tabs-panel--description table td {
  padding: 12px 16px;
  border: 1px solid #d8e0e7;
  text-align: start;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.single-product .chipak-product-description table th,
body.single-product .woocommerce-Tabs-panel--description table th {
  background: #f1f5f8;
  color: #102235;
  font-weight: 700;
}
body.single-product .chipak-product-description table th[scope="row"],
body.single-product .woocommerce-Tabs-panel--description table th[scope="row"] {
  width: 36%;
}
body.single-product .chipak-product-description table tbody > tr:nth-child(even) > td,
body.single-product .woocommerce-Tabs-panel--description table tbody > tr:nth-child(even) > td {
  background: #f8fafb;
}

/* One DOM, native horizontal rows; the complete long description stays open. */
@media (max-width: 800px) {
  body.single-product .chipak-product-description table,
  body.single-product .woocommerce-Tabs-panel--description table {
    font-size: 15px;
  }
  body.single-product .chipak-product-description table th,
  body.single-product .chipak-product-description table td,
  body.single-product .woocommerce-Tabs-panel--description table th,
  body.single-product .woocommerce-Tabs-panel--description table td {
    padding: 10px 12px;
  }
  body.single-product div.product.cp-mobile-sections > .chipak-product-descriptions--desktop {
    display: block !important;
    min-width: 0;
    overflow: visible !important;
  }
  body.single-product .cp-mobile-sections .chipak-product-descriptions--desktop > .related,
  body.single-product .cp-mobile-sections .chipak-product-descriptions--desktop > .chipak-trust {
    float: none !important;
    clear: both;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 32px 0 !important;
    padding: 0;
  }
  body.single-product .cp-mobile-sections .related > h2 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.6;
  }
  body.single-product .cp-mobile-sections .chipak-trust__head {
    margin-bottom: 14px;
  }
  body.single-product .cp-mobile-sections .related ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 2px 2px 14px !important;
    direction: rtl;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2px;
    touch-action: auto;
    scrollbar-width: thin;
    scrollbar-color: #c89536 #eee8df;
  }
  body.single-product .cp-mobile-sections .related ul.products::before,
  body.single-product .cp-mobile-sections .related ul.products::after {
    display: none !important;
  }
  body.single-product .cp-mobile-sections .related ul.products li.product {
    float: none !important;
    clear: none !important;
    flex: 0 0 72%;
    width: 72% !important;
    max-width: 300px;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
    scroll-snap-align: start;
    transform: none;
  }
  body.single-product .cp-mobile-sections .related ul.products li.product .woocommerce-loop-product__title {
    white-space: normal;
    overflow: visible;
    display: block;
    height: auto;
    max-height: none;
    font-size: 16px;
    line-height: 1.8;
  }
  body.single-product .cp-mobile-sections .related ul.products li.product .button {
    white-space: normal;
    min-height: 44px;
  }
  body.single-product .cp-mobile-sections .related ul.products:focus-visible {
    outline: 2px solid #c89536;
    outline-offset: 3px;
  }
  body.single-product .cp-mobile-sections .chipak-trust__track {
    scroll-snap-type: x proximity;
    touch-action: auto;
  }
  /* The modal remains outside both scrolling tracks; do not clip its root. */
  body.single-product .cp-mobile-sections .chipak-product-descriptions--desktop > .chipak-trust {
    overflow: visible;
    contain: none;
  }
  body.single-product .cp-mobile-sections > .cp-dynamic-base-price {
    margin: 28px 0 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  body.single-product .cp-mobile-sections > .cp-dynamic-base-price > p,
  body.single-product .cp-mobile-sections > .cp-dynamic-base-price > .cp-dynamic-base-specifications {
    display: none;
  }
  body.single-product .cp-mobile-sections > .cp-dynamic-base-price .chipak-price-single {
    display: block;
    font-size: 15px !important;
    line-height: 1.9;
    white-space: normal;
  }
}
