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