/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-h5ywf9u8c9],
.components-reconnect-repeated-attempt-visible[b-h5ywf9u8c9],
.components-reconnect-failed-visible[b-h5ywf9u8c9],
.components-pause-visible[b-h5ywf9u8c9],
.components-resume-failed-visible[b-h5ywf9u8c9],
.components-rejoining-animation[b-h5ywf9u8c9] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-h5ywf9u8c9],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-h5ywf9u8c9],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-h5ywf9u8c9],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-h5ywf9u8c9],
#components-reconnect-modal.components-reconnect-retrying[b-h5ywf9u8c9],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-h5ywf9u8c9],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-h5ywf9u8c9],
#components-reconnect-modal.components-reconnect-failed[b-h5ywf9u8c9],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-h5ywf9u8c9] {
    display: block;
}


#components-reconnect-modal[b-h5ywf9u8c9] {
    /* The scroll stops here. Without it a wheel or a swipe that runs past the end of the dialog
       carries on scrolling the screen behind it, which on a dead circuit is a page nobody can use. */
    overscroll-behavior: contain;
    background-color: var(--jru-surface);
    color: var(--jru-text);
    width: 20rem;
    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-h5ywf9u8c9 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-h5ywf9u8c9 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-h5ywf9u8c9 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-h5ywf9u8c9]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-h5ywf9u8c9 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-h5ywf9u8c9 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-h5ywf9u8c9 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-h5ywf9u8c9 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-h5ywf9u8c9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-h5ywf9u8c9] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-h5ywf9u8c9] {
    border: 0;
    background-color: var(--jru-primary);
    color: var(--jru-on-primary);
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-h5ywf9u8c9] {
        background-color: var(--jru-primary-hover);
    }

    #components-reconnect-modal button:active[b-h5ywf9u8c9] {
        background-color: var(--jru-primary);
    }

.components-rejoining-animation[b-h5ywf9u8c9] {
    position: relative;
    width: 80px;
    height: 80px;
}

    /* The ring grows by transform and fades by opacity, which the compositor animates on its own.
       Animating top, left, width and height re-laid the dialog out on every frame. */
    .components-rejoining-animation div[b-h5ywf9u8c9] {
        position: absolute;
        top: 0;
        left: 0;
        width: 80px;
        height: 80px;
        box-sizing: border-box;
        border: 3px solid var(--jru-primary);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-h5ywf9u8c9 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-h5ywf9u8c9] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-h5ywf9u8c9 {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    4.9% {
        transform: scale(0);
        opacity: 0;
    }

    5% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Movement is stopped for anybody who has asked for less of it, as it is everywhere else in the
   product: the notice appears without sliding and the ring stands still. */
@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal[b-h5ywf9u8c9],
    #components-reconnect-modal[open][b-h5ywf9u8c9],
    #components-reconnect-modal[b-h5ywf9u8c9]::backdrop {
        animation: none;
        opacity: 1;
    }

    .components-rejoining-animation div[b-h5ywf9u8c9] {
        animation: none;
        opacity: 1;
    }

    .components-rejoining-animation div:nth-child(2)[b-h5ywf9u8c9] {
        display: none;
    }
}
