[hidden] { display: none !important; }
.location-picker {
  width: min(94vw, 620px);
  max-width: none;
  max-height: min(90dvh, 760px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 70px #0f172a4d;
}
.location-picker::backdrop { background: #0f172a9c; }
.location-picker-shell { display: grid; gap: 12px; padding: 16px; }
.location-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.location-picker-head h2 { margin: 0; font-size: 19px; }
.location-picker-head button { border: 0; background: var(--soft); color: var(--ink); width: 34px; height: 34px; border-radius: 9px; font-size: 22px; }
.location-picker-help, .location-picker-status { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
#locationPickerMap { height: min(53dvh, 420px); min-height: 260px; border-radius: 12px; overflow: hidden; background: #e9f1f0; }
.location-picker-result { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.location-picker-result small { color: var(--muted); font-size: 12px; }
.location-picker-actions { display: flex; gap: 8px; }
.location-picker-actions button { flex: 1; min-height: 43px; border: 0; border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 13px; font-weight: 750; }
#locationPickerDevice { background: var(--soft); color: var(--primary); }
#locationPickerConfirm { background: var(--primary); color: #fff; }
.location-picker-actions button:disabled { opacity: .5; }
#addressForm .check-row { display: inline-flex; align-items: center; gap: 8px; width: fit-content; }
#addressForm .check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
}
.coordinate-fields input[readonly] { background: #f8fafc; color: #64748b; }
.location-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.location-choice button { flex: 1 1 160px; }
@media (max-width: 480px) {
  .location-picker { width: calc(100vw - 20px); max-height: calc(100dvh - 22px); border-radius: 14px; }
  .location-picker-shell { padding: 12px; gap: 10px; }
  #locationPickerMap { height: min(49dvh, 390px); min-height: 250px; }
}
