/* Customer location chip (slice 1 — preference only) */
/* Stack above sticky .main-header (z-index 1000 / 1100) so the panel
   is not covered — panel lives in .header-top, sibling above the sticky block. */
.ts-loc {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 0.75rem;
  z-index: 1200;
}

.ts-loc__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 220px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  background: #fff;
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ts-loc__chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ts-loc__chip i { color: #78350F; }

.ts-loc__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1;
  width: min(320px, 92vw);
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: #fff;
  box-shadow: 0 14px 36px rgba(26, 26, 26, 0.12);
}

.ts-loc__title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.ts-loc__modes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.ts-loc__mode,
.ts-loc__apply,
.ts-loc__gps {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  background: #f7faf4;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.ts-loc__mode.is-active {
  background: linear-gradient(135deg, #ffe800, #F5C518);
  border-color: transparent;
  color: #0F172A;
}

.ts-loc__field {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.ts-loc__field select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(26, 26, 26, 0.16);
}

.ts-loc__apply {
  background: #78350F;
  color: #fff;
  border: 0;
  margin-bottom: 0.5rem;
}

.ts-loc__gps {
  margin-top: 0.25rem;
  background: #fff;
}

.ts-loc__subtitle {
  margin: 0.75rem 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a1a;
}

.ts-loc__vehicle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.ts-loc__vehicle-btn {
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  background: #f7faf4;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  line-height: 1.25;
}

.ts-loc__vehicle-btn.is-active {
  background: linear-gradient(135deg, #ffe800, #F5C518);
  border-color: transparent;
  color: #0F172A;
}

.ts-loc__hint {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  color: #57534E;
  line-height: 1.35;
}

@media (max-width: 767px) {
  .ts-loc { margin-right: 0.35rem; }
  .ts-loc__chip { max-width: 140px; padding: 0.35rem 0.55rem; font-size: 0.78rem; }
  .ts-loc__panel { right: auto; left: 0; }
}
