.gf-wizard-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 32px;
}

.gf-wizard-steps__track,
.gf-wizard-steps__labels {
  display: grid;
  width: 100%;
}

.gf-wizard-steps__track {
  grid-template-columns: var(--wizard-track-columns);
  column-gap: 12px;
  align-items: center;
}

.gf-wizard-steps__labels {
  grid-template-columns: repeat(var(--wizard-columns), minmax(0, 1fr));
  column-gap: 8px;
  align-items: start;
}

.gf-wizard-step {
  display: flex;
  width: 100%;
}

.gf-wizard-step.is-align-start,
.gf-wizard-step__label-cell.is-align-start {
  justify-content: flex-start;
  text-align: left;
}

.gf-wizard-step.is-align-center,
.gf-wizard-step__label-cell.is-align-center {
  justify-content: center;
  text-align: center;
}

.gf-wizard-step.is-align-end,
.gf-wizard-step__label-cell.is-align-end {
  justify-content: flex-end;
  text-align: right;
}

.gf-wizard-step__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #d0cecc;
  border: 0;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gf-wizard-step__tick {
  width: 7px;
  height: 4px;
  border-left: 1.5px solid #ffffff;
  border-bottom: 1.5px solid #ffffff;
  opacity: 0;
  transform: rotate(-45deg);
  transition: opacity 0.2s ease;
}

.gf-wizard-step.is-pending .gf-wizard-step__dot {
  background: #cbc9c8;
}

.gf-wizard-step.is-active .gf-wizard-step__dot {
  background: #ffffff;
  border: 3px solid #c0363f;
}

.gf-wizard-step.is-completed .gf-wizard-step__dot {
  background: #ae0f0a;
}

.gf-wizard-step.is-completed .gf-wizard-step__tick {
  opacity: 1;
}

.gf-wizard-step__line {
  align-self: center;
  width: 100%;
  height: 2px;
  border-radius: 16px;
  background: #989694;
  opacity: 0.4;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.gf-wizard-step__line.is-completed {
  background: #ae0f0a;
  opacity: 1;
}

.gf-wizard-step__label-cell {
  display: flex;
  min-width: 0;
}

.gf-wizard-step__label {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: -0.02em;
  color: #989694;
  opacity: 0.6;
  white-space: normal;
}

.gf-wizard-step__label-cell.is-active .gf-wizard-step__label,
.gf-wizard-step__label.is-active {
  color: #c0363f;
  opacity: 1;
}

.gf-wizard-step__label-cell.is-completed .gf-wizard-step__label,
.gf-wizard-step__label.is-completed {
  color: #322f30;
  opacity: 1;
}

.gf-wizard-steps__empty {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: -0.01em;
  color: #767676;
}

.wizard-steps-stage-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wizard-steps-preview-state {
  margin-top: 8px;
}

.wizard-steps-stage-picker__button {
  appearance: none;
  border: 1px solid #d0cecc;
  border-radius: 999px;
  background: #ffffff;
  color: #322f30;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  position: relative;
  padding: 8px 12px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  z-index: 1;
}

.wizard-steps-stage-picker__button.is-active {
  background: #e4fcff;
  border-color: #066c6f;
  color: #066c6f;
}

.wizard-steps-stage-picker__button.is-completed {
  background: #ae0f0a;
  border-color: #ae0f0a;
  color: #ffffff;
}

.wizard-steps-stage-picker__button--complete {
  min-width: 100px;
}

[data-preview^="wizard_steps_"] [data-step-index] {
  cursor: pointer;
}

@media (max-width: 767px) {
  .gf-wizard-steps {
    margin-bottom: 24px;
  }

  .gf-wizard-steps__track,
  .gf-wizard-steps__labels {
    column-gap: 6px;
  }

  .gf-wizard-steps__track {
    column-gap: 10px;
  }

  .gf-wizard-steps__labels {
    column-gap: 6px;
  }

  .gf-wizard-step__label {
    font-size: 11px;
  }
}
