/* Draft-only final cart and checkout fixes (2026-10-13).
   Accessibility: no line-clamping of product details; avoid cropped item photos. */
body:is(.woocommerce-cart,.woocommerce-checkout,.page-id-8,.page-id-9)
:is(
 .wc-block-cart-item__product .wc-block-components-product-metadata__description,
 .wc-block-components-order-summary-item__description .wc-block-components-product-metadata__description,
 .wc-block-components-product-metadata__description p
) {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  display: block !important;
  line-height: 1.8 !important;
  visibility: visible !important;
}
/* Avoid a CSS square crop after WooCommerce's thumbnail has been corrected. */
body:is(.woocommerce-cart,.woocommerce-checkout,.page-id-8,.page-id-9)
:is(.wc-block-cart-item__image,.wc-block-components-order-summary-item__image) img {
  display: block !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  aspect-ratio: auto !important;
  max-height: none !important;
  height: auto !important;
}
@media (min-width: 768px) {
  body:is(.woocommerce-cart,.page-id-8) .wc-block-cart-items__row .wc-block-cart-item__image {
    width: 150px !important;
    min-width: 110px !important;
    max-width: 180px !important;
  }
  body:is(.woocommerce-cart,.page-id-8) .wc-block-cart-items__row .wc-block-cart-item__image img {
    width: 150px !important;
    max-width: 100% !important;
    height: auto !important;
  }
  body:is(.woocommerce-cart,.page-id-8) .wc-block-cart-items__row .wc-block-components-product-metadata__description {
    font-size: 13px !important;
    line-height: 1.8 !important;
  }
}
@media (max-width: 767px) {
  body:is(.woocommerce-checkout,.page-id-9) .wc-block-components-order-summary-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "image" "description" "total" !important;
  }
  body:is(.woocommerce-checkout,.page-id-9) .wc-block-components-order-summary-item__description {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}
