/* ============================================
   Order Steps Static (shared by payment-success, order-detail, etc)
   ============================================ */
.order-steps-static {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 10px 0 24px;
  border-radius: 6px;
  overflow: hidden;
}

.order-steps-static .step-item {
  position: relative;
  flex: 1;
  min-height: 58px;
  background: var(--step-bg, #F4F5F9);
  color: var(--step-color, #3C3C3C);
  font-size: 16px;
  font-weight: var(--primary-font-weight);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  line-height: 1.1;
  margin-left: 6px;
}

.order-steps-static .step-item:first-child {
  margin-left: 0;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.order-steps-static .step-item::after {
  content: '';
  position: absolute;
  top: 0;
  right: -30px;
  width: 0;
  height: 0;
  border-top: 29px solid transparent;
  border-bottom: 29px solid transparent;
  border-left: 30px solid var(--step-bg, #F4F5F9);
  z-index: 3;
}

.order-steps-static .step-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: -36px;
  width: 0;
  height: 0;
  border-top: 29px solid transparent;
  border-bottom: 29px solid transparent;
  border-left: 30px solid #fff;
  z-index: 2;
}

.order-steps-static .step-item.state-completed {
  --step-bg: #F4F5F9;
  --step-color: #FF7B02;
}

.order-steps-static .step-item.state-current {
  --step-bg: #FF7B02;
  --step-color: #FFFFFF;
}

.order-steps-static .step-item.state-upcoming {
  --step-bg: #FFE4CB;
  --step-color: #3C3C3C;
}

.order-steps-static .step-item.state-upcoming ~ .step-item {
  --step-bg: #F4F5F9;
  --step-color: #3C3C3C;
}

.order-steps-static .step-item.state-pending {
  --step-bg: #F4F5F9;
  --step-color: #3C3C3C;
}

.order-steps-static .step-item.state-completed .step-label::before,
.order-steps-static .step-item.state-current .step-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.order-steps-static .step-item.state-completed .step-label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10.5' fill='none' stroke='%23FF7B02' stroke-width='2'/%3E%3Cpath d='M7 12.5l3.5 3.5 6.5-6.5' fill='none' stroke='%23FF7B02' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.order-steps-static .step-item.state-current .step-label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10.5' fill='none' stroke='%23FFFFFF' stroke-width='2'/%3E%3Cpath d='M7 12.5l3.5 3.5 6.5-6.5' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.order-steps-static .step-item:first-child.state-completed .step-label::before {
  margin-left: -10px;
}

.order-steps-static .step-item:last-child::before,
.order-steps-static .step-item:last-child::after {
  display: none;
}

.order-steps-static .step-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 87%;
  text-align: center;
}

.order-steps-static .step-item:not(:first-child) .step-label {
  transform: translateX(20px);
}

.order-steps-static .step-item:last-child .step-label {
  transform: translateX(0);
}
