@import "./var.less";

.step-btn__link {
  display: inline-block;
  color: @btnBgColor;
  cursor: pointer;

  & + &, & + .step-btn {
    margin-left: 15px;
  }

  &:hover {
    text-decoration: underline;
  }
}

.step-btn {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: @white;
  border: 1px solid @borderColor;
  color: @black;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  margin: 0;
  transition: .1s;
  font-weight: 500;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 4px;

  &.step-btn__small {
    padding: 6px 10px;
    font-size: 12px;
  }

  &:hover, &:active {
    color: #409eff;
    border-color: #c6e2ff;
    background-color: #ecf5ff;
  }

  & + &, & + .step-btn__link {
    margin-left: 15px;
  }

  &.step-btn__main {
    background: @btnBgColor;
    color: @white;
    border-color: @btnBgColor;

    &:hover, &:active {
      background: #66b1ff;
      border-color: #66b1ff;
      color: @white;
    }
  }
}

.step-edit__textarea {
  resize: none;
  width: 100%;
  height: 150px;
  padding: 0 5px;
  outline: none;
  border: 1px solid @borderColor;
}

.step-edit__input {
  width: 100%;
  height: @height;
  padding: 0 5px;
  line-height: 34px;
  outline: none;
  border: 1px solid @borderColor;
}


.step-switch {
  margin: 0;
  display: inline-block;
  position: relative;
  width: 40px;
  height: 20px;
  border: 1px solid #dcdfe6;
  outline: none;
  border-radius: 10px;
  box-sizing: border-box;
  background: #dcdfe6;
  cursor: pointer;
  transition: border-color .3s, background-color .3s;
  vertical-align: middle;

  &.active {
    border-color: @mianColor;
    background-color: @mianColor;

    &:after {
      left: 100%;
      margin-left: -17px;
    }
  }

  &:after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    border-radius: 100%;
    transition: all .3s;
    width: 16px;
    height: 16px;
    background-color: @white;
  }
}

.step-radio {
  display: inline-flex;
  align-items: center;
  height: 16px;
  cursor: pointer;
  font-weight: normal;

  & + & {
    margin-left: 15px;
  }

  .step-radio__input {
    width: 16px;
    height: 16px;
    border: 1px solid @borderColor;
    border-radius: 50%;
    overflow: hidden;
    position: relative;

    &:hover {
      border: 1px solid @mianColor;
    }

    &::after {
      width: 4px;
      height: 4px;
      border-radius: 100%;
      background-color: @white;
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%) scale(0);
      transition: transform .15s ease-in;
    }
  }

  &.active {
    .step-radio__input {
      background: @mianColor;

      &::after {
        transform: translate(-50%, -50%) scale(1);
      }
    }

    .step-radio__label {
      color: @mianColor;
    }
  }


  .step-radio__label {
    margin-left: 5px;
    font-size: 14px;
  }
}
