/*
Theme Name:   Astra Child
Theme URI:    https://smartprosumers.be
Description:  Thème enfant personnalisé pour Astra
Author:       SmartProsumers
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/


/* ============================================
   POLYLANG SELECTOR
============================================ */
#lang_choice_polylang-4 {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    background-image: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    color: #1E293B !important;
    margin-top: 5px !important;
    width: 55px !important;
    padding: 0 5px 0 0 !important;
    margin-right: 0 !important;
    height: auto !important;
    line-height: 1 !important;
    text-align: left !important;
    font-size: 15px !important;
}

aside.header-widget-area.widget_polylang {
    padding: 0 5px !important;
    margin: 0 !important;
    text-align: left !important;
}

/* ============================================
   WOOCOMMERCE - MASQUER ÉLÉMENTS
============================================ */
/* .woocommerce-Tabs-panel REMOVED FROM HERE TO SHOW DESCRIPTIONS */
.related.products,
.upsells.products,
.cross-sells,
section.related,
section.upsells,
.product_meta,
.posted_in {
    display: none !important;
}

/* Cacher la section par défaut */
#hidden-section {
    display: none;
}

/* Une fois visible, l'afficher avec animation */
#hidden-section.is-visible {
    display: block;
    animation: fadeInDown 0.5s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Masquer la mention anglaise (optional) sur le champ de contact */
.wc-block-components-form-field__optional-text,
.wc-block-components-checkout-step__optional,
[data-field-id="sp/contact_preference"] .wc-block-components-form-field__optional-text,
label[for="contact-sp-contact_preference"] span,
label[for*="contact_preference"] .wc-block-components-form-field__optional-text {
    display: none !important;
}
