/* WooCommerce Google Authentication Styles */

.wc-google-auth-wrapper {
    margin: 20px 0;
    text-align: center;
}

.wc-google-auth-wrapper.wc-google-auth-checkout {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.wc-google-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1);
}

.wc-google-auth-button:hover {
    background: #f8f9fa;
    border-color: #d2d4d8;
    box-shadow: 0 2px 4px 0 rgba(60, 64, 67, 0.15);
}

.wc-google-auth-button:active {
    background: #f1f3f4;
    border-color: #c0c3c7;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1);
}

.wc-google-auth-button:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.wc-google-auth-button svg {
    flex-shrink: 0;
}

.wc-google-auth-button span {
    white-space: nowrap;
}

.wc-google-auth-button:disabled,
.wc-google-auth-button.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.wc-google-auth-divider {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.wc-google-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.wc-google-auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 15px;
    background: #f8f9fa;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Login/Register form styles */
.wc-google-auth-login,
.wc-google-auth-register {
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 15px;
}

/* Loading state */
.wc-google-auth-button.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid #3c4043;
    border-right-color: transparent;
    border-radius: 50%;
    animation: wc-google-auth-spin 0.6s linear infinite;
}

@keyframes wc-google-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error messages */
.wc-google-auth-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
    color: #856404;
    font-size: 14px;
}

/* Success messages */
.wc-google-auth-success {
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
    color: #155724;
    font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wc-google-auth-button {
        width: 100%;
        max-width: 300px;
    }
    
    .wc-google-auth-wrapper.wc-google-auth-checkout {
        padding: 20px 15px;
    }
}

/* WooCommerce checkout page specific */
.woocommerce-checkout .wc-google-auth-wrapper.wc-google-auth-checkout {
    margin-bottom: 25px;
}

/* Account page styles */
.woocommerce-account .wc-google-auth-wrapper {
    margin: 15px 0;
}

/* Shortcode wrapper */
.wc-google-auth-shortcode {
    text-align: center;
    margin: 20px 0;
}

.wc-google-auth-shortcode .wc-google-auth-wrapper {
    margin: 0;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .wc-google-auth-wrapper.wc-google-auth-checkout {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .wc-google-auth-button {
        background: #2d2d2d;
        color: #e0e0e0;
        border-color: #444;
    }
    
    .wc-google-auth-button:hover {
        background: #3a3a3a;
        border-color: #555;
    }
    
    .wc-google-auth-divider::before {
        background: #444;
    }
    
    .wc-google-auth-divider span {
        background: #1a1a1a;
        color: #b0b0b0;
    }
}
