/**
 * Styles Google OAuth pour WooCommerce
 * Intégration dans les formulaires de connexion/inscription
 */

/* Wrapper du bouton Google dans WooCommerce - ENTRE le titre et le formulaire */
.eaieg-google-oauth-middle {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

/* Séparateur "OU" pour WooCommerce - EN DESSOUS du bouton */
.eaieg-google-oauth-middle::after {
    content: 'OU' !important;
    position: absolute !important;
    bottom: -11px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #fff !important;
    padding: 0 15px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #666 !important;
    letter-spacing: 0.5px !important;
}

/* Bouton Google dans contexte WooCommerce */
.woocommerce .eaieg-google-oauth-btn {
    width: 100%;
    max-width: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

.eaieg-google-oauth-wrapper::after {
    top: auto !important;
    z-index: 0 !important;
    height: auto !important;
}

.eaieg-google-oauth-wrapper::before {
    content: '' !important;
}
/* Colonnes WooCommerce (connexion + inscription) */
.u-columns .u-column1 .eaieg-google-oauth-wrapper,
.u-columns .u-column2 .eaieg-google-oauth-wrapper {
    margin-top: 20px;
}

/* Responsive : empiler les colonnes sur mobile */
@media (max-width: 768px) {
    .u-columns .u-column1,
    .u-columns .u-column2 {
        width: 100%;
        float: none;
        margin-bottom: 30px;
    }

    .woocommerce .eaieg-google-oauth-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Messages d'erreur/succès dans WooCommerce */
.woocommerce .eaieg-google-oauth-error,
.woocommerce .eaieg-google-oauth-success {
    margin: 15px 0;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

/* Animation de chargement */
.woocommerce .eaieg-google-oauth-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Amélioration du design du bouton Google pour correspondre à WooCommerce */
.woocommerce .eaieg-google-oauth-btn {
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.woocommerce .eaieg-google-oauth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.woocommerce .eaieg-google-oauth-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Alignement vertical du logo Google */
.woocommerce .eaieg-google-oauth-btn svg {
    vertical-align: middle;
    margin-top: -2px;
}

/* Espace entre les deux colonnes */
.u-columns .u-column1 {
    padding-right: 20px;
}

.u-columns .u-column2 {
    padding-left: 20px;
}

@media (max-width: 768px) {
    .u-columns .u-column1,
    .u-columns .u-column2 {
        padding-left: 0;
        padding-right: 0;
    }
}
