/* v1.0.9 – narrow cart: align Jupiter's three checkout steps and
   improve coupon input/buttons. No WooCommerce form/template overrides. */
@media screen and (max-width: 767px) {
  body.woocommerce-cart .mk-checkout-steps.mk-checkout-steps-number,
  body.woocommerce-checkout .mk-checkout-steps.mk-checkout-steps-number {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: min(100%, 360px) !important;
    margin: 0 auto 28px !important;
    gap: 12px !important;
    text-align: left !important;
  }
  body.woocommerce-cart .mk-checkout-steps-number .mk-checkout-step,
  body.woocommerce-checkout .mk-checkout-steps-number .mk-checkout-step {
    display: flex !important;
    align-items: center !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    min-height: 38px !important;
  }
  body.woocommerce-cart .mk-checkout-steps-number .mk-checkout-step-number,
  body.woocommerce-checkout .mk-checkout-steps-number .mk-checkout-step-number,
  body.woocommerce-cart .mk-checkout-steps-number .mk-checkout-step-svg-wrap,
  body.woocommerce-checkout .mk-checkout-steps-number .mk-checkout-step-svg-wrap {
    flex: 0 0 36px !important;
    float: none !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  body.woocommerce-cart .mk-checkout-steps-number .mk-checkout-step-text,
  body.woocommerce-checkout .mk-checkout-steps-number .mk-checkout-step-text {
    display: block !important;
    flex: 1 1 auto !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(13px, 3.8vw, 16px) !important;
    line-height: 1.3 !important;
    text-align: left !important;
    white-space: normal !important;
  }
  body.woocommerce-cart .woocommerce-cart-form .actions .coupon,
  body.woocommerce-cart .woocommerce-cart-form .actions .coupon input#coupon_code,
  body.woocommerce-cart .woocommerce-cart-form .actions .coupon button,
  body.woocommerce-cart .woocommerce-cart-form .actions button[name="update_cart"] {
    box-sizing: border-box !important;
  }
  body.woocommerce-cart .woocommerce-cart-form .actions .coupon input#coupon_code,
  body.woocommerce-cart .woocommerce-cart-form .actions .coupon button,
  body.woocommerce-cart .woocommerce-cart-form .actions button[name="update_cart"] {
    max-width: 100% !important;
  }
}
