/* Hide page hero on cart/checkout always */
body.woocommerce-cart .page-hero,
body.woocommerce-checkout .page-hero,
body.woocommerce-cart .entry-header,
body.woocommerce-checkout .entry-header,
body.woocommerce-cart .woocommerce-products-header,
body.woocommerce-checkout h1.page-title,
body.woocommerce-cart h1.page-title {
  display: none !important;
}

/* Search highlight */
mark.mp-search-hit,
.mp-search-hit {
  background: #d4ff4a !important;
  color: #111 !important;
  padding: 0 3px !important;
  border-radius: 3px !important;
  font-weight: 800 !important;
}

/* Cart remove red trash */
.mp-cart-remove {
  color: #c62828 !important;
  background: #ffebee !important;
  border: 1px solid #ffcdd2 !important;
  border-radius: 10px !important;
  width: 40px !important;
  height: 40px !important;
  display: inline-grid !important;
  place-items: center !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}
.mp-cart-remove svg {
  stroke: #c62828 !important;
  width: 18px !important;
  height: 18px !important;
}
.mp-cart-remove:hover {
  background: #c62828 !important;
  color: #fff !important;
  border-color: #c62828 !important;
}
.mp-cart-remove:hover svg { stroke: #fff !important; }

/* Desktop checkout form width like reference */
@media (min-width: 900px) {
  .mp-ck-inner {
    max-width: 880px !important;
    margin: 0 auto !important;
    padding: 32px 24px 120px !important;
  }
  .mp-ck-layout {
    grid-template-columns: 1fr !important;
  }
  .mp-ck-card {
    padding: 28px 32px !important;
  }
  .mp-ck-row2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .mp-cart-page .container,
  .mp-cart-form {
    max-width: 880px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
@media (max-width: 899px) {
  .mp-ck-inner,
  .mp-cart-page .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 12px !important;
  }
  .mp-ck-card {
    padding: 14px !important;
  }
}

/* Qty cleaner */
.mp-cart-qty-row .quantity {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #ddd !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}
.mp-cart-qty-row .quantity input.qty {
  width: 48px !important;
  border: 0 !important;
  text-align: center !important;
  font-weight: 800 !important;
  height: 40px !important;
}

/* Checkout/Cart card width — balanced on large screens */
@media (min-width: 900px) {
  body.woocommerce-checkout .mp-ck,
  body.woocommerce-checkout #mp-ck-root,
  body.woocommerce-checkout .mp-ck-form,
  body.woocommerce-cart .mp-cart-page {
    width: 100% !important;
  }
  body.woocommerce-checkout .mp-ck-inner,
  body.woocommerce-checkout #mp-ck-fields-card,
  body.woocommerce-checkout .mp-ck-card {
    max-width: 880px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  body.woocommerce-checkout .mp-ck-inner {
    padding: 28px 24px 120px !important;
  }
  body.woocommerce-checkout .mp-ck-card {
    padding: 28px 36px !important;
  }
  body.woocommerce-checkout .mp-ck-layout {
    display: block !important;
    max-width: 880px !important;
    margin: 0 auto !important;
  }
  body.woocommerce-cart .mp-cart-page .container,
  body.woocommerce-cart .mp-cart-form {
    max-width: 880px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* Prevent full-bleed stretch on ultra-wide */
@media (min-width: 1400px) {
  body.woocommerce-checkout .mp-ck-inner,
  body.woocommerce-checkout .mp-ck-card,
  body.woocommerce-checkout .mp-ck-layout,
  body.woocommerce-cart .mp-cart-page .container {
    max-width: 920px !important;
  }
}
