@import "../../less/global-variable.less";
.cess-steps {
  display: flex;
  padding-bottom: @gap-large;
  &.cess-steps-line {
    border-bottom: 1px solid @color-divider;
  }
}

.cess-step {
  display: flex;
  &.navigation {
    flex: 1;
    &.cess-step-active {
      .cess-step-line {
        .icon {
          background-color: @color-primary;
        }
      }
    }
    .cess-step-line {
      width: 100%;
      position: relative;
      text-align: center;
      font-size: 12px;
      .icon {
        background-color: @color-secondary;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        margin: 0 auto;
        position: relative;
        bottom: -5px;
      }
    }
    &:first-of-type {
        width: 9px;
      .cess-step-line {
        text-align: left;
        .icon {
          margin-left: 0;
        }
      }
    }
    &:last-of-type {
      .cess-step-line {
        text-align: right;
        .icon {
          margin-right: 0;
        }
      }
    }
  }
  &.default {
    &.cess-step-active {
      .cess-step-icon {
        background-color: @color-primary;
      }

      .cess-steps-item-title {
        color: @color-primary;
      }
    }
    .cess-step-icon {
      width: 24px;
      height: 24px;
      background-color: @color-secondary;
      border-radius: 50%;
      text-align: center;
      line-height: @height-large;
      color: #ffffff;
      font-size: @font-size-small;
    }

    .cess-steps-item-title {
      margin-left: 8px;
      font-size: @font-size-normal;
      color: @color-secondary;
    }

    .cess-step-right {
      margin: 0 @gap-normal;
    }

    &:nth-last-of-type(1) {
      .cess-step-right:nth-last-of-type(1) {
        display: none;
      }
    }
  }
}
