﻿.checkbox-field {
    display: flex;
    align-items: center;
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
    color: #111;
}

/* Wrapper keeps label clickable */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    gap: 0.5rem;
    padding:0.2rem;
    user-select: none;
}

    /* Hide native checkbox but keep accessibility */
    .checkbox-wrapper input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

/* Custom box */
.checkmark {
    display: inline-block;
    width: 1.3rem;
    aspect-ratio: 1;
    border: 2px solid #111;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"] + .checkmark {
    background-color: #fff;
    border-color: #111;
}

/* When checked */
.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background-color: #f13e3e;
    border-color: #f13e3e;
    background-image: url('images/Wrench.svg'); 
    background-size: 1.1rem;
    background-repeat: no-repeat;
    background-position: center;
}
/* Hover / focus state */
.checkbox-wrapper:hover .checkmark {
    border-color: #f13e3e;
}

.checkbox-wrapper input[type="checkbox"]:focus + .checkmark {
    outline: 2px solid #f13e3e;
    outline-offset: 2px;
}

/* Label text */
.checkbox-wrapper .label-text {
    color: #222;

}
