.Checkbox {
  $this: &;
  display: flex;
  position: relative;
  user-select: none;
  margin-top: 16px;

  &:first-child {
    margin-top: 0;
  }
  &__label {
    display: inline-flex;
    align-items: center;
    margin: 0;
  }

  &__custom-container {
    display: flex;
    position: relative;
  }

  &__text-label {
    margin-left: 8px;
    font-size: 14px;
    line-height: 14px;
    margin-top: 2px;
  }

  &__input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    height: 16px;
    width: 16px;
    z-index: 2;
  }

  &__custom {
    height: 16px;
    width: 16px;
    background: $color-white;
    border: 1px solid $color-gray-100;
    box-shadow: 0 2px 0 0 rgba(0, 0, 20, 0.04);
    border-radius: 4px;
    position: relative;
    z-index: 1;

    #{$this}__icon {
      margin: -1px 0 0 -1px;

      svg {
        fill: white;
      }
    }
    &--active {
      background: $color-indigo;
      border: 1px solid transparent;
    }
  }

  &__label:hover,
  #{$this}__label--selected {
    cursor: pointer;

    #{$this}__custom {
      background: $color-gray-140;
    }

    #{$this}__custom--active {
      background: $color-indigo-mid;
      border: 1px solid transparent;

      svg {
        fill: $color-white;
      }
    }

    #{$this}__icon svg {
      fill: $color-gray-80;
    }
  }

  &#{$this}--disabled {
    #{$this}__text-label {
      color: $color-gray-80;

      &:hover {
        cursor: not-allowed;
        resize: none;
      }
    }

    #{$this}__input:hover {
      cursor: not-allowed;
      resize: none;
    }

    &:hover #{$this}__custom {
      background: $color-gray-110;
      border-color: $color-gray-110;

      &--active {
        background: $color-gray-110;
        border-color: $color-gray-110;
      }
    }

    #{$this}__custom {
      background: $color-gray-110;
      border-color: $color-gray-110;
      box-shadow: none;

      svg {
        fill: $color-gray-110;
      }
    }

    #{$this}__custom--active {
      border-color: $color-gray-110;
      svg {
        fill: $color-gray-140;
      }
    }
  }
}
