/* v137: scoped checkout spacing; keep fields and actions usable by touch. */
#checkoutdialog { padding: 16px; }
#checkoutdialog > .close { position: absolute; top: 8px; right: 10px; float: none; width: 40px; height: 40px; padding: 0; }
#checkoutdialog .checkout-progress { padding-top: 34px; margin: 0 0 14px; gap: 4px; font-size: 11px; line-height: 1.2; }
#checkoutdialog .checkout-progress li { min-width: 0; gap: 4px; }
#checkoutdialog .checkout-progress span { width: 26px; height: 26px; }
#checkoutdialog .checkout-step label { margin: 0; font-size: 14px; line-height: 1.3; }
#checkoutdialog .checkout-step input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
#checkoutdialog .checkout-step select, #checkoutdialog .checkout-step textarea { margin-top: 4px; padding: 9px 11px; min-height: 44px; font-size: 16px; line-height: 1.35; }
#checkoutdialog #customercheckoutdetails { gap: 10px; }
#checkoutdialog #customercheckoutdetails small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; font-weight: 400; }
#checkoutdialog .checkout-step[data-step="2"] > label { display: flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 44px; }
#checkoutdialog #remembercustomer { margin: 0; width: 18px; height: 18px; flex-shrink: 0; }
#checkoutdialog .checkout-step[data-step="2"] > .muted { font-size: 12px; line-height: 1.35; margin: 6px 0 8px; }
#checkoutdialog .structured-address { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; min-width: 0; padding: 0; margin: 0; border: 0; }
#checkoutdialog .structured-address > * { grid-column: 1 / -1; min-width: 0; }
#checkoutdialog .structured-address > legend { padding: 0; margin-bottom: 10px; font-size: 16px; line-height: 1.3; }
#checkoutdialog .structured-address > label:has([name=address_number]) { grid-column: 1; }
#checkoutdialog .structured-address > label:has([name=address_postcode]) { grid-column: 2; }
#checkoutdialog .structured-address > p:empty, #checkoutdialog .structured-address > div:empty { display: none; }
#checkoutdialog .address-lookup-button { justify-self: start; margin: 0; min-height: 44px; padding: 8px 12px; font-size: 13px; }
#checkoutdialog .delivery-location-status { margin: 0; padding: 8px 10px; font-size: 12px; line-height: 1.35; }
#checkoutdialog .verified-zone { padding: 10px; margin-top: 4px; font-size: 14px; line-height: 1.35; }
#checkoutdialog .checkout-actions { bottom: -16px; gap: 8px; margin-top: 12px; padding: 8px 0 max(8px, env(safe-area-inset-bottom)); flex-wrap: nowrap; }
#checkoutdialog .checkout-actions button { min-height: 44px; font-size: 14px; }
@media (max-width: 350px) {
  #checkoutdialog { padding: 12px; }
  #checkoutdialog .checkout-progress { font-size: 10px; }
  #checkoutdialog .checkout-actions { bottom: -12px; }
}

/* Returning customers confirm a summary; original fields retain their values. */
#checkoutdialog .confirming-saved > :not(.checkout-saved-confirmation) { display: none !important; }
#checkoutdialog .checkout-saved-confirmation h2 { margin: 0 0 12px; font-size: 18px; }
#checkoutdialog .checkout-saved-confirmation p { margin: 8px 0; font-size: 14px; overflow-wrap: anywhere; }
#checkoutdialog .checkout-saved-confirmation button { min-height: 44px; margin-top: 8px; padding: 9px 12px; }
#checkoutdialog .checkout-actions button { white-space: normal; }
