/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-bwznweq13q],
.components-reconnect-repeated-attempt-visible[b-bwznweq13q],
.components-reconnect-failed-visible[b-bwznweq13q],
.components-pause-visible[b-bwznweq13q],
.components-resume-failed-visible[b-bwznweq13q],
.components-rejoining-animation[b-bwznweq13q] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-bwznweq13q],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-bwznweq13q],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-bwznweq13q],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-bwznweq13q],
#components-reconnect-modal.components-reconnect-retrying[b-bwznweq13q],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-bwznweq13q],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-bwznweq13q],
#components-reconnect-modal.components-reconnect-failed[b-bwznweq13q],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-bwznweq13q] {
    display: block;
}


#components-reconnect-modal[b-bwznweq13q] {
    background-color: var(--sf-raised);
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: var(--sf-radius-card);
    box-shadow: var(--sf-elevation-3);
    opacity: 0;
    transition: display var(--sf-motion-slow) allow-discrete, overlay var(--sf-motion-slow) allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-bwznweq13q var(--sf-motion-slow) var(--sf-motion-ease) both;
}

/* The wait before it shows hides a blip that rejoins within a beat; it is a pause, not motion, so reduced motion keeps it. */
#components-reconnect-modal[open][b-bwznweq13q] {
    animation: components-reconnect-modal-slideUp-b-bwznweq13q var(--sf-motion-slow) var(--sf-motion-ease) 0.3s, components-reconnect-modal-fadeInOpacity-b-bwznweq13q var(--sf-motion-slow) var(--sf-motion-ease) 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-bwznweq13q]::backdrop {
    background-color: var(--sf-scrim);
    animation: components-reconnect-modal-fadeInOpacity-b-bwznweq13q var(--sf-motion-slow) var(--sf-motion-ease);
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-bwznweq13q {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-bwznweq13q {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-bwznweq13q {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-bwznweq13q] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-bwznweq13q] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-bwznweq13q] {
    border: 0;
    background-color: var(--sf-primary);
    color: white;
    padding: 4px 24px;
    border-radius: var(--sf-radius-control);
    transition: background-color var(--sf-transition);
}

    #components-reconnect-modal button:hover[b-bwznweq13q] {
        background-color: var(--sf-primary-dark);
    }

    #components-reconnect-modal button:active[b-bwznweq13q] {
        background-color: var(--sf-primary);
    }

.components-rejoining-animation[b-bwznweq13q] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-bwznweq13q] {
        position: absolute;
        border: 3px solid var(--sf-primary);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-bwznweq13q 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-bwznweq13q] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-bwznweq13q {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
