/* Shared delivery form keeps the existing storefront palette and position. */
.ag37-delivery{margin:12px 0 28px}.ag37-delivery-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr);gap:24px;margin:22px 0}.ag37-delivery-form,.ag37-conditions{padding:22px;border:1px solid #cfb898;background:#fff8ed;border-radius:18px;min-width:0}.ag37-delivery label,.ag37-delivery input,.ag37-delivery select{display:block;width:100%;box-sizing:border-box}.ag37-delivery label{margin:0 0 16px;line-height:1.5}.ag37-delivery input,.ag37-delivery select{padding:12px;border:1px solid #c4a884;border-radius:10px;background:#fffdf8;color:#183627;font:inherit}.ag37-delivery button{padding:12px 18px;border:1px solid #8b183a;background:#8b183a;color:white;border-radius:24px;font:inherit;cursor:pointer;min-height:44px}.ag37-delivery button:disabled{opacity:.6;cursor:wait}.ag37-delivery p,.ag37-order-delivery p{white-space:pre-line;line-height:1.5}.ag37-delivery h3{margin:0 0 12px}.ag37-delivery fieldset,#ag37CheckoutExtras fieldset{border:1px solid #cfb898;border-radius:12px;margin:18px 0;padding:12px}.ag37-delivery input[type=checkbox],#ag37CheckoutExtras input[type=checkbox]{display:inline-block;width:20px;height:20px;vertical-align:middle;accent-color:#8b183a;margin-right:8px}.ag37-delivery small,#ag37CheckoutExtras small{display:block;font-size:13px;padding-left:30px}.ag37-map{height:320px;max-width:100%;margin-top:14px;border-radius:12px;overflow:hidden}.ag37-calculation:not(:empty){background:#f0e5d2;padding:14px;border-radius:12px;margin:16px 0}.ag37-calculation p{margin:5px 0}.ag37-calculation strong{display:block;margin:12px 0}.ag37-location>button{margin:4px 6px 6px 0}.ag37-conditions{height:fit-content}.ag37-services-editor fieldset{border:1px solid #3b526a;border-radius:12px;padding:16px;margin:18px 0}.ag37-order-delivery{padding:12px;border-left:3px solid #d9bb79;margin:12px 0}.ag37-order-delivery a{color:inherit}.ag37-delivery [hidden],#ag37CheckoutExtras [hidden]{display:none!important}
@media(max-width:760px){.ag37-delivery-grid{grid-template-columns:minmax(0,1fr);gap:14px}.ag37-delivery-form,.ag37-conditions{padding:16px}.ag37-delivery input,.ag37-delivery select{font-size:16px}.ag37-map{height:260px}.ag37-delivery button{width:100%;margin:5px 0}}

.ag-address-search-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}
.ag-address-search-row input[type=search]{display:block;flex:1 1 200px;width:auto;min-width:0;max-width:100%;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #c4a884;border-radius:10px;background:#fffdf8;color:#183627;font:inherit}
.ag-address-search-row button{flex:0 0 auto;margin:0}
.ag-address-results{display:grid;gap:5px}
.ag-address-results button{display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;color:#59122a;background:#fff8ed;border:1px solid #c4a884;border-radius:10px;padding:9px 12px;cursor:pointer}
.ag-address-search-status:empty,.ag-address-results:empty,.ag-address-search-row~small:empty{display:none}
@media(max-width:600px){.ag-address-search-row input[type=search],.ag-address-search-row button{flex:1 0 100%;width:100%}}
.ag37-location .ag-search-zone,.ag37-location .ag-address-search-row{display:grid;grid-template-columns:minmax(7.2em,auto) minmax(0,1fr) auto;gap:.5em .75em;align-items:center;margin:10px 0}
.ag-search-zone select{grid-column:2/-1;min-width:0}
.ag37-location .ag-address-search-row label{margin:0;width:auto}
.ag-address-search-row>button:first-child:not([hidden]){grid-column:1/-1;justify-self:start}
.ag-address-search-row input[type=search]{width:100%}
.ag-suggest-host{position:relative;min-width:0}
.ag-address-popup{position:absolute;top:100%;inset-inline:0;z-index:25;border:1px solid #c4a884;border-radius:10px;background:#fffaf2;color:#183627;box-shadow:0 5px 16px #412c1c30;overflow:auto;overscroll-behavior:contain;max-height:min(19rem,42vh)}
.ag391-address-status>.ag-address-popup{top:0}
.ag391-address-status>.ag38-map-message:empty{display:none}
.ag-address-popup .ag-address-search-status{margin:0;padding:8px 12px;font-size:.92em}
.ag-address-popup .ag-address-results{gap:0}
.ag-address-popup .ag-address-results button{margin:0;border:0;border-top:1px solid #eadac4;border-radius:0;background:transparent;color:#531729;text-align:left;min-height:40px;width:100%}
.ag-address-popup .ag-address-results button:hover,.ag-address-popup .ag-address-results button:focus-visible{background:#f5e8d5;color:#4b1327}
@media(max-width:600px){.ag37-location .ag-search-zone,.ag37-location .ag-address-search-row{grid-template-columns:1fr}.ag-search-zone select{grid-column:auto}.ag-address-search-row>button:last-child{width:100%}}

/* Existing delivery controls now follow the map in both forms. */
.ag-delivery-address-fields{display:grid;gap:10px;min-width:0;margin:12px 0}
.ag-delivery-address-fields>label{display:block;min-width:0;margin:0}
.ag-delivery-address-fields input,.ag-delivery-address-fields select{box-sizing:border-box;display:block;width:100%;min-width:0}
.ag-delivery-address-fields [hidden]{display:none!important}
.ag-delivery-address-fields .ag391-address-status{margin:0}
.ag-delivery-address-fields .ag-address-popup{top:0}
