@import '../../_widgetsCommon.scss';
.bolt-radio-button {
    align-items: center;
    color: $primary-text;
    display: inline-flex;
    border-radius: 2px;

    &:focus {
        outline: none;
    }

    &:not(.labelled) {
        border-radius: 50%;
        margin: 2px;
        height: 16px;
        width: 16px;
        justify-content: center;
    }
}

.bolt-radio-button.disabled {
    cursor: default;
    color: $disabled-text;

    @media screen and (-ms-high-contrast: active) {
        color: grayText;
    }
}

.bolt-radio-button.labelled {
    padding: 3px 4px 3px 3px;
}

.bolt-radio-button-label {
    padding-left: 10px;
    display: flex;
    flex-direction: column;
}

.bolt-radio-button-icon {
    border: 1px solid $secondary-text;
    border-radius: 50%;
    height: 16px;
    transition: 80ms border-color linear;
    width: 16px;
    min-width: 16px;
}

.bolt-radio-button.checked .bolt-radio-button-icon {
    border-color: $communication-background;
    border-width: 2px;
}

.bolt-radio-button.disabled .bolt-radio-button-icon {
    border-color: $neutral-20;
}

.bolt-radio-button-bullet {
    background-color: transparent;
    border: 1px solid $white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin-left: 1px;
    margin-top: 1px;
    transform: scale(0.1);
}

.bolt-radio-button.checked .bolt-radio-button-bullet {
    background-color: $communication-background;
    margin-left: 0px;
    margin-top: 0px;
    transition: transform 80ms ease-out, background 80ms linear;
    transform: scale(1);

    @media screen and (-ms-high-contrast: active) {
        background-color: windowtext;
    }
}

.bolt-radio-button.checked.disabled .bolt-radio-button-bullet {
    background-color: $neutral-20;
}

.bolt-focus-visible .bolt-radio-button.bolt-focus-treatment:not(.labelled):focus {
    border-radius: 50%;

    .bolt-radio-button-icon {
        border-color: $communication-background;
    }

    &.checked .bolt-radio-button-icon {
        border-width: 1px;
        box-shadow: 0 0 0 1px $white;
        width: 14px;
        height: 14px;
    }

    @media screen and (-ms-high-contrast: active) {
        border-radius: 0;
    }
}

.bolt-focus-visible .bolt-radio-button.bolt-focus-treatment:focus {
    @include box-shadow-focus-rect();

    @media screen and (-ms-high-contrast: active) {
        border: 1px solid windowtext;
    }
}

.bolt-radio-button-group-text {
    padding-left: 3px;
}