.ty-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-family: Helvetica Neue For Number, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif;
  margin-right: 8px;
  color: rgba(0, 0, 0, 0.75); }
  .ty-checkbox:hover .ty-checkbox__inner {
    border-color: #6E41BF; }
  .ty-checkbox__native {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
    opacity: 0;
    margin: 0;
    padding: 0; }
  .ty-checkbox__inner {
    position: relative;
    box-sizing: border-box;
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    transition: 200ms; }
    .ty-checkbox__inner:before {
      content: '';
      position: absolute;
      display: block;
      border: 1px solid #fff;
      margin-top: -1px;
      left: 3px;
      right: 3px;
      top: 50%;
      transition: all 200ms;
      -webkit-transform: scale(0);
              transform: scale(0); }
    .ty-checkbox__inner:after {
      content: '';
      display: inline-block;
      border: 2px solid #fff;
      border-left: 0;
      border-top: 0;
      width: 4px;
      height: 8px;
      top: 1px;
      left: 4px;
      position: absolute;
      -webkit-transform: rotate(45deg) scale(0);
              transform: rotate(45deg) scale(0);
      transition: all 200ms;
      -webkit-transform-origin: center;
              transform-origin: center; }
    .ty-checkbox__inner + span {
      padding: 0 5px;
      line-height: 16px; }
  .ty-checkbox_checked .ty-checkbox__inner {
    background-color: #6E41BF;
    border-color: #6E41BF; }
    .ty-checkbox_checked .ty-checkbox__inner:after {
      -webkit-transform: rotate(45deg) scale(1);
              transform: rotate(45deg) scale(1); }
    .ty-checkbox_checked .ty-checkbox__inner:before {
      -webkit-transform: scale(0);
              transform: scale(0); }
  .ty-checkbox_indeterminate .ty-checkbox__inner {
    background-color: #6E41BF;
    border-color: #6E41BF; }
    .ty-checkbox_indeterminate .ty-checkbox__inner:before {
      -webkit-transform: scale(1);
              transform: scale(1); }
    .ty-checkbox_indeterminate .ty-checkbox__inner:after {
      -webkit-transform: rotate(45deg) scale(0);
              transform: rotate(45deg) scale(0); }
  .ty-checkbox_disabled .ty-checkbox__native {
    cursor: not-allowed; }
  .ty-checkbox_disabled .ty-checkbox__inner {
    background-color: #f5f5f5;
    border-color: #d9d9d9 !important; }
    .ty-checkbox_disabled .ty-checkbox__inner:after {
      border-color: rgba(0, 0, 0, 0.25); }
    .ty-checkbox_disabled .ty-checkbox__inner + span {
      color: rgba(0, 0, 0, 0.25); }
