@import '../../themes/variables.scss';

.dry-checkbox {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  user-select: none;

  &--disabled {
    cursor: not-allowed;
    opacity: 0.6;
  }

  &--card {
    padding: 16px;
    align-self: stretch;
    border-radius: 12px;
    border: 2px solid var(--primary-600, #002b7a);
    background: var(--primary-50, #f0f5ff);
    justify-content: space-between;
  }

  &__input {
    width: 100%;
    height: 100%;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
    cursor: pointer;
  }

  &__style {
    width: 20px;
    height: 20px;
    display: flex;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid $subtle-border;
    transition: border-color $button-transition,
      background-color $button-transition;
    margin-right: 8px;
  }

  &__label-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: $font-02;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-left: 8px;
    z-index: 2;
    width: 80%;
  }

  &__text,
  &__sub-text,
  &__extra-text {
    font-family: $font-02;
    font-size: 14px;
    line-height: 20px;
  }

  &__extra-text {
    color: var(--primary-700, #00256b);

    &--left {
      margin-right: auto;
      order: -1;
    }

    &--right {
      margin-left: auto;
    }
  }

  &:hover .dry-checkbox__style,
  &:focus-within .dry-checkbox__style {
    border-color: var(--button-color, $button-color);
  }

  &.checked .dry-checkbox__style,
  &.indeterminate .dry-checkbox__style {
    border-color: var(--button-color, $button-color);
    background-color: var(--button-color, $button-color);
  }

  &:focus-within .dry-checkbox__style {
    outline: 5px solid var(--light-light-purple, $light-light-purple);
  }

  &.disabled .dry-checkbox__style {
    border-color: var(--disabled-foreground, $disabled-foreground);
    background-color: var(--disabled-background, $disabled-background);
  }

  them here &__sub-text:hover,
  &__extra-text:hover {
  }
}
