.mt-checkbox, .mt-radio{
  .weui-cell-checkbox >label > * {
     pointer-events: none;
  }
  &__input {
    opacity: 0;
    width: .2rem;
    &:disabled ~ .mt-icon-checked { opacity: .5; }
  }
  .weui-cell__hd {
    padding-right: .8em;
  }
  .mt-icon-checked{
    position: relative;
    right: 1em;
    &:after,&:before{
      content: ' ';
      display: block;
      width: .2rem; height: .2rem;
      position: absolute; left: 0;top: 0;
      box-sizing: border-box;
      transform: translateZ(0);
      transform-style: preserve-3d;
      backface-visibility:hidden;
      transition: .1s ease-in-out;
    }
    &:after{
  		border:1px solid #333;
    }
  }
  &_circle, &_circle-fill{
    .mt-icon-checked:after { border-radius: 999px; }
  }
  &_rect,&_rect-fill {
    .mt-icon-checked:after { border-radius: 0; }
  }
  &_circle-fill,&_rect-fill{
    .mt-icon-checked{
      right: 0;
      line-height: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      width: .2rem;
      height: .2rem;
      box-sizing: border-box;
    }
    .mt-checkbox__input, .mt-radio__input{
      position: absolute;
    }
    .weui-icon-success-no-circle{
      opacity: 0;
      display: block;
      color: #fff;
      line-height: 1;
      font-size: 0;
          position: relative;
    z-index: 10;
      &::before {
        font-size: 14px;
        margin: 0;
      }
    }
  }
  &_circle-fill .weui-icon-success-no-circle {
    border-radius: 100%;
  }
}


// checked style

.mt-checkbox_circle, .mt-radio_circle,.mt-checkbox_rect, .mt-radio_rect {
  .mt-checkbox__input:checked ~ .mt-icon-checked:after {
    border-top-style: none;
    border-right-style: none;
    border-radius: 0;
    transform: translateY(3px) rotateZ(-45deg);
    height: .6em;
    border-color: green;
    overflow: hidden;
  }
}

.mt-checkbox_circle-fill, .mt-radio_circle-fill {
  .mt-checkbox__input:checked ~ .mt-icon-checked > .weui-icon-success-no-circle {
    opacity: 1;
    color: #fff;
  }
  .mt-checkbox__input:checked ~ .mt-icon-checked:after {
    border-color: #09BB07;
    background-color: #09BB07;
  }
}

.mt-checkbox_rect-fill, .mt-radio_rect-fill {
  .mt-checkbox__input:checked ~ .mt-icon-checked > .weui-icon-success-no-circle {
    opacity: 1;
    color: #fff;
  }
  .mt-checkbox__input:checked ~ .mt-icon-checked:after {
    border-color: #09BB07;
    background-color: #09BB07;
  }
}
