/* OrderStraight Stage 6c — Location chooser bottom-sheet styles.
   Coastal Premium navy #1C2A44 / cream #F7F5F0 / coral #E07856.
   Stage 14.1 — restyled .os-loc-signin from a muted disabled-looking
   chip to a proper coral CTA pill that matches the chooser's
   visual hierarchy (under "SAVED ADDRESSES" it now reads as a clear
   "tap me to sign in" call-to-action). CSS-only change; the JS in
   location-chooser.js still renders the same `<button class="os-loc-empty
   os-loc-signin">` markup. */

.os-loc-backdrop {
  position: fixed; inset: 0;
  background: rgba(28, 42, 68, 0.45);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.os-loc-backdrop.show { opacity: 1; pointer-events: auto; }

.os-loc-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(28, 42, 68, .18);
  z-index: 9999;
  padding: 8px 16px max(20px, env(safe-area-inset-bottom)) 16px;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.os-loc-sheet.show { transform: translateY(0); }
@media (min-width: 720px) {
  .os-loc-sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, calc(-50% + 40px));
    width: min(420px, 92vw);
    border-radius: 16px;
    opacity: 0;
  }
  .os-loc-sheet.show {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.os-loc-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: #E5E7EB;
  margin: 6px auto 14px;
}
@media (min-width: 720px) { .os-loc-handle { display: none; } }

.os-loc-title {
  font-size: 17px;
  font-weight: 700;
  color: #1C2A44;
  margin-bottom: 12px;
  text-align: center;
}

.os-loc-section {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 14px 4px 6px;
}

.os-loc-opt {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  background: #F7F5F0;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 14px;
  margin-bottom: 8px;
  font-size: 15px; font-weight: 500;
  color: #1C2A44;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, border-color .15s ease;
}
.os-loc-opt:hover, .os-loc-opt:focus-visible {
  background: #EFEAE0;
  border-color: #E07856;
  outline: none;
}
.os-loc-opt:active { transform: scale(.99); }
.os-loc-opt .ico { font-size: 20px; line-height: 1; flex-shrink: 0; }
.os-loc-opt .lbl { flex: 1; min-width: 0; }
.os-loc-opt.is-default { background: #FFF; border-color: #1C2A44; }
.os-loc-opt .badge {
  display: inline-block;
  background: #1C2A44; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

.os-loc-gps {
  background: #1C2A44;
  color: #fff;
}
.os-loc-gps:hover, .os-loc-gps:focus-visible {
  background: #16223A;
  border-color: #E07856;
}

.os-loc-list { min-height: 44px; }
.os-loc-empty {
  display: block;
  text-align: center;
  color: #6B7280;
  font-size: 14px;
  padding: 14px 0;
  text-decoration: none;
}

/* ============================================================
   Stage 14.1 — Sign-in CTA restyle.
   Old style was the muted chip above (gray text on cream — looked
   disabled and ugly under "SAVED ADDRESSES"). Now it's a proper
   coral pill that matches the rest of the chooser sheet.
   The selectors are highly specific so they cleanly OVERRIDE the
   base .os-loc-empty rules without touching them — additive only.
   ============================================================ */
button.os-loc-empty.os-loc-signin,
a.os-loc-empty.os-loc-signin {
  /* layout */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  margin: 4px 0 2px;
  /* shape */
  border-radius: 12px;
  border: 1px solid #E07856;
  /* paint */
  background: #E07856;
  color: #ffffff;
  /* type */
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .1px;
  /* feel */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 12px rgba(224, 120, 86, .28);
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}
button.os-loc-empty.os-loc-signin:hover,
a.os-loc-empty.os-loc-signin:hover {
  background: #C95F3F;
  border-color: #C95F3F;
  color: #fff;
  box-shadow: 0 6px 16px rgba(224, 120, 86, .38);
}
/* Dedicated focus ring for keyboard users — high-contrast navy halo
   that's clearly distinct from the hover state. */
button.os-loc-empty.os-loc-signin:focus-visible,
a.os-loc-empty.os-loc-signin:focus-visible {
  background: #C95F3F;
  border-color: #1C2A44;
  color: #fff;
  outline: 3px solid #1C2A44;
  outline-offset: 2px;
  box-shadow: 0 6px 16px rgba(224, 120, 86, .38);
}
button.os-loc-empty.os-loc-signin:active,
a.os-loc-empty.os-loc-signin:active {
  transform: scale(.99);
}
/* Small lock glyph in front of the label, drawn via ::before so the
   JS render markup stays unchanged. Hidden from screen readers. */
button.os-loc-empty.os-loc-signin::before,
a.os-loc-empty.os-loc-signin::before {
  content: "🔒";
  font-size: 15px;
  line-height: 1;
  margin-right: 2px;
  flex-shrink: 0;
}

.os-loc-add {
  display: block;
  text-align: center;
  color: #1C2A44;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 12px;
  border: 1px dashed #1C2A44;
  border-radius: 12px;
  margin-top: 4px;
  -webkit-tap-highlight-color: transparent;
}
.os-loc-add:hover { background: #F7F5F0; }

.os-loc-cancel {
  width: 100%;
  margin-top: 12px;
  background: transparent;
  border: none;
  color: #6B7280;
  font-size: 15px; font-weight: 500;
  padding: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.os-loc-cancel:hover { color: #1C2A44; }

/* RTL nudges */
html[dir="rtl"] .os-loc-opt { text-align: right; }
html[dir="rtl"] .os-loc-opt .badge { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] button.os-loc-empty.os-loc-signin::before,
html[dir="rtl"] a.os-loc-empty.os-loc-signin::before {
  margin-right: 0;
  margin-left: 2px;
}
