/* What The Fit 1.9.504 — Nextend Social Login redirect overlay with visible Google badge. */
/* Presentational only. The original Nextend login/redirection JS remains untouched. */

#nsl-redirect-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2147483647 !important;
    background: rgba(10, 12, 16, .46) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    backdrop-filter: blur(3px) !important;
    padding: 18px !important;
    box-sizing: border-box !important;
}

#nsl-redirect-overlay-container {
    box-sizing: border-box !important;
    width: min(348px, 100%) !important;
    min-width: 0 !important;
    max-width: 348px !important;
    min-height: 316px !important;
    padding: 30px 27px 34px !important;
    margin: 0 auto !important;
    border: 1px solid rgba(14, 18, 23, .065) !important;
    border-radius: 17px !important;
    background: #fff !important;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .22), 0 3px 12px rgba(0, 0, 0, .08) !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

/* The spinner element is stationary; only the ring rotates, keeping
   the user's ORIGINAL What The Fit gorilla artwork upright. */
#nsl-redirect-overlay-spinner {
    position: relative !important;
    display: block !important;
    flex: none !important;
    box-sizing: border-box !important;
    width: 108px !important;
    height: 108px !important;
    padding: 0 !important;
    margin: 0 auto 10px !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    background: none !important;
    animation: none !important;
    transform: none !important;
    overflow: visible !important;
}

#nsl-redirect-overlay-spinner::before {
    content: '';
    position: absolute;
    inset: 2px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 5px solid #e8e9ea;
    border-top-color: #ff5b0b;
    border-right-color: #ff5b0b;
    animation: wtfit-google-ring-spin 1.05s linear infinite;
    z-index: 0;
}

/* Badge and gorilla are composed into one transparent asset, which makes
   Google's "G" reliably visible above the avatar and animated spinner ring. */
#nsl-redirect-overlay-spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    box-sizing: border-box;
    width: 108px;
    height: 108px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent url('../images/google-login-mascot-google-badge.png') center center / 108px 108px no-repeat;
    pointer-events: none;
}

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

#nsl-redirect-overlay-title {
    display: block !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 750 !important;
    letter-spacing: -.55px !important;
    line-height: 1.3 !important;
    color: #121417 !important;
    text-align: center !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}

/* Clean wordmark with no upper stripe; versioned asset path bypasses cached old image. */
#nsl-redirect-overlay-title::before {
    content: '';
    display: block;
    width: 148px;
    height: 34px;
    margin: 1px auto 12px;
    background: url('../images/google-login-wordmark-clean-v504.png') center / contain no-repeat;
}

#nsl-redirect-overlay-text {
    display: block !important;
    max-width: 274px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    color: #666b73 !important;
    text-align: center !important;
}

@media (max-width: 420px) {
    #nsl-redirect-overlay-container {
        width: min(330px, 100%) !important;
        padding: 28px 18px 30px !important;
        min-height: 304px !important;
    }
    #nsl-redirect-overlay-text { font-size: 12.5px !important; }
}

@media (prefers-reduced-motion: reduce) {
    #nsl-redirect-overlay-spinner::before {
        animation-duration: 2.6s;
    }
}

/* No redirect logic or modal text is replaced here: only Nextend’s overlay is styled. */
