﻿/* ============ Form field radio ============ */
.form-field__radio-wrapper {
    display: block;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.form-field__radio-label {
    color: var(--dark-blue);
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    margin-bottom: 0;
    margin-left: 32px;
}

.form-field__radio-label--blocked {
    pointer-events: none;
}

/* Hide the browser's default radio */
.form-field__radio-wrapper .form-field__radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom radio */
.form-field__radio-wrapper .form-field__checkmark {
    background-color: var(--grey);
    border-radius: 50%;
    height: 24px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;

}

/* Create the checkmark/indicator (hidden when not checked) */
.form-field__radio-wrapper .form-field__checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.form-field__radio-wrapper input:checked ~ .form-field__checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.form-field__radio-wrapper .form-field__checkmark:after {
    background: var(--violet);
    border-radius: 50%;
    height: 18px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
}

/* Make the chosen label bold */
.form-field__radio-wrapper input:checked ~ .form-field__radio--text {
    font-weight: bold;
}