.valid-wraper {
  border: 1px solid #ddd;
  padding: 10px 10px 0;
  text-align: center;
  box-sizing: border-box;
  background: #fff;
  position: relative;
  &-cross-text {
    line-height: 150px;
    text-align: center;
    position: relative;
    font-size: 14px;
    color: #67c23a;
    display: none;
    > span {
      vertical-align: -10px;
      color: #67c23a;
    }
    i {
      position: absolute;
      top: 30px;
      left: 50%;
      font-size: 40px;
      transform: translateX(-50%);
    }
  }

  .canvas-container {
    position: relative;
    overflow: hidden;
    .canvas {
      display: block;
    }
    .block {
      position: absolute;
      height: 40px;
      width: 40px;
      left: 0;
      top: 0;
      box-shadow: 4px 4px 10px rgba($color: #000000, $alpha: 0.3);
    }
    .canvas-text {
      position: absolute;
      bottom: -20px;
      color: #fff;
      left: 0;
      right: 0;
      width: 100%;
      line-height: 20px;
      text-align: left;
      padding: 0 20px;
      font-size: 13px;
      box-sizing: border-box;
    }
  }
  .success-mask {
    z-index: 10000;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba($color: #000, $alpha: 0.3);
    .success-mask-text {
      color: #fff;
      font-size: 24px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }

  .sliderContainer {
    position: relative;
    height: 40px;
    background: #dfe1e2;
    margin-top: 15px;
    border-radius: 20px;
    box-sizing: border-box;
    border: 1px solid #d4d6d8;
    &.sliderContainer_active {
      background-color: #52ccba;
    }
    .text {
      font-size: 14px;
      color: grey;
      line-height: 40px;
      height: inherit;
      text-align: center;
      user-select: none;
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      z-index: 10;
    }
    .slider {
      width: 54px;
      height: 54px;
      background-color: #fff;
      position: absolute;
      // left: 0;
      top: 50%;
      margin-top: -27px;
      z-index: 1000;
      border-radius: 50%;
      border: 1px solid #d4d6d8;
      // box-shadow: 0 0  10px rgba($color: #000000, $alpha:0.3);
      margin-left: -5px; // 不会影响拖动距离
      text-align: center;
      line-height: 54px;
      > span {
        font-size: 20px;
        color: #63c903;
      }
    }

    .mask {
      position: absolute;
      width: 0;
      height: inherit;
      background-color: #66ccff;
      z-index: 100;
    }
  }

  .action-bar {
    border-top: 1px solid #eee;
    margin: 15px -10px 0;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid #eee;
    color: #7e7e7e;
    box-sizing: border-box;
    &-item {
      float: left;
      cursor: pointer;
      height: 40px;
      line-height: 40px;
      width: 40px;
      font-size: 22px;
      position: relative;
      // &:hover .tooltip{
      //   display: block;
      // }
    }
  }
}

.tooltip {
  position: absolute;
  top: -25px;
  height: 20px;
  left: 50%;
  padding: 0 5px;
  line-height: 20px;
  color: #fff;
  background: #333;
  display: none;
  white-space: nowrap;
  font-size: 12px;
  z-index: 1000;
  &::before {
    content: "";
    display: block;
    position: absolute;
    bottom: -5px;
    left: 0;
    border-width: 5px;
    border-color: transparent transparent transparent #333;
    border-style: solid;
  }
}

#el {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  // display: none;
}
