/* Indego Fresh v1.3.9 — Checkout only. Balance columns and keep quantity + remove in one row.
 * WooCommerce order totals and actual cart item data are untouched. */
@media (min-width: 901px) {
  body:has(.idn-page form.checkout.woocommerce-checkout)
    .idn-page .idn-native-checkout > .idn-checkout-layout {
    grid-template-columns: minmax(0, var(--idn-co-left, 57%)) minmax(0, 1fr) !important;
  }
}

/* Override earlier mobile wrapping and image-indent rules.
   No duplicate controls: the existing WooCommerce buttons are preserved. */
body.woocommerce-checkout .idn-page .idn-native-checkout #order_review
  td.product-name .idn-co-item-actions {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  gap: 5px !important;
  box-sizing: border-box !important;
}
body.woocommerce-checkout .idn-page .idn-native-checkout #order_review
  td.product-name .idn-co-item-actions > * {
  flex-shrink: 0 !important;
}
body.woocommerce-checkout .idn-page .idn-native-checkout #order_review
  td.product-name .idn-co-item-actions > .idn-co-qty-label {
  white-space: nowrap !important;
}
body.woocommerce-checkout .idn-page .idn-native-checkout #order_review
  td.product-name .idn-co-qty-control {
  flex: none !important;
  min-width: 0 !important;
}
body.woocommerce-checkout .idn-page .idn-native-checkout #order_review
  td.product-name button.idn-co-cart-remove {
  flex: 0 0 29px !important;
  margin: 0 !important;
}
/* A slim order-summary card can have insufficient room after the image indent.
   Bring controls to the product-column edge before allowing a wrap. */
body.woocommerce-checkout .idn-page .idn-native-checkout
  .idn-checkout-right {container-type: inline-size;}
@container (max-width: 355px) {
  body.woocommerce-checkout .idn-page .idn-native-checkout #order_review
    td.product-name:has(.idn-co-item-picture) > .idn-co-item-actions {
    margin-left: 0 !important;
  }
}
@media (max-width: 600px) {
  body.woocommerce-checkout .idn-page .idn-native-checkout #order_review
    td.product-name .idn-co-item-actions { gap: 4px !important; }
  body.woocommerce-checkout .idn-page .idn-native-checkout #order_review
    td.product-name .idn-co-qty-control > button {width: 26px !important;min-width: 26px !important;}
  body.woocommerce-checkout .idn-page .idn-native-checkout #order_review
    td.product-name .idn-co-qty-control output {min-width: 20px !important;padding: 0 2px !important;}
}
@media (max-width: 370px) {
  body.woocommerce-checkout .idn-page .idn-native-checkout #order_review
    td.product-name .idn-co-item-actions {margin-left: 0 !important;}
  body.woocommerce-checkout .idn-page .idn-native-checkout #order_review
    td.product-name .idn-co-qty-label {font-size: 10px !important;}
  body.woocommerce-checkout .idn-page .idn-native-checkout #order_review
    td.product-name button.idn-co-cart-remove {flex-basis: 27px !important;width: 27px !important;min-width: 27px !important;}
}
