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

$radioWidth: 20px;
$borderWidth: 5px;

.radio {
  width: $radioWidth;
  height: $radioWidth;
  border-radius: 100px;
  background: $white;
  border: 1px solid $gray50;
  display: flex;
  align-items: center;
  justify-content: center;

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

  &__checked {
    .radio {
      border-width: $borderWidth;
      border-color: var(--color);
    }
  }

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

      &__label {
        color: $gray60;
      }
    }
  }

  &-component {
    display: inline-flex;

    &::v-deep {
      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;
  }

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

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