.region-field { flex-wrap: wrap; gap: 10px; }
.region-choice { min-width: 0; max-width: 100%; }
.region-choice .dropdown { width: min(320px, 100%); }
.location-edit { min-height: 44px; border: 1px solid var(--rule); border-radius: 9px; padding: 9px 14px; background: var(--forest-soft); color: var(--forest); font: 600 14px/1.3 var(--font-body); cursor: pointer; }
.location-caption { grid-column: 1 / -1; margin: 8px 0 16px; color: var(--muted); font: 400 13px/1.5 var(--font-body); }
.location-dialog { width: min(600px, calc(100vw - 24px)); height: min(520px, calc(100dvh - 32px)); overflow: hidden; }
.location-dialog[open] { display: flex; flex-direction: column; }
.location-dialog > :not(#location-results) { flex-shrink: 0; }
.location-dialog label { display: block; margin: 20px 0 8px; font-weight: 600; }
.location-dialog input { width: 100%; min-height: 48px; border: 1px solid var(--rule); border-radius: 10px; padding: 12px; background: white; color: var(--forest); font: inherit; }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.location-result { width: 100%; display: grid; gap: 4px; text-align: left; padding: 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); color: var(--forest); font: inherit; cursor: pointer; }
.location-result:hover { background: var(--forest-soft); }
.location-result span { color: var(--muted); font-size: 13px; }
#location-results { display: grid; gap: 8px; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
#location-status { min-height: 24px; margin: 12px 0; color: var(--muted); }
.store-address { display: block; color: inherit; text-underline-offset: 3px; line-height: 1.5; }
.store-distance { display: block; margin-top: 4px; font-size: 12px; opacity: .85; }
.branch-info a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .region-field > label { width: 100%; }
  .region-choice { flex: 1 1 100%; }
  .region-choice .dropdown { width: 100%; }
  .location-edit { flex: 1; }
  .location-dialog { padding: 18px; }
}

.location-sources { margin-top: 6px; font: 400 12px/1.5 var(--font-body); color: var(--muted); }
.location-sources summary { cursor: pointer; }
.location-sources p { margin: 8px 0 0; }
.location-sources a { color: inherit; text-underline-offset: 3px; }
