/* Elementals Laundry – Order Tracking Styles */

/* ── Wrapper ─────────────────────────────────────────────── */
.els-track-wrap {
  max-width: 620px;
  margin: 0 auto;
  font-family: inherit;
  padding: 8px 0 40px;
}

.els-track-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.els-track-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: #111;
}
.els-track-header svg { color: #3b5bdb; flex-shrink: 0; }

.els-track-desc {
  color: #6b7280;
  margin: 0 0 24px;
  font-size: 0.95rem;
}

/* ── Search row ──────────────────────────────────────────── */
.els-track-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
#els-track-input {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: monospace;
  letter-spacing: 1px;
  outline: none;
  transition: border-color 0.15s;
  text-transform: uppercase;
}
#els-track-input:focus { border-color: #3b5bdb; }

/* ── Messages ────────────────────────────────────────────── */
.els-track-msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.els-track-msg--error {
  background: #fff0f0;
  border: 1.5px solid #f87171;
  color: #b91c1c;
}

/* ── Result card ─────────────────────────────────────────── */
.els-track-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Tracking ID badge */
.els-track-id-badge {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 14px;
}
.els-track-id-badge strong {
  font-size: 1rem;
  color: #111;
  font-family: monospace;
  letter-spacing: 1px;
}

/* Status pill */
.els-track-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.els-track-status-icon { font-size: 1.1rem; }

/* ── Timeline ────────────────────────────────────────────── */
.els-track-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.els-tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 70px;
  position: relative;
}

/* Connector line between steps */
.els-tl-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: #e5e7eb;
  z-index: 0;
}
.els-tl-step.els-tl-done:not(:last-child)::after {
  background: #3b5bdb;
}

.els-tl-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #9ca3af;
  position: relative;
  z-index: 1;
  transition: all 0.2s;
}
.els-tl-step.els-tl-done .els-tl-dot {
  background: #3b5bdb;
  border-color: #3b5bdb;
  color: #fff;
}
.els-tl-step.els-tl-active .els-tl-dot {
  border-color: #3b5bdb;
  background: #fff;
  color: #3b5bdb;
  box-shadow: 0 0 0 4px #3b5bdb22;
}

.els-tl-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  text-align: center;
  margin-top: 7px;
  line-height: 1.3;
  max-width: 72px;
}
.els-tl-step.els-tl-done .els-tl-label,
.els-tl-step.els-tl-active .els-tl-label {
  color: #3b5bdb;
}

/* ── Order summary ───────────────────────────────────────── */
.els-track-summary {
  border-top: 1.5px solid #f3f4f6;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.els-track-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.92rem;
}
.els-track-row:last-child { border-bottom: none; }
.els-track-row > span:first-child {
  color: #6b7280;
  font-weight: 500;
  flex: 0 0 130px;
}
.els-track-row > span:last-child {
  color: #111;
  font-weight: 600;
  text-align: right;
}
.els-track-note {
  background: #f9fafb;
  border-radius: 8px;
  padding: 10px 12px !important;
  margin-top: 8px;
}
.els-track-cancelled {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff5f5;
  border-radius: 8px;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── Spinner ─────────────────────────────────────────────── */
@keyframes els-spin { to { transform: rotate(360deg); } }
.els-spin { animation: els-spin 0.8s linear infinite; vertical-align: middle; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .els-track-card { padding: 16px; }
  .els-tl-label { font-size: 0.62rem; max-width: 56px; }
  .els-tl-dot { width: 30px; height: 30px; font-size: 0.7rem; }
}
