@import "common/dao-color.scss";
.dao-steps {
  display: flex;
  &-sidebar {
    flex-shrink: 0;
    width: 200px;
    margin-right: 20px;
  }
  &-content {
    width: 100%;
  }
  .dao-step {
    &:last-child .dao-substep:last-child:after {
      display: none;
    }
  }
  .title {
    color: $grey-light;
    display: inline-block;
    top: 1px;
    position: relative;
  }
  .dao-step-title,
  .dao-substep {
    padding: 8px 0;
    font-size: 14px;
    line-height: 66px;
    position: relative;
    &:after {
      content: "";
      display: block;
      width: 2px;
      background-color: rgba(204, 209, 216, 0.5);
      position: absolute;
      top: 60%;
      bottom: -40%;
      left: 19px;
    }
  }
  .dao-step-title {
    &:after {
      top: 74%;
    }
  }
  .dao-substep:last-child:after {
    bottom: -32%;
  }
  &:not(.noClick) {
    .dao-step:not(.noClick):not(.noActive) .dao-substep:not(.noClick):not(.noActive) {
      cursor: pointer;
      &:hover {
        .title {
          color: $grey-dark;
        }
      }
    }
  }
  .caret {
    display: inline-block;
    margin-right: 10px;
    width: $--steps-adv-caret-wl;
    height: $--steps-adv-caret-wl;
    color: white;
    text-align: center;
    line-height: $--steps-adv-caret-wl;
    font-size: $--steps-adv-font-size;
    border-radius: 50%;
    background-color: $grey-light;
  }
  .dot {
    display: inline-block;
    margin-right: 10px;
    width: $--steps-adv-caret-wl;
    height: $--steps-adv-caret-wl;
    text-align: center;
    &:before {
      display: inline-block;
      content: '';
      width: $--steps-adv-caret-wls;
      height: $--steps-adv-caret-wls;
      border: solid 1px $grey-light;
      border-radius: 50%;
    }
  }
  .visited,
  .active {
    &.dao-step .dao-step-title {
      .caret {
        background-color: $blue;
      }
      .title {
        color: $grey-dark;
      }
      &:after {
        background-color: $blue;
      }
    }
  }
  .visited {
    &.dao-substep {
      &:after {
        background-color: $blue;
      }
    }
    &.dao-substep {
      .title {
        color: $black-light;
      }
      &:after {
        top: 40%;
      }
      .dot {
        visibility: hidden;
      }
    }
  }
  .active {
    &.dao-substep {
      .title {
        color: $blue;
      }
      &:after {
        top: 60%;
      }
      .dot {
        visibility: visible;
        &:before {
          background-color: $blue;
          border-color: transparent;
        }
      }
    }
  }
  .dao-step.noActive .dao-substep .title,
  .dao-step .dao-substep.noActive .title {
    color: $grey-light;
    cursor: not-allowed;
  }
}
