/* =====================================================================
   state-picker.css  --  shared styling for partials/state-picker.php.

   Uses CSS variables so each platform's existing palette wins:
     --sp-ink, --sp-accent, --sp-line, --sp-bg, --sp-muted
   If undefined, falls back to neutral defaults.

   Drop at /assets/state-picker.css on every platform.
   ===================================================================== */

.state-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
}

.state-picker-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sp-ink, #1a1d24);
}

.state-picker-hint {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--sp-muted, #8a929f);
  margin-left: 4px;
}

.state-picker-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.state-picker-select {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--sp-bg, #ffffff);
  color: var(--sp-ink, #1a1d24);
  border: 1.5px solid var(--sp-line, #c0c0c0);
  border-radius: 4px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.state-picker-select:focus {
  border-color: var(--sp-accent, #c8312e);
  box-shadow: 0 0 0 3px rgba(200, 49, 46, 0.12);
}

.state-picker-gps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--sp-bg, #ffffff);
  color: var(--sp-ink, #1a1d24);
  border: 1.5px solid var(--sp-line, #c0c0c0);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}

.state-picker-gps:hover,
.state-picker-gps:focus {
  border-color: var(--sp-accent, #c8312e);
  color: var(--sp-accent, #c8312e);
}

.state-picker-gps:disabled {
  opacity: 0.6;
  cursor: progress;
}

.state-picker-gps-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Compact mode: inline form, no label visible (use aria-label on the select) */
.state-picker[data-compact] .state-picker-label { display: none; }

@media (max-width: 520px) {
  .state-picker-gps-label { display: none; }
  .state-picker-gps { padding: 7px 10px; }
}
