.es-checkbox {
  height: 22px;
  line-height:22px;
  -webkit-user-select:none;
	-moz-user-select:none;
	-o-user-select:none;
  user-select:none;
  cursor: pointer;
  &.is-disabled {
    cursor: not-allowed;
  }
  &:hover{
    .es-checkbox__label{
      border-color: #1B9DDE;
    }
    .es-checkbox__label.is-disabled{
      border-color: #E4E7EC;
    }
  }
  &__label {
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    border: 1px solid #E4E7EC;
    box-sizing: border-box;
    border-radius: 2px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    &::after{
      content: '';
      position: absolute;
      width: 1px;
      height: 9px;
      left: 8px;
      top: 3px;
      background: #FFFFFF;
      border-radius: 1px;
      transform: rotate(42deg) scaleY(0);
      transition: transform .15s ease-in .05s;
      transform-origin: center;
    }
    &::before {
      content: '';
      position: absolute;
      width: 1px;
      height: 4px;
      left: 4px;
      top: 7px;
      background: #FFFFFF;
      border-radius: 1px;
      transform: matrix(-0.74, 0.67, 0.67, 0.74, 0, 0) scaleY(0);
      transition: transform .15s ease-in .05s;
      transform-origin: center;
    }
    &.is-checked {
      background: #148DD2;
      border: 0;
      &::before{
        transform: matrix(-0.74, 0.67, 0.67, 0.74, 0, 0) scaleY(1);
      }
      &::after {
        transform: rotate(42deg) scaleY(1);
      }
    }
    &.is-disabled{
      background: #F5F7FA;
      border: 1px solid #E4E7EC;
      & ~ span.es-checkbox__name {
        color: #A3A9B3
      }
    }
    &.is-checked.is-disabled {
      &::before{
        background: #A3A9B3;
        transform: matrix(-0.74, 0.67, 0.67, 0.74, 0, 0) scaleY(1);
      }
      &::after {
        background: #A3A9B3;
        transform: rotate(42deg) scaleY(1);
      }
    }
  }
  &__value {
    opacity: 0;
    outline: none;
    position: absolute;
    margin: 0;
    width: 0;
    height: 0;
    z-index: -1;
  }
  &__name {
    height: 22px;
    color: #515C70;
    font-family: PingFangSC;
    font-size: 14px;
    line-height: 22px;
    margin-left: 8px;
    vertical-align: middle;
  }
}
