@import "../../../assets/scss/main";


.checkbox {
  border: 1px solid $gray50;
  height: 20px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;

  &:hover {
    border-color: $gray70;
  }

  &__wrapper {
    display: flex;

    &.checkbox {
      &__checked {
        .checkbox {
          border: none;
          background: var(--color);

          &:hover {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.12) 100%), var(--color) !important;
          }
        }
      }

      &__small {
        .checkbox {
          width: 16px;
          height: 16px;

          &__label {
            @include text;
            margin-left: 6px;
          }
        }
      }

      &__disabled {
        .checkbox {
          border-color: $gray40;

          &__label {
            color: $gray60;
          }
        }
      }

      &__withError {
        .checkbox {
          border-color: $warning;
        }
      }
    }

    &::v-deep {
      .checkbox-component {
        display: inline-flex;

        input {
          z-index: -1;
        }

        label {
          display: flex;
          align-items: center;
          opacity: 1 !important;
        }
      }
    }
  }

  &__label {
    margin-left: 8px;
    @include headline;
    font-weight: $regular;
    color: $gray1000;
    user-select: none;
  }
}
