@import '../../style/theme/default.less';

@checkbox-prefix-cls: ~'@{kui-prefix}-checkbox';

.@{checkbox-prefix-cls} {
  display: flex;
  align-items: center;
  cursor: pointer;

  &-btn {
    position: relative;
    width: 44px;
    height: 44px;
    vertical-align: middle;
    border: 2px solid rgba(222, 222, 222, 1);
    border-radius: 50%;
    transition: all 0.15s;
  }

  &-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 28px !important;
    color: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.15s;
    transform: translate(-50%, -50%);
  }

  &-label {
    display: block;
    flex: 1;
    margin-left: 36px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-size: 32px;
    font-weight: 400;
    color: rgba(51, 51, 51, 1);
  }

  &-checked &-btn {
    background-color: rgba(12, 193, 96, 1);
    border-color: rgba(12, 193, 96, 1);
  }

  &-checked &-icon {
    opacity: 1;
  }

  &-disabled {
    cursor: not-allowed;
  }

  &-disabled &-label {
    opacity: 0.5;
  }

  &-disabled &-btn {
    background: rgba(242, 242, 242, 1);
    border-color: rgba(222, 222, 222, 1);
  }

  &-disable&-checked &-btn {
    background: rgba(242, 242, 242, 1);
  }

  &-disabled&-checked &-icon {
    font-size: 24px !important;
    color: #ccc;
  }
}
