@import 'common/var';

$step-item-height: 40px;
$step-preview-min-height: 450px;

$prefix: rf-el;

.#{$prefix}-steps {
  overflow: hidden;
  width: 100%;
  margin-bottom: 24px;
  line-height: 1.5;
  font-size: 0;
  display: flex;
  box-sizing: border-box;
  .steps-item {
    margin: 0 10px;
    box-sizing: border-box;
    // 箭头
    .steps-step {
      moz-user-select: -moz-none;
      -moz-user-select: none;
      -o-user-select: none;
      -khtml-user-select: none;
      -webkit-user-select: none;
      -ms-user-select: none;
      user-select: none;
      position: relative;
      height: $step-item-height;
      line-height: $step-item-height;
      font-size: 14px;
      background: $--background-color-base;
      color: $--color-text-primary;
      text-align: center;
      padding: 0 10px;
      &::after {
        content: ' ';
        display: block;
        width: 0;
        height: 0;
        border-top: 24px solid transparent;
        border-bottom: 24px solid transparent;
        border-left: 12px solid $--background-color-base;
        position: absolute;
        top: 50%;
        margin-top: -24px;
        right: -10px;
      }

      &::before {
        content: ' ';
        display: block;
        width: 0;
        height: 0;
        border-top: 24px solid $--background-color-base;
        border-bottom: 24px solid $--background-color-base;
        border-left: 12px solid transparent;
        position: absolute;
        top: 50%;
        margin-top: -24px;
        left: -12px;
      }
    }
    &.is-clicked {
      cursor: pointer;
    }

    &:first-child {
      // padding-left: 0;

      .steps-step {
        &::before {
          // display: none;
        }
      }
    }

    &:last-child {
      // padding-right: 0;

      // .steps-step {
      //   &::after {
      //     display: none;
      //   }
      // }
    }

    &.is-finish {
      .steps-step {
        background: $--color-primary;
        color: #fff;

        &::after {
          border-left-color: $--color-primary;
        }

        &::before {
          border-top-color: $--color-primary;
          border-bottom-color: $--color-primary;
        }
        &:hover {
          background: $--color-primary-light-1;
          &::after {
            border-left-color: $--color-primary-light-1;
          }

          &::before {
            border-top-color: $--color-primary-light-1;
            border-bottom-color: $--color-primary-light-1;
          }
        }

        &:active {
          background: $--color-primary;

          &::after {
            border-left-color: $--color-primary;
          }

          &::before {
            border-top-color: $--color-primary;
            border-bottom-color: $--color-primary;
          }
        }
      }
    }
  }
}

.#{$prefix}-steps-content {
  width: 100%;
  padding-bottom: 100px;
  font-size: 20px;
  // min-height: 450px;
  position: relative;
  .setting {
    width: 100%;
    padding-bottom: 100px;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    > div {
      flex: 1;
    }
  }
}
.#{$prefix}-button-group {
  height: 64px;
  position: absolute;
  display: flex;
  z-index: 999;
  align-items: center;
  justify-content: center;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0px -1px 3px 0px rgba(220, 223, 230, 1),
    0px 1px 0px 0px rgba(220, 223, 230, 1);
  @media screen and (max-width: 992px) {
    position: fixed !important;
  }
}
