
/* FedEx-style timeline refinements */
.fst-tracker-wrapper {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  max-width: 700px;
  margin: 0 auto;
  padding: 16px;
}
.fst-track-form {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.fst-track-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
.fst-track-form button {
  padding: 10px 16px;
  background: #4D148C;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.fst-timeline {
  position: relative;
  margin: 0;
  padding: 0;
  max-width: 720px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.fst-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 8px;
  background: #e6e6eb;
  border-radius: 4px;
}
.fst-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 28px;
  padding-left: 60px;
}
.fst-marker {
  position: absolute;
  left: 0;
  top: 8px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e6e6eb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fst-step.active .fst-marker {
  background: #4D148C;
  box-shadow: 0 0 0 4px rgba(77,20,140,0.15);
}
.fst-step.active .fst-marker::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 60px;
  background: #4D148C;
  border-radius: 4px;
}
.fst-arrow {
  font-size: 24px;
  line-height: 1;
  color: #fff;
  display: none;
}
.fst-step.active .fst-arrow {
  display: block;
}
.fst-card {
  background: #f1f1f5;
  border-radius: 16px;
  padding: 18px 20px;
  position: relative;
  flex: 1;
  margin-bottom: 4px;
}
.fst-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: #5f5f5f;
}
.fst-sub {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}
.fst-location,
.fst-meta,
.fst-estimate,
.fst-label {
  font-size: 14px;
  margin-bottom: 4px;
  color: #444;
}
.fst-label {
  font-style: italic;
  color: #6f6f6f;
}
.fst-link a {
  font-size: 14px;
  text-decoration: underline;
  color: #4D148C;
  display: inline-block;
  margin-top: 6px;
}
.fst-step.completed:not(.active) .fst-marker {
  background: #fff;
  border: 4px solid #e6e6eb;
}
.fst-step.completed:not(.active) .fst-marker::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #a0a0a0;
  top: 22px;
  left: 22px;
}

/* Progress bar */
.fst-progress-wrapper {
  margin-bottom: 16px;
}
.fst-progress-label {
  font-size: 13px;
  margin-bottom: 4px;
  font-weight: 600;
  color: #444;
}
.fst-progress-bar {
  background: #e6e6eb;
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  position: relative;
}
.fst-progress-fill {
  height: 100%;
  background: #4D148C;
  transition: width .3s ease;
}

/* Responsive tweaks */
@media (max-width: 800px) {
  .fst-step {
    padding-left: 52px;
    margin-bottom: 22px;
  }
  .fst-timeline::before {
    left: 22px;
  }
}


/* Complete timeline fill for completed steps */
.fst-step.completed .fst-marker::before {
  content: '';
  position: absolute;
  top:    -100%;
  left:   50%;
  transform: translateX(-50%);
  width:  16px;
  height: 60px;
  background: #4D148C;
  border-radius: 4px;
  z-index: 0;
}




/* Active step marker and arrow bubble in FedEx purple */
.fst-step.active .fst-marker {
  background: #4D148C !important;
  border: none !important;
  box-shadow: none !important;
}
.fst-step.active .fst-marker::after {
  display: none !important;
}
.fst-step.active .fst-arrow {
  background: #4D148C !important;
  color: #fff !important;
  border-radius: 50%;
  padding: 10px;
}
