/**
 * Google One Tap Login - Styles
 *
 * @package SiteReviewsGrid
 * @version 1.0.0
 */

/* ── Loading Overlay ── */
#srg-google-loading {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
}

#srg-google-loading p {
    margin-top: 16px;
    font-size: 15px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.srg-gl-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #4285f4;
    border-radius: 50%;
    animation: srg-spin 0.8s linear infinite;
}

@keyframes srg-spin {
    to { transform: rotate(360deg); }
}

/* ── Toast ── */
.srg-gl-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #fff;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    max-width: 90vw;
    text-align: center;
}

.srg-gl-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.srg-gl-toast--success {
    background: #0f9d58;
}

.srg-gl-toast--error {
    background: #db4437;
}

.srg-gl-toast--info {
    background: #4285f4;
}

/* ── Google Button Container (below WooCommerce forms) ── */
.srg-google-btn-wrap {
    margin-top: 20px;
    text-align: center;
    overflow: visible;
    width: 100%;
}

.srg-google-btn-wrap .g_id_signin {
    display: block;
    width: 100%;
}

.srg-google-btn-wrap .g_id_signin iframe,
.srg-google-btn-wrap .g_id_signin div[role="button"] {
    width: 100% !important;
    max-width: 100% !important;
}

.srg-google-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: #999;
    font-size: 13px;
}

.srg-google-divider::before,
.srg-google-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.srg-google-divider span {
    padding: 0 12px;
}

/* ── Custom Google Button ── */
.srg-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: #fff;
    color: #3c4043;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
    line-height: 1;
    box-sizing: border-box;
}

.srg-google-btn:hover {
    background: #f7f8f8;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
    border-color: #c6c6c6;
}

.srg-google-btn:active {
    background: #eee;
}

.srg-google-btn svg {
    flex-shrink: 0;
}

.srg-google-btn span {
    white-space: nowrap;
}
