/*
Theme Name: Do4u25-juin
Theme URI:
Author: Oh! médias
Description: Thème pour le site Do4u
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/glp-2.0.html
Tags:  web development, web design, communication, responsive
Text Domain: ohmedias
 */

/* Styles personnalisés pour Select2 - page-deposer-annonce */

/* Conteneur principal de Select2 */
#annonce-form .select2-container--default .select2-selection--single {
    background-color: #FFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    height: 46px; /* Hauteur globale du champ */
    outline: none; /* Supprimer l'outline au focus si besoin */
    padding-top: 5px;
}

/* Texte sélectionné à l'intérieur */
#annonce-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #326847;
    font-weight: 500;
    line-height: 38px; /* Ajuster pour centrer verticalement : hauteur (40px) - bordures (1px*2) */
    padding-left: 0.75rem; /* Ou le padding de votre champ catégorie */
    padding-right: 20px; /* Espace pour la flèche */
}

/* Flèche déroulante */
#annonce-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px; /* Doit correspondre à la hauteur interne (hauteur - bordures) */
    position: absolute;
    top: 1px; /* Si la bordure est de 1px */
    right: 1px; /* Si la bordure est de 1px */
    width: 20px;
}

#annonce-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #326847 transparent transparent transparent; /* Couleur de la flèche, assortie au texte */
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
}

/* Style du dropdown et des options (peut rester plus générique ou être préfixé par #annonce-form si besoin) */
.select2-dropdown {
    background-color: #FFF;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Bordure assortie */
    border-radius: 10px; /* Radius assorti */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.select2-results__option {
    padding: 8px 12px; /* Ajuster padding pour une bonne sensation */
    user-select: none;
    -webkit-user-select: none;
    color: #326847; /* Couleur de texte pour les options */
    font-weight: 500; /* Poids de police pour les options */
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #326847; /* Couleur de fond pour l'option survolée */
    color: white;
}

.select2-search--dropdown .select2-search__field {
    padding: 0.5rem 0.75rem; /* Padding pour le champ de recherche */
    border: 1px solid rgba(0, 0, 0, 0.05); /* Bordure assortie */
    border-radius: 10px; /* Radius assorti */
    box-sizing: border-box;
    width: 100%;
    outline: none; /* Supprimer l'outline au focus si besoin */
    color: #326847;
    font-weight: 500;
}