/**
 * wmfacetcheckbox — Facet Filter Square Checkboxes
 * Workmind · workmind.pt
 */

/* Esconde os inputs nativos e o span de checkbox do PS */
.facet .custom-checkbox input[type="checkbox"],
.facet .custom-checkbox input[type="radio"],
.facet .custom-checkbox .ps-shown-by-js,
.facet .custom-radio input[type="checkbox"],
.facet .custom-radio input[type="radio"],
.facet .custom-radio .ps-shown-by-js {
    display: none !important;
}

/* Remove padding-left que o PS reserva para o input nativo */
.facet .facet-label {
    padding-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    user-select: none !important;
}

/* O pseudo-checkbox quadrado é injetado via JS como .wm-checkbox */
.wm-checkbox {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease, border-color .15s ease;
}

/* Checkmark SVG dentro */
.wm-checkbox svg {
    display: none;
    pointer-events: none;
}

.wm-checkbox.is-checked svg {
    display: block;
}
