/* Additional delivery and withdrawal controls inherit the existing MOORMI theme. */
.commerce-form { color: var(--ink); font: inherit; }
.commerce-form *, .commerce-dialog * { box-sizing: border-box; }
.commerce-form label { display: block; margin: 0 0 15px; font-size: 14px; line-height: 1.5; }
.commerce-form label > span { display: block; margin-bottom: 6px; }
.commerce-form input, .commerce-form select, .commerce-form textarea {
  display: block; width: 100%; max-width: 100%; min-height: 46px; padding: 11px 12px;
  border: 1px solid #19110d55; border-radius: 7px; color: var(--ink); background: var(--paper, #eef1f1); font: inherit;
}
.commerce-form textarea { resize: vertical; min-height: 86px; }
.commerce-form input:focus-visible, .commerce-form select:focus-visible, .commerce-form textarea:focus-visible,
.commerce-button:focus-visible, .commerce-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.commerce-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.commerce-form [hidden], .commerce-dialog [hidden], #withdrawal-form-root [hidden] { display: none !important; }
.commerce-button { min-height: 46px; padding: 11px 16px; border: 1px solid var(--ink); border-radius: var(--control-radius, 10px); background: var(--paper, #eef1f1); color: var(--ink); font: inherit; cursor: pointer; }
.commerce-button:disabled { opacity: .5; cursor: not-allowed; }
.commerce-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.commerce-note, .commerce-status { font-size: 13px; line-height: 1.6; margin: 12px 0; overflow-wrap: anywhere; }
.commerce-status:empty { display: none; }
.commerce-status[data-error="true"] { font-weight: 500; }
.commerce-review { margin: 18px 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.commerce-review dt { font-weight: 600; margin-top: 12px; }
.commerce-review dd { margin: 3px 0 0; white-space: pre-wrap; }
.commerce-hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%); }
.commerce-dialog { position: fixed; inset: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; background: var(--sand); color: var(--ink); }
.commerce-dialog::backdrop { background: #19110d55; }
.commerce-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 10px; }
.commerce-heading h2 { font: inherit; font-size: 26px; letter-spacing: -.025em; margin: 0; }
.commerce-close { width: 44px; height: 44px; flex: 0 0 44px; border: 0; background: transparent; color: inherit; font-size: 30px; cursor: pointer; }
.commerce-content { padding: 0 24px 24px; max-height: calc(100dvh - 112px); overflow-y: auto; overscroll-behavior: contain; }
.commerce-country-address { margin-top: 18px; }
.commerce-saved { font-size: 13px; line-height: 1.5; margin: 10px 0 14px; overflow-wrap: anywhere; }
.cart-delivery-button { display: block; width: 100%; font-size: 14px; margin: 0 0 12px; }
.cart-delivery-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-size: 13px; }
.cart-delivery-summary span { max-width: 75%; overflow-wrap: anywhere; }
.cart-delivery-summary strong { white-space: nowrap; font-weight: 500; }
.cart-checkout-flow .cart-delivery-button, .cart-checkout-flow .cart-delivery-summary { display: none; }
.cart-checkout-flow .cart-checkout:not(:disabled) { cursor: pointer; }
.cart-checkout-flow .cart-checkout:disabled { cursor: default; }
.seller-contact-details { margin: 20px 0; font-size: 13px; line-height: 1.6; }
.seller-contact-details > summary { cursor: pointer; width: fit-content; min-height: 32px; }
.seller-contact-details > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.checkout-step { margin: 0 0 18px; font-size: 12px; letter-spacing: .06em; color: var(--muted, #695E53); }
.commerce-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checkout-back { display: block; min-height: 40px; margin-top: 10px; }
.checkout-buyer-summary, #delivery-address-summary { white-space: pre-line; }
.checkout-edit-delivery { margin: 0 0 6px; min-height: 32px; }
.locker-map-toggle { min-height: 40px; margin: 0 0 8px; }
.locker-map-reset { min-height: 40px; margin: 6px 0 0; }
#locker-map { height: 280px; width: 100%; border: 1px solid #19110d33; border-radius: 6px; background: var(--paper); z-index: 0; }
#locker-map.leaflet-container, #locker-map .leaflet-popup-content { font-family: inherit; }
#locker-map .leaflet-popup-content p { margin: 6px 0 0; }
#locker-map .leaflet-interactive:focus { outline: 2px solid var(--ink); }
.withdrawal-heading { margin-top: 0 !important; }
#withdrawal-form-root { border-bottom: 1px solid #19110d33; padding-bottom: 26px; margin-bottom: 26px; }
.withdrawal-receipt { border: 1px solid #19110d55; border-radius: 7px; padding: 16px; margin-top: 16px; overflow-wrap: anywhere; }
@media (max-width: 599px) {
  #locker-map { height: 240px; }
  .commerce-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .commerce-heading { padding: 14px 18px 8px; }
  .commerce-content { padding: 0 18px 20px; max-height: calc(100dvh - 100px); }
  .commerce-form input, .commerce-form select, .commerce-form textarea { font-size: 16px; }
  .commerce-actions > .commerce-button { flex: 1 1 auto; }
  .cart-delivery-button { min-height: 46px; }
}
