.merchant-location-control,.visitor-geo{border:1px solid #d8dedb;border-radius:10px;padding:12px;margin:10px 0;background:#f7faf8}
.geo-status{font-size:calc(13px * var(--text-scale,1));line-height:1.6;color:#52635b;margin:8px 0;overflow-wrap:anywhere}
.merchant-location-dialog{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:20px;border:0;border-radius:14px;overflow:auto;box-shadow:0 12px 48px #0003}
.merchant-location-dialog::backdrop{background:#15231cb3}
.merchant-location-dialog h2{margin:0 0 10px}.merchant-location-dialog>p{line-height:1.6;font-size:calc(14px * var(--text-scale,1))}
.geo-search-row,.geo-actions,.visitor-geo{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.geo-search-row input{flex:1;min-width:150px}.geo-search-row button{flex:none}
.geo-results{display:grid;gap:5px;margin:8px 0;max-height:180px;overflow:auto}
.geo-results button{text-align:left;white-space:normal;line-height:1.5}
.merchant-location-map{height:340px;min-height:220px;background:#e8eeeb;border:1px solid #c8d3cc;border-radius:8px;margin-top:8px}
.geo-private-point{font-size:calc(12px * var(--text-scale,1));overflow-wrap:anywhere;color:#4e5d56}
.geo-actions{margin-top:12px}.geo-actions button{white-space:normal}
.visitor-geo .geo-status{flex-basis:100%;margin:2px 0}.visitor-geo label{display:flex;align-items:center;gap:6px}.visitor-geo select{width:auto}
.visitor-geo [hidden]{display:none!important}
@media(max-width:600px){.merchant-location-dialog{padding:14px}.merchant-location-map{height:290px}.geo-actions button{flex:1 1 43%}.geo-search-row input{width:100%;flex-basis:100%}}
/* The read-only value field is the sole dialog entry and remains in FormData. */
[data-public-location]{min-width:0}
[data-public-location] input[data-location-action=open]{cursor:pointer;min-height:44px;overflow:hidden;text-overflow:ellipsis}
[data-public-location] input[data-location-action=open]:focus-visible{outline:2px solid #466e59;outline-offset:2px}
[data-public-location] .merchant-location-control{margin:0;padding:0;border:0;border-radius:0;background:transparent}
.merchant-location-control .geo-status{margin:6px 0 0}

.merchant-location-dialog{position:relative}.merchant-location-dialog h2{padding-right:44px}
.geo-icon-button{width:44px;min-height:44px;padding:4px;font-size:26px;line-height:1}
.geo-dialog-close{position:absolute;right:12px;top:10px}
.geo-actions [hidden]{display:none!important}
@media(max-width:600px){.geo-search-row{flex-wrap:nowrap}.geo-search-row input{width:auto;flex:1;min-width:0}.geo-search-row .geo-icon-button{flex:0 0 44px}}

/* Confirmed location and search input remain separate. */
.merchant-location-control,.visitor-geo{border:1px solid #d8dedb;border-radius:10px;padding:12px;margin:10px 0;background:#f7faf8}
[data-public-location] .merchant-location-control{margin:0;padding:0;border:0;border-radius:0;background:transparent}
.merchant-location-control .geo-status{margin:6px 0 0}
[data-public-location] .merchant-location-control{display:flex;flex-wrap:wrap;align-items:center}
[data-public-location] .merchant-location-control>.geo-status{flex-basis:100%;margin:6px 0 0}

/* Search, map, then results; the dialog has no redundant title or X controls. */
.merchant-location-dialog{padding:16px;max-height:90dvh;overflow-y:auto}
.merchant-location-dialog .geo-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0 0 10px}
.merchant-location-dialog .geo-search-button{width:auto;min-width:64px;padding:10px 14px;font-size:inherit}
.merchant-location-dialog .merchant-location-map{height:clamp(180px,32dvh,320px)}
.merchant-location-dialog .geo-results{max-height:28dvh;overflow-y:auto;margin-top:10px}
.merchant-location-dialog .geo-return-button{margin-left:auto}
