/* ============================================================
   Aush Shop — Location Picker + "I'm Interested" modals,
   and the outside-service-area banner.
   ============================================================ */

.loc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-top);
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.loc-modal-overlay[hidden] { display: none; }

.loc-modal {
  position: relative;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
  animation: locModalIn .25s var(--ease-out);
}

.loc-modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.loc-modal__close:hover {
  background: var(--color-bg-mid);
  color: var(--color-text-dark);
}

.loc-modal__skip {
  display: block;
  width: 100%;
  margin-top: var(--space-3);
  padding: var(--space-2);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
}
.loc-modal__skip:hover { color: var(--color-text-dark); }
@keyframes locModalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.loc-modal h2 {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text-dark);
  margin-bottom: var(--space-2);
}
.loc-modal__sub {
  font-size: var(--text-sm);
  color: var(--color-text-body);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-6);
}
.loc-modal .form-group { margin-bottom: var(--space-4); }
.loc-modal .btn { width: 100%; justify-content: center; }
.loc-modal__error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-bottom: var(--space-4);
}

/* ── Phone OTP verification modal (includes/otp-modal.php) ──────────
   Reuses .loc-modal-overlay / .loc-modal / .form-group / .btn above —
   only the OTP-specific bits (code input, resend link, success state)
   need their own rules. ── */
.otp-modal__code-input {
  letter-spacing: .5em;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  text-align: center;
}
.otp-modal__sent-to {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.otp-modal__link {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-accent-dark);
  text-decoration: underline;
  cursor: pointer;
}
.otp-modal__link:hover { color: var(--color-accent); }
.otp-modal__link:disabled {
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: default;
}
.otp-modal__cancel { display: block; margin: var(--space-4) auto 0; }
.otp-modal__success {
  text-align: center;
  font-size: var(--text-md);
  font-weight: var(--font-semi);
  color: var(--color-success);
  padding: var(--space-4) 0;
}

/* ── Selected-location indicator (shop toolbar) ──────────────────── */
.loc-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-body);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.loc-indicator svg { flex-shrink: 0; color: var(--color-accent); }

/* ── Outside-service-area banner ─────────────────────────────────── */
.loc-banner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-warning);
}
.loc-banner svg { flex-shrink: 0; color: var(--color-warning); }
.loc-banner strong { color: var(--color-warning); font-weight: var(--font-bold); }
.loc-banner button {
  margin-left: auto;
  flex-shrink: 0;
  background: none; border: none;
  color: var(--color-warning);
  font-size: var(--text-xs);
  font-weight: var(--font-semi);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

/* Interested button variant (replaces Add to Cart when not serviceable) */
.js-interest-btn {
  background: var(--color-bg-white);
  border: 1.5px solid var(--color-text-dark);
  color: var(--color-text-dark);
}
/* background flips light<->dark with the theme (--color-text-dark);
   color must flip the OPPOSITE way to stay legible — #fff here would
   go invisible (white-on-near-white) once dark theme flips the
   background light. --color-bg-white flips in the complementary
   direction, so the pairing stays high-contrast in both themes. */
.js-interest-btn:hover { background: var(--color-text-dark); color: var(--color-bg-white); }

@media (max-width: 480px) {
  .loc-modal { padding: var(--space-6); }
  .loc-banner { flex-direction: column; align-items: flex-start; }
  .loc-banner button { margin-left: 0; }
}

/* States/districts with no serviceable coverage yet — faded, not disabled,
   since picking one is still how a visitor reaches the "Notify Me" lead
   capture flow for their area. */
.loc-option--muted { color: var(--color-text-muted); }
