/* Wizard Steps Container */
.wizard-steps-container {
  display: grid;
  grid: 1fr / auto-flow auto;
  box-shadow: 0 2px 4px 0 #e9e9eb;
  width: 1260px;
  margin: 20px auto;
  position: relative;
}

/* Wizard Step Link */
.wizard-step-link {
  -webkit-tap-highlight-color: transparent;
  display: grid;
  grid: 1fr / 34px auto 34px;
  align-items: center;
  position: relative;
  border: 1px solid #b5b5b9;
  border-width: 1px 0;
  background: #f6f6f7;
  text-decoration: none !important;
}

/* First and Last Child Styling */
.wizard-step-link:first-child {
  border-radius: 4px 0 0 4px;
  border-width: 1px 0 1px 1px;
  grid: 1fr / auto 34px;
}

.wizard-step-link:last-child {
  border-radius: 0 4px 4px 0;
  border-width: 1px 1px 1px 0;
  grid: 1fr / 34px auto;
}

/* Arrow Styling */
.wizard-step-link:not(:first-child):before,
.wizard-step-link:not(:last-child):after {
  display: block;
  content: '';
  border: 34px solid transparent;
  border-right-width: 0;
}

.wizard-step-link:not(:first-child):before {
  border-left-color: #b5b5b9;
}

.wizard-step-link:not(:last-child):after {
  transform: translateX(33px);
  border-left-color: #f6f6f7;
  z-index: 1;
}

/* Step Link Text */
.wizard-step-link span {
  padding: 0 20px 0 30px;
  line-height: 1.2rem;
  color: #5b5b61;
}

.wizard-step-link span:first-line {
  font-weight: 700;
  font-size: 0.85rem;
  color: #1d1d1f;
}

/* Active Step */
.wizard-step-link-axiom.active {
  background: var(--axiom-primary);
}

.wizard-step-link-linktek.active {
  background: var(--linktek-primary);
}

.wizard-step-link.active span,
.wizard-step-link.active span:first-line {
  color: white;
}

.wizard-step-link.active:not(:first-child):before {
  border-left-color: #f6f6f7;
}

.wizard-step-link-axiom.active:not(:last-child):after {
  border-left-color: var(--axiom-primary);
}

.wizard-step-link-linktek.active:not(:last-child):after {
  border-left-color: var(--linktek-primary);
}

.wizard-step-link-axiom.active + .wizard-step-link:not(:first-child):before {
  border-left-color: var(--axiom-primary);
}

.wizard-step-link-linktek.active + .wizard-step-link:not(:first-child):before {
  border-left-color: var(--linktek-primary);
}

/* Disabled Step */
.wizard-step-link.disabled {
  cursor: not-allowed;
}

.wizard-step-link.disabled span,
.wizard-step-link.disabled span:first-line {
  color: #b5b5b9;
}

/* Hover Effects */
.wizard-step-link:not(.active):not(.disabled):hover {
  background: #e9e9eb;
}

.wizard-step-link:not(.active):not(.disabled):hover span:first-line {
  color: #1d1d1f;
}

.wizard-step-link:not(.active):not(.disabled):hover:not(:last-child):after,
.wizard-step-link:not(.active):not(.disabled):hover:not(:first-child):before {
  border-left-color: #e9e9eb;
}

.wizard-step-link:not(.active):hover + .wizard-step-link.active:not(:first-child):before {
  border-left-color: #e9e9eb;
}

.wizard-step-link-axiom.active + .wizard-step-link:not(.active):hover:not(:first-child):before {
  border-left-color: var(--axiom-primary);
}

.wizard-step-link-linktek.active + .wizard-step-link:not(.active):hover:not(:first-child):before {
  border-left-color: var(--linktek-primary);
}
