/*
 * What: Responsive tables and images inside the product description (SE-8).
 * Why:  The CRM publishes spec tables and photos into the long and short description. On a phone a wide
 *       table pushed the whole page sideways and a large photo overflowed its column. The theme is not
 *       ours to edit, so the rules ship with this plugin, on product pages only.
 * How:  Enqueued by includes/product-content/css.php on is_product(). A table scrolls inside its own box
 *       instead of widening the page; cells keep a readable minimum width; images never exceed their
 *       column.
 */

.woocommerce-Tabs-panel--description table,
.woocommerce-product-details__short-description table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

.woocommerce-Tabs-panel--description th,
.woocommerce-Tabs-panel--description td {
  min-width: 6rem;
  padding: .5rem .75rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid rgba(0, 0, 0, .12);
}

.woocommerce-Tabs-panel--description img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .woocommerce-Tabs-panel--description table {
    font-size: .875rem;
  }
}
