@import '../variables/default.scss';
@import '../mixins/index.scss';

$component: '.at-checkbox';

#{$component} {
  display: inline-flex;
  align-items: center;

  &__title {
    display: inline-flex;
    color: $at-checkbox-title-color;
    font-size: $at-checkbox-title-font-size;
    line-height: $line-height-zh;
    text-align: left;
  }

  &__icon-cnt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: $spacing-h-lg;
    flex: 0 0 $at-checkbox-circle-size;
    height: $at-checkbox-circle-size;
    width: $at-checkbox-circle-size;
    color: transparent;
    font-size: $at-checkbox-icon-size;
    line-height: 1;
    border: 2px solid $color-grey-3;
    border-radius: $border-radius-circle;
    background-color: $color-bg;
    box-sizing: border-box;
    transition: all 0.2s;
  }

  &--disabled {
    opacity: $opacity-disabled;
  }

  &--selected {
    #{$component}__icon-cnt {
      color: $at-checkbox-icon-color-checked;
      border: none;
      background-color: $at-checkbox-icon-color;
    }
  }
}

#{$component}-tag {
  color: $color-black-1;

  &.at-tag--large {
    padding: 8px $spacing-h-lg;
    min-height: 54px;
    line-height: 30px;
  }

  &#{$component}-tag--disabled {
    opacity: $opacity-disabled;
  }

  &:not(:last-child) {
    margin-right: $spacing-h-lg;
  }
}
