/* assets/wcgl-styles.css */

/* Wrapper principale */
.wcgl-login-wrapper {
    margin: 20px 0;
    text-align: center;
}

/* Separatore OR */
.wcgl-separator {
    position: relative;
    text-align: center;
}

.wcgl-separator::before {
    content: none;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    transform: translateY(-50%);
}

.wcgl-separator span {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bottone Google */
.wcgl-google-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.wcgl-google-button:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    transform: translateY(-1px);
}

.wcgl-google-button:active {
    background: #e8eaed;
    transform: translateY(0);
}

/* Icona Google */
.wcgl-google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Testo bottone */
.wcgl-button-text {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Privacy notice */
.wcgl-privacy-notice {
    margin-top: 15px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.wcgl-privacy-notice a {
    text-decoration: underline;
}

.wcgl-privacy-notice a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .wcgl-google-button {
        width: 100%;
        max-width: 280px;
    }
}

/* Loading state */
.wcgl-google-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.wcgl-google-button.loading .wcgl-button-text::after {
    content: '...';
    display: inline-block;
    animation: wcgl-dots 1.4s infinite;
}

@keyframes wcgl-dots {
    0%, 60%, 100% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
}

/* Error messages */
.woocommerce-error.wcgl-error {
    margin-bottom: 20px;
}

/* One-tap prompt container */
#g_id_onload {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 9999 !important;
}