/* Order progress timeline + order action buttons.
   Same design as the block in tracking.css, so whichever loads last looks identical. */
.order-timeline {
  display: flex;
  gap: 0;
  align-items: flex-start;
  overflow-x: auto;
  margin: 6px 0 22px;
  padding: 4px 0 6px;
  scrollbar-width: none;
}

.order-timeline::-webkit-scrollbar {
  display: none;
}

.order-timeline span {
  position: relative;
  flex: 1 0 74px;
  min-width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #98929a;
  font-weight: 600;
}

.order-timeline span::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -50%;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: #ebe5e3;
  z-index: 0;
}

.order-timeline span:first-child::before {
  display: none;
}

.order-timeline span.done::before,
.order-timeline .done::before {
  background: linear-gradient(90deg, #ff5c70, #e60023);
}

.order-timeline i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1ecea;
  color: #8f8890;
  font: 700 0.78rem Inter, sans-serif;
  font-style: normal;
}

.order-timeline .done {
  color: #1d1b22;
  font-weight: 700;
}

.order-timeline .done i {
  background: linear-gradient(145deg, #ff3b55, #e60023 60%, #b8001c);
  color: #fff;
  box-shadow: 0 6px 14px rgba(230, 0, 35, 0.32);
}

.order-timeline.cancelled {
  display: block;
  text-align: center;
  background: #fff1f2;
  color: #bd2635;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.detail-actions .secondary-button {
  background: #fff;
  backdrop-filter: none;
  font-size: 0.86rem;
  padding: 10px 15px;
}

.detail-actions .secondary-button:hover {
  background: #fff5f6;
  border-color: #e60023 !important;
}