/* A complete stepper is 3 x 44px, plus the two outside borders. The theme's
   narrow row used to clip the plus button even though it remained focusable. */
body.ab-site.woocommerce-cart .woocommerce-cart-form .quantity.amb-quantity {
  box-sizing: border-box;
  display: inline-grid;
  grid-template-columns: repeat(3, 44px);
  width: 134px;
  max-width: none;
  height: 46px;
  overflow: visible;
  align-items: center;
}
body.ab-site.woocommerce-cart .woocommerce-cart-form .amb-quantity :is(input.qty, button) {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-height: 44px;
  max-width: none;
  margin: 0;
}
@media (min-width:1051px) {
  body.ab-site.woocommerce-cart table.cart tr.cart_item {
    grid-template-columns: 112px minmax(95px,1fr) 134px minmax(76px,100px) 44px;
    column-gap: clamp(8px,1.2vw,18px);
  }
}
@media (max-width:1050px) {
  body.ab-site.woocommerce-cart table.cart tr.cart_item {
    grid-template-columns: 96px 28px minmax(0,1fr) 44px;
    grid-template-areas: 'image name name name' 'image price price price' 'quantity quantity total remove';
    column-gap: 10px;
  }
  body.ab-site.woocommerce-cart table.cart .product-subtotal {
    text-align: right;
    white-space: normal;
    overflow-wrap: normal;
  }
}
@media (max-width:767px) {
  body.ab-site.woocommerce-cart .amb-cart-mobile:has(.aae-mobile-payment-note) {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    gap: 5px 12px;
    align-items: center;
  }
  .aae-mobile-payment-note {
    grid-column: 1/-1;
    color: #503458;
    font: 650 .82rem/1.3 Arial,sans-serif;
    padding: 0;
    margin: 0;
  }
  body.ab-site.woocommerce-cart .amb-cart-mobile:has(.aae-mobile-payment-note) .button {
    width: 100%;
    justify-self: end;
  }
  body.woocommerce-cart.amb-cart-has-items:has(.aae-mobile-payment-note) {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }
}

/* Consultation only. WooCommerce still owns the fields, validation, prices and
   totals. All these overrides go away when the current payment fragment changes. */
body.ab-checkout-ready.aae-order-preview form.woocommerce-checkout {
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
  max-inline-size: 54rem;
  margin-inline: auto;
}
body.aae-order-preview :is(.amb-order-steps, .ab-checkout-mobile, .ab-checkout-next),
body.aae-order-preview #customer_details:not(.aae-details-open) > :is(.col-1,.col-2) {
  display: none !important;
}
body.ab-checkout-ready.aae-order-preview form.woocommerce-checkout > #order_review {
  order: -1;
  position: static;
  width: 100%;
  max-width: none;
}
body.ab-checkout-ready.aae-order-preview #customer_details {
  width: 100%;
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
}
body.aae-order-preview #customer_details > .amb-pickup-card { order:-1; margin:0; }
.aae-customer-toggle:not([hidden]) {
  align-self: flex-start;
  min-height: 44px;
  color: #493157;
  background: #fffbf5;
  border: 1px solid #ab99ad;
  border-radius: .6rem;
  padding: .6rem 1rem;
  cursor: pointer;
}
.aae-customer-toggle[hidden] { display:none !important; }
.aae-customer-toggle:focus-visible { outline: 3px solid #7049b0; outline-offset: 2px; }
