@import "./../../../style-config/colors";

.multi-step-wizard-step {
  display: table;
  margin-bottom: 10px;
}

.multi-step-wizard-step--disabled {
  pointer-events: none;
  opacity: 0.5;
}

.multi-step-wizard-step__button {
  margin-top: 10px;
  margin-right: 10px;
}

.multi-step-wizard-step__button:first-child {
  background-color: $blue;
  border-color: $blue;
  color: $white;
}

.multi-step-wizard-step--indicator {
  display: table-cell;
  vertical-align: top;
}

.multi-step-wizard-step__indicator-bar {
  @extend .multi-step-wizard-step--indicator;

  &.pending {
    background-color: $grey-dark-blue-20;

    .multi-step-wizard-step__indicator-background {
      background-color: $grey-dark-blue-20;
    }
  }

  &.processed {
    background-color: $green-bright-dull;

    .multi-step-wizard-step__indicator-background {
      background-color: $green-bright-dull;
    }
  }
}

.multi-step-wizard-step__indicator-background {
  height: 100%;
  display: inline-block;
  width: 2px;
}

.multi-step-wizard-step__indicator-icon {
  @extend .multi-step-wizard-step--indicator;
}

.multi-step-wizard-step__indicator-placeholder {
  display: inline-block;
  width: 26px;
  height: 36px;
  margin-left: -14px;
  background-color: $white;
}

.multi-step-wizard-step__indicator-icon__content {
  border-radius: 50%;
  display: block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: $white;
  vertical-align: middle;
}

.multi-step-wizard-step__indicator-icon__content.pending {
  background-color: $orange-mid;
}

.multi-step-wizard-step__indicator-icon__content.processed {
  background-color: $green-bright-dull;
}

.multi-step-wizard-step__white-tick {
  vertical-align: middle;
  padding: 0px;
}

.multi-step-wizard-step__content {
  display: table-cell;
  padding-left: 30px;
  padding-top: 5px;
  padding-bottom: 40px;
  width: 100%;
}

.multi-step-wizard-step-final .multi-step-wizard-step__indicator-bar {
  background-color: transparent;

  .multi-step-wizard-step__indicator-background { background-color: transparent; }
}

.multi-step-wizard-step--processed--disabled .multi-step-wizard-step__button {
  background-color: $grey-dark-blue-20;
  color: $grey-dark-blue-50;
  border-color: $grey-dark-blue-20;
}

.multi-step-wizard-step--pending--disabled .multi-step-wizard-step__indicator-icon__content.pending {
  background-color: $grey-dark-blue-30;
}

.multi-step-wizard-step--processed input {
  pointer-events: none;
  background-color: $grey-dark-blue-10;
}
