/* ============================================
   STRUCTURE GLOBALE - Layout principal
   ============================================ */

/* Conteneur principal : Sidebar + Contenu */
.custom-account-wrapper {
    display: flex !important;
    gap: 3rem !important;
    width: 100% !important;
    margin: 0 auto !important;
    background: white !important;
    overflow: hidden !important;
}

.woocommerce-form__label.woocommerce-form__label-for-checkbox.woocommerce-form-login__rememberme{
    margin-left: 1rem;
}



/* ============================================
   SIDEBAR - Navigation gauche (243px = 15.1875rem fixe)
   ============================================ */

.custom-account-sidebar {
    width: 15.1875rem;
    min-width: 15.1875rem;
    padding: 0rem 0.5rem 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Titre "Welcome, Thomas" */
.welcome-title {
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin: 0;
}

/* Navigation - Liste des liens */
.custom-account-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-account-navigation li {
    margin: 0;
    position: relative;
}

/* Liens de navigation (Orders, Favorites, etc.) */
.custom-account-navigation li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    text-decoration: none;
    color: #898B94;
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif;
}

.woocommerce-MyAccount-navigation-link{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

}


/* Lien actif (page courante) */
.custom-account-navigation li.is-active a {
    color: black !important;
    text-decoration: underline;
}

/* Icône à gauche de chaque lien */
.custom-account-navigation li a svg:first-of-type {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
}


/* Lien "Sign out" en rouge */
.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--customer-logout a,
.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--customer-logout i{
    color: #942020 !important;
}

/* Affichage de la fleche à droite de log out */
li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--customer-logout i.icon.icon-arrow---right{
    display: none;
}



/* ============================================
   ZONE DE CONTENU - Partie droite (flexible)
   ============================================ */

.e-my-account-tab.e-my-account-tab__dashboard .woocommerce-MyAccount-content-wrapper > p:first-of-type,
.e-my-account-tab.e-my-account-tab__dashboard .woocommerce-MyAccount-content-wrapper > p:nth-of-type(2){
    display: none;
}

.custom-account-content {
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Forcer WooCommerce à prendre toute la largeur */
.custom-account-content .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block;
    text-align: left;
}

/* Tous les enfants directs prennent la largeur complète */
.custom-account-content .woocommerce-MyAccount-content > * {
    max-width: 100%;
}

/* Reset padding Elementor sur le contenu */
.elementor-widget-woocommerce-my-account .e-my-account-tab__downloads .woocommerce-MyAccount-content-wrapper,
.elementor-widget-woocommerce-my-account .e-my-account-tab__orders .woocommerce-MyAccount-content-wrapper {
    padding: 0 !important;
}

/* ============================================
   PAGE EDIT ADRESS - Adresses
   ============================================ */
.u-columns.woocommerce-Addresses.col2-set.addresses{
    margin-left: 20px;
    margin-top: 0 !important;
}

/* ============================================
   PAGE EDIT ACCOUNT - Account details
   ============================================ */
button.woocommerce-Button.button[name="save_account_details"][value="Save changes"] {
    margin-top: 1rem !important;
    width: 100%;
    justify-content: center;   /* centre horizontalement */
    align-items: center;       /* centre verticalement */
    height: 40px;              /* ou auto selon ton design */
}

/* Reset l'icône WooCommerce */
.show-password-input::before {
    display: none !important;
}

.show-password-input {
    font-family: inherit;
    font-size: 0; /* Cache le texte du bouton */
}

/* Votre icône via pseudo-élément */
.show-password-input::after {
    font-family: 'noemie-icon-font' !important; /* Le nom de votre font d'icônes */
    content: '\e885'; /* Le code unicode de votre icon-eye */
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

/* État : mot de passe visible */
.show-password-input.display-password::after {
    content: '\e886'; /* Le code unicode de votre icon-eye-slash */
}

.show-password-input.display-password:hover{
    background-color: white;
    color: black;
}

.show-password-input:hover{
    background-color: white !important;
    color: black !important;
}

/* ============================================
   PAGE ORDERS - Liste des commandes
   ============================================ */

/* Titre "Orders" */
.content-title {
    font-size: 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin: 0 !important;
}

.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--dashboard{
    display: none;
}

.custom-account-content, .woocommerce-MyAccount-content-wrapper{
    padding: 0.5rem 0rem 0rem 0rem;
}

/* Conteneur de toutes les commandes */
.custom-orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

/* Une commande individuelle */
.custom-order-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

/* ============================================
   IMAGES PRODUITS - Galerie + Bouton
   ============================================ */

/* Section contenant images + bouton "See details" */
.order-images-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    min-height: 11.1875rem;
}

/* Conteneur des miniatures produits */
.order-images-container {
    display: flex;
    gap: 0.25rem;
    flex: 1;
}

/* Une miniature produit (178px = 11.125rem*/
.order-product-image {
    width: 11.125rem;
    height: 11.125rem;
    overflow: hidden;
    flex-shrink: 0;
}

