.location-picker {
  width: min(428px, calc(100% - 32px));
  max-width: 100%;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 23px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 21px;
  box-shadow: 0 20px 80px #21131d4d;
}
.location-picker::backdrop { background: #19131ab5; }
.location-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 21px;
}
.location-picker h2 {
  font-size: clamp(25px, 5.2vw, 30px);
  line-height: 1.12;
  font-weight: 770;
  letter-spacing: -.055em;
}
.location-picker h2:focus { outline: 0; }
#location-picker-current {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.location-dismiss, .location-gps-glyph, .location-city-glyph {
  display: grid;
  place-items: center;
  flex: none;
}
.location-dismiss {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--soft);
}
.location-dismiss:hover { background: var(--line); }
.location-gps {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 15px 10px 10px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  text-align: left;
  font-size: 15px;
  font-weight: 680;
}
.location-gps:hover { background: #3d3539; }
.location-gps[aria-disabled=true] { cursor: progress; }
.location-gps-glyph {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #47323c;
  color: #ff9cbb;
}
.location-gps > svg { margin-inline-start: auto; color: #e9dee3; }
.location-gps-status, .location-search-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.location-gps-status:not(:empty) {
  margin-top: 8px;
  padding: 9px 11px;
  background: var(--wash);
  color: #7b2b46;
  border-radius: 8px;
}
.location-search-label {
  display: block;
  margin: 20px 0 7px;
  font-size: 13px;
  font-weight: 720;
}
.location-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 12px;
  min-height: 46px;
  border: 1px solid #cfc9ca;
  border-radius: 11px;
  color: var(--muted);
}
.location-search-box:focus-within {
  outline: 2px solid var(--berry);
  outline-offset: 1px;
  color: var(--berry);
}
.location-search-box input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  padding: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}
.location-search-box input::placeholder { color: var(--muted); }
.location-search-status:not(:empty) { margin-top: 9px; }
.location-search-retry {
  min-height: 34px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--berry);
  font-size: 13px;
  padding: 3px 0;
}
#location-city-results {
  margin: 7px 0 0;
  padding: 3px;
  max-height: min(232px, 32dvh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.location-default, #location-city-results li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  width: 100%;
  padding: 6px 9px;
  text-align: left;
  border-radius: 8px;
}
#location-city-results li { cursor: pointer; }
#location-city-results li:hover, #location-city-results [aria-selected=true] { background: var(--wash); }
.location-city-glyph {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  color: #6c5d63;
  background: var(--soft);
}
.location-option-copy { min-width: 0; flex: 1; }
.location-option-copy strong, .location-option-copy small { display: block; overflow-wrap: anywhere; }
.location-option-copy strong { font-size: 14px; font-weight: 710; }
.location-option-copy small { font-size: 12px; color: var(--muted); }
.location-default {
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.location-default:hover { background: var(--soft); }
.location-default[aria-current] .location-city-glyph { color: var(--berry); background: var(--wash); }
.location-default-mark { display: grid; place-items: center; color: var(--berry); }
.location-credit {
  margin-top: 12px;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
}
.location-credit a { text-underline-offset: 2px; }
.location-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 520px) {
  .location-picker {
    width: min(100%, 440px);
    max-height: calc(100dvh - 12px);
    margin: auto auto 0;
    padding: 21px 18px max(16px, env(safe-area-inset-bottom));
    border-bottom: 0;
    border-radius: 21px 21px 0 0;
  }
}

.location-worldwide {padding:10px 12px;margin:6px 0 12px;border:1px solid var(--line);border-radius:8px;text-align:left;font-size:13px}
.location-worldwide:disabled {opacity:.5}
