/* SPEEDACURE_LOCATION_SYNC_V1: scoped to existing location dialogs */
.scm-detect-location { margin: 8px 0 12px; }
.scm-detect-location__button {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid #b8e8d1; border-radius: 12px; background: #ecfff4;
  color: #075f3c; font-size: 13px; font-weight: 750; cursor: pointer;
}
.scm-detect-location__button:focus-visible { outline: 2px solid #078b45; outline-offset: 2px; }
.scm-detect-location__status { min-height: 0; margin: 6px 2px 0; font-size: 11px; line-height: 1.45; color: #53675b; }
.scm-detect-location__status:empty { display: none; }

.scm-detect-location__privacy { display:block; margin: 7px 2px 0; font-size: 10px; line-height: 1.4; color: #66786c; }

/* SPEEDACURE_GPS_V1_2 — prominent GPS action and explicit confirmation */
.scm-detect-location {
  padding: 12px;
  border: 1px solid #d8efe3;
  border-radius: 15px;
  background: #f4fcf7;
}
.scm-detect-location__button {
  min-height: 51px;
  border-color: #078650;
  background: #078b57;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(5,120,70,.15);
}
.scm-detect-location__button:disabled { opacity: .72; cursor: wait; }
.scm-detect-location__status { margin-top: 10px; font-size: 12px; }
.scm-detect-location__choice-label { margin: 9px 0; font-size: 12px; line-height: 1.5; color: #184c36; }
.scm-detect-location__choice-buttons { display: grid; grid-template-columns: 1fr; gap: 8px; }
.scm-detect-location__confirm, .scm-detect-location__keep {
  min-width: 0; min-height: 44px; padding: 10px 12px;
  font: inherit; font-size: 12px; font-weight: 750;
  border-radius: 11px; cursor: pointer;
}
.scm-detect-location__confirm { border: 1px solid #078650; background: #078b57; color: white; }
.scm-detect-location__keep { border: 1px solid #bfd9cb; background: white; color: #255e42; }
.scm-detect-location__button:focus-visible,
.scm-detect-location__confirm:focus-visible,
.scm-detect-location__keep:focus-visible { outline: 2px solid #066c45; outline-offset: 2px; }


/* SPEEDACURE_GPS_RX_V1_3 — compact detector and selected-city state */
@media (max-width: 820px) {
  .scm-detect-location { margin: 4px 0 10px; padding: 9px; border-radius: 13px; }
  .scm-detect-location__button { min-height: 45px; padding: 9px 12px; font-size: 13px; }
  .scm-detect-location__status { margin: 5px 1px 0; font-size: 11px; }
  .scm-detect-location__choice-label { margin: 7px 1px; font-size: 11px; }
  .scm-detect-location__choice-buttons { gap: 6px; }
  .scm-detect-location__confirm, .scm-detect-location__keep { min-height: 40px; padding: 8px; }
  .scm-detect-location__privacy { margin: 5px 2px 0; font-size: 10px; }
  #locationDialog .scm-sheet { max-height: calc(100dvh - 52px); overflow-y: auto; overscroll-behavior: contain; }
  .scm-city-list button.scm-city-selected { position: relative; padding-right: 68px;
    border-color: #059669; background: #e8fbf1; box-shadow: inset 0 0 0 1px #059669; }
  .scm-city-list button.scm-city-selected::after { content: '✓ Selected'; position: absolute;
    top: 9px; right: 9px; font-size: 10px; color: #04734a; font-weight: 800; }
}
