/* CRAFT v1.8.64 — mobile checkout progress/summary fit.
 * Scoped to the new-order checkout: never alter Cart, Order Pay, Thank You,
 * desktop, or the payment/delivery logic. Mobile Safari and Chromium use the
 * same two-column grid rather than four rigid minimum-width steps. */
@media (max-width: 640px) {
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout .stepper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 0 12px !important;
    overflow: visible !important;
    overflow-x: visible !important;
    -webkit-overflow-scrolling: auto;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout .stepper > .step {
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    gap: 7px !important;
    padding: 12px 2px 12px 0 !important;
    font-size: clamp(10px, 2.7vw, 11.5px) !important;
    letter-spacing: .025em !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    text-transform: uppercase !important;
    border: 0 !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout .stepper > .step:nth-child(n+3) {
    border-top: 1px solid var(--line-soft, rgba(85,72,63,.1)) !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout .stepper > .step::after {
    display: none !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout .stepper > .step > .step-index {
    flex: 0 0 22px !important;
    display: grid !important;
    place-items: center !important;
    box-sizing: border-box !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    line-height: 1 !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout .stepper > .step > span:last-child {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  /* Do not allow third-party checkout fragments to impose a wider grid. */
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout .checkout-shell .container,
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout form.woocommerce-checkout,
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout .checkout-grid,
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout .summary-col,
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout .summary-card,
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout .checkout-form {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout .summary-totals .woocommerce-Price-amount,
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout .summary-totals .woocommerce-Price-amount bdi,
  body.woocommerce-checkout:not(.woocommerce-order-received):not(.craft-order-pay-page) main#checkout .summary-price .woocommerce-Price-amount {
    white-space: nowrap !important;
  }
}
