/* ---------- CHECBOX BUTTONS CSS ---------- */
.checkbox-button[type="checkbox"]:checked,
.checkbox-button[type="checkbox"]:not(:checked){
    position: absolute;
    left: 0;
    width: 0;
    height: 0;
    visibility: hidden;
}

.checkbox-button:checked + label,
.checkbox-button:not(:checked) + label{
    position: relative;
    /*display: flex;*/
    padding: 1rem;
    letter-spacing: 0.05rem;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    /*text-transform: uppercase;*/
    color: #fff;
    font-weight: bold;
    -webkit-transition: all 300ms linear;
    transition: all 100ms linear; 
}

.checkbox-button.smaller:checked + label.smaller,
.checkbox-button.smaller:not(:checked) + label.smaller{
    padding: 0.5rem 1rem;
    letter-spacing: 0.1rem;
    align-self: center;
    text-transform: capitalize;
}

.checkbox-button:checked + label:not(:last-child),
.checkbox-button:not(:checked) + label:not(:last-child){
    margin-right: 0.4rem;
}

.checkbox-button-label-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

@media (max-width: 420px) {
    .checkbox-button-label-wrapper {
        display: flex;
        flex-direction: column;
    }
    .checkbox-button:checked + label,
    .checkbox-button:not(:checked) + label{
        width: 100%;
    }

    .checkbox-button:checked + label:not(:last-child),
    .checkbox-button:not(:checked) + label:not(:last-child){
        margin-bottom: 0.4rem;
        margin-right: 0;
    }
}

.checkbox-button:not(:checked) + label {
    background: #f4f2f2;
    color: #5d5d5e;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}
.checkbox-button:checked + label {
    background-color: transparent;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    z-index: 0;
}
.checkbox-button:not(:checked) + label:hover {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.checkbox-button:checked + label:hover{
    opacity: 0.75;
}

.checkbox-button:checked + label::before,
.checkbox-button:not(:checked) + label::before{
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(-45deg, #ffc74c, #fab519);
    z-index: -1;
}

.checkbox-button-group-label {
    font-weight: 500;
    color: #2b335e;
    margin-bottom: 0.5rem;
}
/* Erreur highlight */
.checkbox-buttons-group.error label {
    background: linear-gradient(315deg, #ffb8b8, #fee);
}