/* v1.0.1: only category / shop / tag GRID, never list or carousel. */
body.dm24-product-listing:not(.dm24-view-list) li.product.dm24-category-grid-uniform > .dm24-universal-specs,
body.dm24-product-listing:not(.dm24-view-list) li.product.dm24-category-grid-uniform > .price { box-sizing:border-box !important; }
body.dm24-product-listing:not(.dm24-view-list) li.product.dm24-universal-card > .dm24-category-omnibus-placeholder {
  display:block !important;
  visibility:hidden !important;
  pointer-events:none !important;
  width:100% !important;
  flex:0 0 auto !important;
  min-height:28px !important;
  height:auto !important;
  margin:3px 0 10px !important;
  padding:0 !important;
  border:0 !important;
  box-sizing:border-box !important;
}
body.dm24-product-listing:not(.dm24-view-list) li.product.dm24-category-grid-uniform > .dm24-tile-omnibus {
  box-sizing:border-box !important;
}
body.dm24-product-listing.dm24-view-list li.product > .dm24-category-omnibus-placeholder {display:none!important;}


/* v1.0.2: delivery as a separate line BELOW stock, grid-only. No carousel or list overrides. */
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-category-shipping-ready > .dm24-card-availability {
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  align-content:flex-start !important;
  gap:0 !important;
  height:30px !important;
  min-height:30px !important;
  max-height:30px !important;
  padding:0 !important;
  margin:0 !important;
  overflow:visible !important;
}
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-category-shipping-ready > .dm24-card-availability > .dm24-card-stock {
  flex:0 0 auto !important;
}
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-category-shipping-ready > .dm24-card-availability > .dm24-card-delivery,
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-category-shipping-ready > .dm24-card-availability > .dm24-card-separator {
  display:none !important;
}
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-category-shipping-ready > .dm24-category-shipping-line {
  display:block !important;
  flex:0 0 18px !important;
  box-sizing:border-box !important;
  height:18px !important;
  min-height:18px !important;
  max-height:18px !important;
  width:100% !important;
  margin:5px 0 9px !important;
  padding:0 !important;
  color:#253954 !important;
  font-size:11px !important;
  line-height:18px !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-category-shipping-ready > .dm24-category-shipping-line--empty {
  visibility:hidden !important;
}

/* v1.0.3: stable first paint, only category GRID. No typography on other views. */
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-universal-card > .dm24-universal-specs {
  min-height:63px !important;
  box-sizing:border-box !important;
}
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-universal-card > span.price {
  min-height:48px !important;
  box-sizing:border-box !important;
  font-size:17px !important;
  font-weight:850 !important;
  line-height:1.35 !important;
}
/* Current promotional price — match the carousel without altering the layout of rate information. */
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-universal-card > .price ins,
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-universal-card > .price ins :is(.woocommerce-Price-amount,.amount,bdi) {
  color:#C34828 !important;
  text-decoration:none !important;
  opacity:1 !important;
}
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-universal-card > .price del,
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-universal-card > .price del :is(.woocommerce-Price-amount,.amount,bdi) {
  color:#8A92A1 !important;
  opacity:1 !important;
}
/* If the theme wraps promotional prices without ins, use WooCommerce on-sale class as fallback. */
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.sale.dm24-universal-card > .price:not(:has(ins)) > :is(.woocommerce-Price-amount,.amount,bdi) {
  color:#C34828 !important;
}
/* Prevent first-paint Omnibus appearing above price before JS moves the actual node.
   The direct children are flex items in the DM24 universal card. */
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-universal-card > .dm24-universal-specs {order:5 !important;}
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-universal-card > span.price {order:6 !important;}
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-universal-card > .dm24-tile-omnibus,
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-universal-card > .dm24-category-omnibus-placeholder {order:7 !important;}
body.dm24-product-listing:not(.dm24-view-list) ul.products li.product.dm24-universal-card > .ct-woo-card-actions {order:9 !important;}
