.checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: calc(var(--spacing-unit) * 2);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: calc(var(--spacing-unit) * 2);
  user-select: none;
  cursor: pointer;

  &:has(.checkbox__input[data-focus-visible="true"]) {
    outline: 1px solid var(--primary);
    outline-offset: 2px;
    border-radius: calc(var(--spacing-unit) * 2);
  }

  &--block {
    width: 100%;
    border-radius: calc(var(--spacing-unit) * 2);
    transition: background-color 0.2s ease-in-out;

    &:hover {
      background-color: var(--secondary);
    }

    &:has(.checkbox__input[data-focus-visible="true"]) {
      background-color: var(--secondary);
    }
  }

  &--disabled {
    opacity: 0.5;
    pointer-events: none;
  }

  &__native-input {
    appearance: none;
  }

  &__input {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid var(--primary);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
    outline: none;

    &--checked {
      background-color: var(--primary);
    }

    &__icon {
      color: var(--background);
    }
  }

  &__copy {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    color: var(--text);
  }

  &__label,
  &__label-primary,
  &__label-secondary {
    min-width: 0;
  }

  &__label {
    cursor: pointer;
  }

  &__label-primary {
    color: var(--text);
    font-family: var(--font-space-grotesk), sans-serif;
    font-size: 14px;
    line-height: 1.4;
  }

  &__label-secondary {
    color: var(--text);
    opacity: 0.5;
    font-family: var(--font-space-grotesk), sans-serif;
    font-size: 14px;
    line-height: 1.4;
  }
}
