/**
 * Cart page.
 */

/* For sold-individually products the per-unit price duplicates the line subtotal. */
.woocommerce-page .wc-block-cart-item__wrap:not(:has(.wc-block-components-quantity-selector)) .wc-block-cart-item__prices {
  display: none;
}

/* Render options as grid (restore WPO styles only applied if wpo- classes exist) */
.wc-block-components-product-metadata {
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
}
.wc-block-components-product-metadata > .wc-block-components-product-details {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}
.wc-block-components-product-metadata > .wc-block-components-product-details > span:not([aria-hidden]) {
  display: grid;
  grid-column: 1 / -1;
  grid-row: auto / span 1;
  grid-template-columns: subgrid;
}
.wc-block-components-product-metadata > .wc-block-components-product-details > span > span[aria-hidden] {
  display: none;
}

/* WPO price_formula price duplicates the line subtotal. */
.woocommerce-page .wc-block-components-product-details > span:has(.wpo-price) {
  display: none;
}
