/* Complete the native Woo controls inside the preserved Celorist layout. */
.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.product-info form.cart .woocommerce-variation-add-to-cart {
  flex-wrap: wrap !important;
}
.product-info form.cart .ux-buy-now-button {
  display: block !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  margin: 10px 0 0 !important;
  background-color: var(--primary-color, #941b1b) !important;
  color: #fff !important;
}
@media (max-width: 549px) {
  .woocommerce-cart .woocommerce-cart-form button[name="update_cart"] { width: 100%; }
}

/* Native checkout shares the source storefront typography and column rhythm. */
.celorist-live form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 36px; align-items: start; }
.celorist-live form.checkout #customer_details { grid-column: 1; grid-row: 1 / 4; display: block; width: 100%; min-width: 0; }
.celorist-live form.checkout #customer_details > .col-1,
.celorist-live form.checkout #customer_details > .col-2 { display: block; float: none; flex: none; width: 100%; max-width: 100%; padding: 0; }
.celorist-live form.checkout :is(.woocommerce-billing-fields h3,.woocommerce-additional-fields h3,#order_review_heading) { font-family: inherit; font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: .02em; margin: 0 0 20px; }
.celorist-live form.checkout #order_review_heading { grid-column: 2; }
.celorist-live form.checkout #order_review { grid-column: 2; padding: 24px; background: #fafafa; border: 1px solid #e6e6e6; min-width: 0; }
.celorist-live form.checkout #order_comments { width: 100%; min-height: 110px; }
.celorist-live form.checkout #place_order { width: 100%; margin: 16px 0 0; }
.celorist-live form.checkout #ship-to-different-address { font-family: inherit; font-size: 16px; font-weight: 500; }
.celorist-live form.checkout :is(.woocommerce-additional-fields,.woocommerce-shipping-fields) { margin-top: 24px; }
@media (max-width: 849px) {
 .celorist-live form.checkout.woocommerce-checkout { display: block; }
 .celorist-live form.checkout #order_review_heading { margin-top: 28px; }
 .celorist-live form.checkout #order_review { padding: 18px 14px; }
}

.celorist-live form.checkout #order_review table { table-layout: auto; }
.celorist-live form.checkout #order_review .product-total { white-space: nowrap; min-width: 88px; }
.celorist-live form.checkout #order_review th { word-break: normal; overflow-wrap: normal; }