.order-product-image img {
    width: 100%;
    height: 100%;
}

/* ============================================
   MÉTADONNÉES - Order number, Date, Total, Status
   ============================================ */

/* Conteneur de toutes les métadonnées */
.order-meta-section {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;

}

/* Un groupe de métadonnée (label + valeur) */
.order-meta-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center !important;
}

/* Label (Order number, Shipped date, etc.) */
.meta-label {
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: black;
}

/* Valeur (#964, 01/10/2025, etc.) */
.meta-value {
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: black;
}

.meta-value a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   BADGES DE STATUT - Delivered, On the way, Cancelled
   ============================================ */

/* Badge de base */
.order-status-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    display: inline-block;
    width: fit-content;
}

/* Vert - Commande livrée (completed) */
.status-delivered {
    background: #C5F1B8;
    color: #3D7D29;
}

/* Jaune - En cours (processing, on-hold, pending) */
.status-processing {
    background: #F9ECBF;
    color: #A88C00;
}

/* Rouge - Annulée/Échouée (cancelled, refunded, failed) */
.status-cancelled {
    background: #FAA8A8;
    color: #942020;
}

/* ============================================
   ORDER DETAILS - Style détails de la commande
   ============================================ */
.woocommerce-MyAccount-content-wrapper:has(> section.woocommerce-order-details) {
    display: flex;
    flex-direction: row;
    gap: 2rem ;
}

.woocommerce-MyAccount-content-wrapper > p:not([class]) {
    display: none;
}

/* ============================================
   RESPONSIVE - Adaptations mobile/tablette
   ============================================ */

/* Tablette */
@media (max-width: 1024px) {

    .woocommerce-MyAccount-content-wrapper:has(> section.woocommerce-order-details) {
        display: flex;
        flex-direction: column;
        gap: 1rem ;
    }

    .woocommerce-table.woocommerce-table--order-details.shop_table.order_details{
        padding: 0;
    }

    .custom-orders-list, .custom-account-wrapper{
        width: 100% !important;
        /*overflow: hidden !important;*/
    }

    .custom-account-sidebar{
        display: none;
    }

    .custom-order-item{
        width: 100vw !important;
        /*overflow: hidden;*/
    }

    .order-meta-section{
        gap:1rem;
    }

    .woocommerce-MyAccount-content-wrapper{
        padding: 0 !important;
    }

    .elementor-element.elementor-element-9253754.e-flex.e-con-boxed.e-con.e-parent.e-lazyloaded{
        padding: 1rem !important;
        width: 100%;
    }

    .order-meta-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
        gap: 1rem;
    }

    .order-meta-section .order-meta-group {
        width: 100%; /* Pour éviter des effets de shrink */
    }

    .order-meta-section > a {
        grid-column: 1 / -1; /* ✅ S'étend sur toute la ligne */
    }

    .woocommerce-button.button.view.order-details-button{
        display: flex;
        justify-content: center;   /* centre horizontalement */
        height: 40px;              /* ou auto selon ton design */
    }
    .order-images-container {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Scroll fluide sur iOS */
        scrollbar-width: thin;
        padding-bottom: 0.5rem;
    }

    /* Stylisation de la scrollbar */
    .order-images-container::-webkit-scrollbar {
        height: 6px;
    }

    .order-images-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .order-images-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

    .order-images-container::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    /* Empêcher les images de rétrécir */
    .order-product-image {
        flex: 0 0 auto;
        min-width: 150px; /* Ajustez selon vos besoins */
        max-width: 200px;
    }

    .order-product-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* Optionnel : Ajuster la largeur de la section des images */
    .order-images-section {
        width: 100%;
    }
}

/*============================================
   LOGIN REGISTER
  ============================================*/

.xoo-el-login-tgr, .xoo-el-reg-tgr {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 500 !important;
}

li.xoo-el-login-tgr{
    border-radius: 0.25rem 0rem 0rem 0.25rem !important;
    overflow: hidden;
}

li.xoo-el-reg-tgr{
    border-radius: 0rem 0.25rem 0.25rem 0rem !important;
    overflow: hidden;
}

/* Icons*/
.fa-key:before {
    font-family: 'noemie-icon-font' !important;
    content: '\e8e4';
}

.fa-user-plus:before {
    font-family: 'noemie-icon-font' !important;
    content: '\e9b2';
}

.fa-user:before {
    font-family: 'noemie-icon-font' !important;
    content: '\e9b2';
    font-weight: 700 !important;
}

.fa-eye-slash:before {
    font-family: 'noemie-icon-font' !important;
    content: '\e885';
    font-weight: 700 !important;
}

.fa-eye:before {
    font-family: 'noemie-icon-font' !important;
    content: '\e886';
    font-weight: 700 !important;
}

.fa-at:before{
    font-family: 'noemie-icon-font' !important;
    content: '\e8fc';
    font-weight: 700 !important;
}

.xoo-aff-required.xoo-aff-checkbox_single{
    font-weight: normal !important;
}



