/* HIDDEN CHECKBOX */

[type="checkbox"].hidden-checkbox,
[type="checkbox"].hidden-checkbox:checked,
[type="checkbox"].hidden-checkbox:not(checked) {
    opacity: 1 !important;
    position: relative !important;
}

[type="checkbox"].hidden-checkbox + label::before,
[type="checkbox"].hidden-checkbox + label::after,
[type="checkbox"].hidden-checkbox:checked + label::before,
[type="checkbox"].hidden-checkbox:checked + label::after {
    display: none !important;
}

[type="checkbox"].hidden-checkbox + label:not(.lever) {
    padding-left: 0px !important;
}

.hidden-checkbox {
    display: none;
}

/* FIM HIDDEN CHECKBOX */

.check-square {
    display: inline-block;
    background-color: var(--secondary-color);
    width: 18px;
    height: 18px;
    margin: 0;
    border: none;
    position: relative;
    cursor: pointer;
    border-radius: var(--sm-border-radius);
}

.check-square + label {
    cursor: pointer;
    display: contents;
}

.wrapper-checkbox {
    display: inline-block;
    width: 18px;
    height: 18px;
}

input[type="checkbox"]:checked + .check-square {
    background-color: var(--primary-color);
}

input[type="checkbox"]:disabled + .check-square {
    background-color: transparent;
    border: 2px dashed #ccc;
}

input[type="checkbox"]:checked + .check-square:before {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    content: " ";
    top: 0;
    left: 1px;
    width: 7px;
    height: 13px;
    border-top: 2px solid transparent;
    border-left: 2px solid transparent;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    -webkit-transform: rotateZ(37deg);
    transform: rotateZ(37deg);
    -webkit-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
}
