/* Compact rows with native Magento delete action next to the quantity selector. */
body.supermix-cart-design .cart.table-wrapper .item-info > td { vertical-align: middle; padding-block: 10px; }
body.supermix-cart-design .cart.table-wrapper td.col.item { display: flex; align-items: center; gap: 12px; min-height: 84px; }
body.supermix-cart-design .cart.table-wrapper .product-item-details { vertical-align: middle; padding: 0; }
body.supermix-cart-design .cart.table-wrapper .product-item-photo { position: static; flex: 0 0 64px; padding: 0; width: 64px; }
body.supermix-cart-design .cart.table-wrapper .product-item-photo .product-image-container { width: 64px !important; max-width: 64px; }
body.supermix-cart-design .cart.table-wrapper .product-item-photo .product-image-wrapper { height: 76px; padding-bottom: 0 !important; }
body.supermix-cart-design .smx-cart-row-controls { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
body.supermix-cart-design .cart.table-wrapper .field.qty { margin-bottom: 0; }
body.supermix-cart-design .smx-cart-row-controls .action-delete { position: static; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 32px; color: #1f12a8; }
body.supermix-cart-design .smx-cart-row-controls .action-delete::before { font-family: 'luma-icons'; content: '\e604'; font-size: 18px; line-height: 1; }
body.supermix-cart-design .smx-cart-row-controls .action-delete > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
body.supermix-cart-design .smx-cart-row-controls .action-delete[aria-disabled="true"] { opacity: .4; cursor: wait; }
body.supermix-cart-design .smx-cart-save-status { grid-column: 1; margin: 0; padding: 0 16px; min-height: 0; font-size: 12px; color: #1f12a8; }
body.supermix-cart-design .smx-cart-save-status:not(:empty) { padding-block: 8px; }
body.supermix-cart-design .smx-cart-save-status.is-error { color: #a81919; }
/* The form stays in its existing grid row; status follows it without adding item rows. */
body.supermix-cart-design .smx-cart-save-status { grid-row: 2; }
body.supermix-cart-design .smx-cart-coupon { grid-row: 3; }
@media (max-width: 1000px) {
 body.supermix-cart-design .smx-cart-design > .cart-summary { grid-row: 4; }
}
@media (max-width: 767px) {
 body.supermix-cart-design .cart.table-wrapper td.col.item { padding-left: 0; }
 body.supermix-cart-design .cart.table-wrapper td.col.qty { width: 44%; }
 body.supermix-cart-design .cart.table-wrapper td.col.price,
 body.supermix-cart-design .cart.table-wrapper td.col.subtotal { width: 28%; }
}
@media (pointer: coarse) {
 body.supermix-cart-design .smx-cart-row-controls { gap: 4px; }
 body.supermix-cart-design .smx-cart-row-controls .action-delete { width: 44px; height: 44px; }
}
/* Gift-options may leave an empty Knockout container; retain it if controls appear later. */
body.supermix-cart-design .cart.table-wrapper tr.item-actions:not(:has(a, button, input, select, textarea)) { display: none; }

@media (max-width: 1000px) {
 body.supermix-cart-design .supermix-cart-suggestions { grid-row: 5; }
}

/* Automatic saving replaces the manual button; retain it for recovery after an error. */
body.smx-cart-auto-ready:not(.smx-cart-auto-error) .form-cart .action.update { display: none; }
body.smx-cart-auto-ready:not(.smx-cart-auto-error) .form-cart .cart.main.actions:not(:has(.action.continue, .action.clear)) { margin: 0; padding: 0; }
