/* --- 1. CONTENEUR GLOBAL DES VARIATIONS (Ligne TR) --- */
.variations_form table.variations tr {
    display: flex !important;
    align-items: stretch !important;
    background-color: #f8f9fa !important;
    padding: 10px 15px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
}

/* --- 2. LABELS (Colonnes de gauche) --- */
.variations_form table.variations td.label {
    flex: 0 0 30% !important;
    max-width: 30% !important;
    display: flex !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 10px !important;
}

.variations_form table.variations td.label label {
    margin: 0 !important;
    line-height: 1.2 !important;
    font-weight: bold !important;
}

/* --- 3. VALEURS ET OPTIONS (Colonnes de droite) --- */
.variations_form table.variations td.value {
    flex: 0 0 70% !important;
    max-width: 70% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
}

/* Styles des boutons d'options (Texte, Label, Box) */
.yith-wccl-variable .select_option_label, 
.yith-wccl-variable .select_option_text,
.select_box_select .select_option,
.select_option_label {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    padding: 0 8px !important;
    /* border-radius: 5px !important; */
    /* cursor: pointer;
    font-size: 0.9rem;
    min-width: 60px;
    width: auto !important;
    height: auto !important;
    text-align: center;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #212529 !important; */
    margin-right: 0 !important;
}

/* Force l'affichage du conteneur de boutons YITH */
.select_box_label.select_box {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
}

/* Contenu texte à l'intérieur des options YITH */
.select_option_label .yith_wccl_value {
    display: inline-block !important;
    text-indent: 0 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #212529 !important;
}

/* --- 4. GESTION DES IMAGES ET COULEURS --- */
.yith_wccl_value_wrapper img {
    object-fit: cover;
    border: 2px solid transparent;
}

/* Style spécifique pour le select par défaut */
.variations_form table.variations td.value select {
    border: 0 !important;
    background: transparent;
}

/* --- 5. ÉTATS SÉLECTIONNÉS (STYLE ROSE) --- */
.variations_form .select_option.selected {
    border: 2px solid var(--bs-primary) !important;
}

.variations_form .select_option_label.selected .yith_wccl_value {
    color: var(--bs-secondary) !important;
    font-weight: bold !important;
}

.variations_form .select_option_image.selected img,
.selected .yith_wccl_value_wrapper img {
    border: 2px solid var(--bs-secondary) !important;
}

.variations_form .select_option_colorpicker.selected {
    outline: 2px solid var(--bs-secondary) !important;
    outline-offset: 2px;
}

/* --- 6. BOUTON EFFACER (RESET) --- */
.variations_form table.variations td.value .reset_variations {
    margin-left: auto !important;
    display: inline-block !important;
    white-space: nowrap !important;
    padding-left: 10px;
}

/* --- 7. RESPONSIVE MOBILE --- */
@media (max-width: 576px) {
    .variations_form table.variations td.value {
        flex-wrap: wrap !important;
    }
    .variations_form table.variations td.value .reset_variations {
        width: 100%;
        text-align: right;
        margin-top: 5px;
    }
}