/**
 * Styles personnalisés pour le formulaire de filtres WooCommerce.
 *
 * Composant : [woocommerce_custom_filters]
 * Contenu : styles du formulaire de filtres (catégories, marques, attributs, etc.)
 * Confiné dans #woocommerce-custom-filters pour éviter les conflits CSS globaux.
 * Dernière mise à jour : juin 2025
 */

/* === WRAPPER PRINCIPAL === */
#woocommerce-custom-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    font-family: 'Afacad', sans-serif;
}

/* === ZONES DE CONTRÔLE DES CHAMPS === */
#woocommerce-custom-filters .group-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#woocommerce-custom-filters .group-control-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#woocommerce-custom-filters .group-control label {
    font-size: 1rem;
    font-weight: 500;
}

#woocommerce-custom-filters .group-control-heading span {
    font-size: 0.875rem;
    line-height: 0.9rem;
    font-style: italic;
}

/* === SELECT CUSTOM WRAPPER AVEC ICÔNE === */
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border-radius: 0;
    color: #000;
}

.select-wrapper::after {
    content: "\e136";
    font-family: "Phosphor-Light", serif;
    font-size: 20px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

/* Focus accessible */
.select-wrapper select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.25);
}

.select-wrapper select.disabled {
    opacity: 30%;
    pointer-events: none;
}

/* === CHAMPS DE PLAGE DE VALEURS === */
.range-wrapper {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.range-wrapper input {
    min-width: 35%;
}

/* === BOUTONS (APPLIQUER / RÉINITIALISER) === */
.group-button {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.group-button button[type="submit"] {
    width: 100%;
}

.group-button button[type="submit"]:hover {
    background-color: #F2F2F2 !important;
    border-color: #444444 !important;
    color: #000 !important;
}

.group-button a {
    padding: 8px;
    font-size: 1rem !important;
}
