/* ============================================
 * ORDER TRACKING PAGE STYLES
 * ============================================ */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.track-section {
  padding: var(--space-2xl) 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.track-section .section-head {
  text-align: center;
  width: 100%;
}

.track-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.track-form {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* Pipeline UI */
.pipeline-container {
  display: none;
  margin-top: 2rem;
}

.pipeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.pipeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 15px;
  bottom: 15px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel-strong);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-soft);
}

.step-icon svg {
  width: 16px;
  height: 16px;
}

.pipeline-step.is-active .step-icon {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(var(--brand-rgb), 0.05);
}

.pipeline-step.is-completed .step-icon {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.pipeline-step.is-error .step-icon {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.step-content {
  padding-top: 4px;
}

.step-title {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.step-desc {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0;
}

.order-details {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.support-box {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(178, 73, 62, 0.1);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  display: none;
}

.support-box p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text);
}
