/* Order tracking */
.order-link {
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.order-link:hover {
  background: #fff6f7;
}

.tracking-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #087a48;
  background: #e9f8f0;
  border-radius: 999px;
  padding: 6px 13px;
  margin: 4px 0 20px;
  font-size: 0.9rem;
}

.tracking-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0a8f55;
  box-shadow: 0 0 0 0 rgba(10, 143, 85, 0.5);
  animation: tracking-pulse 1.8s ease-out infinite;
}

@keyframes tracking-pulse {
  to {
    box-shadow: 0 0 0 8px rgba(10, 143, 85, 0);
  }
}

.tracking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 24px;
}

.tracking-grid div {
  padding: 14px;
  border-radius: 14px;
  background: #fbf7f6;
  border: 1px solid #f3ebe8;
}

.tracking-grid small,
.tracking-grid b {
  display: block;
}

.tracking-grid small {
  color: #756e74;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.tracking-grid b {
  margin-top: 3px;
  text-transform: capitalize;
  color: #1d1b22;
}

.order-items {
  margin: 10px 0 22px;
  border-top: 1px solid #ede8e5;
}

.order-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #e8e1de;
}

.order-item b {
  white-space: nowrap;
  font-family: Inter, sans-serif;
}

/* ---------- Order progress timeline ---------- */
.order-timeline {
  display: flex;
  gap: 0;
  margin: 6px 0 22px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

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

.order-timeline span {
  position: relative;
  flex: 1 0 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 {
  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;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.order-timeline span.done {
  color: #1d1b22;
}

.order-timeline span.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 span.done i::after {
  content: "";
}

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

/* ---------- Action buttons inside the order modal ---------- */
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.modal .secondary-button {
  background: #fff;
  backdrop-filter: none;
  padding: 10px 16px;
  font-size: 0.9rem;
}

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

.modal .primary-button {
  width: 100%;
}