/*
Theme Name: Bridge Child
Theme URI: http://bridgelanding.qodeinteractive.com/
Description: A child theme of Bridge Theme
Author: Qode Interactive
Author URI: https://qodeinteractive.com
Version: 1.0.0
Text Domain: bridge
Template: bridge
*/
/* =====================================================================
   SAWADEE — Styles personnalisés WooCommerce / Espace "Mon compte"
   Couleur de marque : #501f10  (survol : #3a160b)
   ---------------------------------------------------------------------
   Sections :
     1. Liens dans les notices
     2. Mise en page Connexion / Inscription (#customer_login)
     3. Champs de saisie (login + adresses + détails du compte)
     4. Champ "Pays/région" (Select2)
     5. Libellés
     6. Boutons (tout l'espace compte + login/register)
     7. Liens divers (mot de passe oublié, etc.)
     8. Responsive
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. Liens dans les notices / messages de l'espace compte
   ------------------------------------------------------------------- */
.woocommerce-MyAccount-content p a {
    color: #501f10;
}


.woocommerce-account .woocommerce-MyAccount-content {
    background-color: #faf5ec;
    padding: 18px;
    border-radius: 12px !important;

}

.woocommerce-account header h3 {
    color: #501f10;
}

/* ---------------------------------------------------------------------
   2. Mise en page Connexion / Inscription
   ------------------------------------------------------------------- */
.woocommerce #customer_login.u-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    max-width: 920px;
    margin: 2rem auto;
}

.woocommerce #customer_login .u-column1,
.woocommerce #customer_login .u-column2 {
    flex: 1 1 380px;
    max-width: 420px;
    margin: 0;        /* annule les marges WooCommerce par défaut */
    float: none;      /* neutralise les float WooCommerce */
}

/* Carte autour de chaque formulaire */
.woocommerce #customer_login form.woocommerce-form-login,
.woocommerce #customer_login form.woocommerce-form-register {
    padding: 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    background: #fff;
    height: 100%;
}

/* Titres "Connexion" / "Inscription" */
.woocommerce #customer_login h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #501f10;
}

/* "Se souvenir de moi" */
.woocommerce #customer_login .woo-my-account-rememberme {
    display: inline-block;
    margin: 0.5rem 0;
}

/* Texte de politique de confidentialité */
.woocommerce #customer_login .woocommerce-privacy-policy-text {
    font-size: 13px;
    color: #777;
    margin: 1rem 0;
}


/* ---------------------------------------------------------------------
   3. Champs de saisie — TOUT l'espace compte
   ------------------------------------------------------------------- */
.woocommerce-MyAccount-content .input-text,
.woocommerce-MyAccount-content select,
.woocommerce #customer_login .input-text {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce-MyAccount-content .input-text:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce #customer_login .input-text:focus {
    border-color: #501f10;
    box-shadow: 0 0 0 3px rgba(80, 31, 16, 0.15);
    outline: none;
}


/* ---------------------------------------------------------------------
   4. Champ "Pays/région" (Select2 remplace le <select> natif)
   ------------------------------------------------------------------- */
.woocommerce-MyAccount-content .select2-container .select2-selection--single {
    height: auto;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.woocommerce-MyAccount-content .select2-container--default
    .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    color: #333;
}


/* ---------------------------------------------------------------------
   5. Libellés
   ------------------------------------------------------------------- */
.woocommerce-MyAccount-content label,
.woocommerce #customer_login label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}


/* ---------------------------------------------------------------------
   6. Boutons — tout l'espace compte + login/register
   ------------------------------------------------------------------- */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content a.button,
.woocommerce #customer_login .button {
    display: inline-block;
    width: auto;
    padding: 12px 18px !important;
    background: #442b24;
    color: #fff !important;       /* force le texte visible */
    border: none;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.4;
    height: auto;                 /* le padding définit la hauteur */
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content a.button:hover,
.woocommerce #customer_login .button:hover {
    background: #3a160b;
    color: #fff !important;
}

/* Boutons des formulaires login/register : pleine largeur */
.woocommerce #customer_login .button {
    width: 100%;
}


/* ---------------------------------------------------------------------
   7. Liens divers
   ------------------------------------------------------------------- */
.woocommerce #customer_login .lost_password {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

.woocommerce #customer_login .lost_password a {
    color: #501f10;
}


/* ---------------------------------------------------------------------
   8. Responsive — colonnes empilées sur mobile
   ------------------------------------------------------------------- */
@media (max-width: 768px) {
    .woocommerce #customer_login.u-columns {
        flex-direction: column;
        align-items: center;
    }
    .woocommerce #customer_login .u-column1,
    .woocommerce #customer_login .u-column2 {
        width: 100%;
        max-width: 420px;
    }
}
