/* ============================================
   Block: checkout-steps — индикатор шагов оформления
   ============================================ */

.b-checkout-steps {
  padding: 24px 0;
  background: var(--bg, #F7F3EC);
  font-family: 'Manrope', sans-serif;
}

.b-checkout-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  counter-reset: step;
}

.b-checkout-steps__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  text-align: center;
}

/* Соединительная линия */
.b-checkout-steps__step::before,
.b-checkout-steps__step::after {
  content: "";
  position: absolute;
  top: 17px;
  width: 50%;
  height: 1px;
  background: var(--line, #E4DCD2);
}

.b-checkout-steps__step::before { left: 0; }
.b-checkout-steps__step::after { right: 0; }

.b-checkout-steps__step:first-child::before,
.b-checkout-steps__step:last-child::after {
  display: none;
}

.b-checkout-steps__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface, #FDFBF7);
  border: 1px solid var(--line, #E4DCD2);
  color: var(--muted, #8A7F7A);
  position: relative;
  z-index: 1;
}

.b-checkout-steps__label {
  font-size: 13px;
  color: var(--muted, #8A7F7A);
}

/* Активный шаг */
.b-checkout-steps__step.is-active .b-checkout-steps__num {
  background: var(--accent, #6E5A7E);
  border-color: var(--accent, #6E5A7E);
  color: #fff;
}

.b-checkout-steps__step.is-active .b-checkout-steps__label {
  color: var(--text, #3B3437);
  font-weight: 600;
}

/* Пройденный шаг */
.b-checkout-steps__step.is-done .b-checkout-steps__num {
  background: var(--lavender-soft, #E9E1EF);
  border-color: var(--lavender, #B9A7C9);
  color: var(--accent, #6E5A7E);
}

.b-checkout-steps__step.is-done::before,
.b-checkout-steps__step.is-done::after {
  background: var(--lavender, #B9A7C9);
}

@media (max-width: 480px) {
  .b-checkout-steps__label {
    font-size: 11px;
  }

  .b-checkout-steps__num {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .b-checkout-steps__step::before,
  .b-checkout-steps__step::after {
    top: 15px;
  }
}
