/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-cf4z0fd4go],
.components-reconnect-repeated-attempt-visible[b-cf4z0fd4go],
.components-reconnect-failed-visible[b-cf4z0fd4go],
.components-pause-visible[b-cf4z0fd4go],
.components-resume-failed-visible[b-cf4z0fd4go],
.components-reload-visible[b-cf4z0fd4go],
.components-rejoining-animation[b-cf4z0fd4go] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-cf4z0fd4go],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-cf4z0fd4go],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-cf4z0fd4go],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-cf4z0fd4go],
#components-reconnect-modal.components-reconnect-retrying[b-cf4z0fd4go],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-cf4z0fd4go],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-cf4z0fd4go],
#components-reconnect-modal.components-reconnect-failed[b-cf4z0fd4go],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-cf4z0fd4go],
/* US-10.4.5 (ERR-09): set by ReconnectModal.razor.js right before it reloads
   the page for good — replaces whatever state was showing, not layered on
   top of it, so this is the only thing on screen during that ~1.5s wait. */
#components-reconnect-modal.components-reconnect-reloading .components-reload-visible[b-cf4z0fd4go] {
    display: block;
}


#components-reconnect-modal[b-cf4z0fd4go] {
    background-color: white;
    /* US-10.4.5 (ERR-04): fits a 375px phone even when iOS Dynamic Type or
       browser zoom raises the root font size — the old fixed 20rem (320px)
       could exceed the viewport once that happened. */
    width: min(20rem, calc(100vw - 2rem));
    max-width: 100%;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-cf4z0fd4go 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-cf4z0fd4go 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-cf4z0fd4go 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-cf4z0fd4go]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-cf4z0fd4go 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-cf4z0fd4go {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-cf4z0fd4go {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-cf4z0fd4go {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-cf4z0fd4go] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-cf4z0fd4go] {
    margin: 0;
    text-align: center;
}

/* US-10.4.5 (ERR-04/ERR-09): the app's own primary-button treatment — the
   old #6b9ed2 hard-code was not a token, had no font/min-height reset, and
   fell back to the browser's ~13px control font (a ~24px-tall button, the
   smallest control in the product on the screen where a mis-tap costs the
   most). var(--blue-dark) is app.css's own AA-passing blue. */
#components-reconnect-modal button[b-cf4z0fd4go] {
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    min-height: 44px;
    padding: .6rem 1.5rem;
    border: 0;
    border-radius: 10px;
    background-color: var(--blue-dark, #0a76cc);
    color: white;
    cursor: pointer;
}

    #components-reconnect-modal button:hover[b-cf4z0fd4go] {
        background-color: var(--navy, #053179);
    }

    #components-reconnect-modal button:active[b-cf4z0fd4go] {
        background-color: var(--blue-dark, #0a76cc);
    }

    #components-reconnect-modal button:focus-visible[b-cf4z0fd4go] {
        outline: 3px solid var(--blue, #0d94fe);
        outline-offset: 3px;
    }

.components-rejoining-animation[b-cf4z0fd4go] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-cf4z0fd4go] {
        position: absolute;
        border: 3px solid var(--blue, #0087ff);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-cf4z0fd4go 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-cf4z0fd4go] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-cf4z0fd4go {
    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;
    }
}

/* US-10.4.5 (STY-16/ERR-04): no slide-in and the ripple stops looping —
   a static ring instead, never a blank hole where the animation used to be.
   The dialog itself needs no override for the closed state: a <dialog>
   without the "open" attribute is display:none regardless of opacity, so
   setting opacity:1 unconditionally here only ever affects the open one. */
@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal[b-cf4z0fd4go],
    #components-reconnect-modal[open][b-cf4z0fd4go],
    #components-reconnect-modal[b-cf4z0fd4go]::backdrop {
        animation: none;
        transition: none;
        opacity: 1;
    }

    .components-rejoining-animation div[b-cf4z0fd4go] {
        animation: none;
        top: 0;
        left: 0;
        width: 80px;
        height: 80px;
        opacity: 1;
    }

    /* One static ring, not two identical overlapping ones. */
    .components-rejoining-animation div:nth-child(2)[b-cf4z0fd4go] {
        display: none;
    }
}
