
:root
{
        --radio-width: 18px;
}

/* The radio-container */
.radio-container
{
        display: block;
        position: relative;
        /*padding-left: 35px;*/
        padding-left: var(--radio-width);
        cursor: pointer;
        /*font-size: 22px;*/
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
}

.form-input-row .radio-container
{
        margin-right: 0.35rem;
}
/* Hide the browser's default radio button */
.radio-container input
{
        position: absolute;
        opacity: 0;
        cursor: pointer;
/*        height: 0;
        width: 0;*/
        left: 0;
        height: var(--radio-width);
        width: var(--radio-width);
        z-index: 1;
}

/* Create a custom radio button */
.radio-container .checkmark
{
        position: absolute;
        top: 0;
        left: 0;
/*        height: 25px;
        width: 25px;
        background-color: #eee;*/
        height: var(--radio-width);
        width: var(--radio-width);
        background-color: white;
        border-radius: 50%;
        border: solid 1px var(--color-gray);
}

/* On mouse-over, add a grey background color */
.radio-container:hover input ~ .checkmark
{
        background-color: var(--color-gray-clear);
}

/* When the radio button is checked, add a blue background */
.radio-container input:checked ~ .checkmark
{
        background-color: var(--color-blue-electric);
        border-color: var(--color-blue-electric);
}

.radio-container:hover input:checked ~ .checkmark
{
        filter: brightness(1.05);
}
.radio-container input:focus  ~ .checkmark
{
        box-shadow: var(--focus-box-shadow);
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.radio-container .checkmark:after
{
        content: "";
        position: absolute;
        display: none;
}

/* Show the indicator (dot/circle) when checked */
.radio-container input:checked ~ .checkmark:after
{
        display: block;
}

/* Style the indicator (dot/circle) */
.radio-container .checkmark:after
{
 	top: 6px;
	left: 6px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--color-gray-dark);
}
