.tn-checkbox {
  /* #ifndef APP-NVUE */
  display: inline-flex;
  /* #endif */
  align-items: center;
  overflow: hidden;
  user-select: none;
  line-height: 1.8;

  &__icon-wrap {
    color: $tn-font-color;
    flex: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 42rpx;
    height: 42rpx;
    color: transparent;
    text-align: center;
    transition-property: color, border-color, background-color;
    border: 1px solid $tn-font-sub-color;
    transition-duration: 0.2s;

    /* #ifdef MP-TOUTIAO */
    // 头条小程序兼容性问题，需要设置行高为0，否则图标偏下
    &__icon {
      line-height: 0;
    }

    /* #endif */

    &--circle {
      border-radius: 100%;
    }

    &--square {
      border-radius: 6rpx;
    }

    &--checked {
      color: #FFFFFF;
      background-color: $tn-main-color;
      border-color: $tn-main-color;
    }

    &--disabled {
      background-color: $tn-font-holder-color;
      border-color: $tn-font-sub-color;
    }

    &--disabled--checked {
      color: $tn-font-sub-color  !important;
    }
  }

  &__label {
    word-wrap: break-word;
    margin-left: 10rpx;
    margin-right: 24rpx;
    color: $tn-font-color;
    font-size: 30rpx;

    &--disabled {
      color: $tn-font-sub-color;
    }
  }
}