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

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-wj2y71nfkg],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-wj2y71nfkg],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-wj2y71nfkg],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-wj2y71nfkg],
#components-reconnect-modal.components-reconnect-retrying[b-wj2y71nfkg],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-wj2y71nfkg],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-wj2y71nfkg],
#components-reconnect-modal.components-reconnect-failed[b-wj2y71nfkg],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-wj2y71nfkg] {
    display: block;
}


#components-reconnect-modal[b-wj2y71nfkg] {
    background-color: white;
    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-wj2y71nfkg 0.5s both;
    &[open]

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

#components-reconnect-modal button[b-wj2y71nfkg] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-wj2y71nfkg] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-wj2y71nfkg] {
        background-color: #6b9ed2;
    }

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

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

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

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

/* Branded delayed reconnect treatment. These rules intentionally override the
   scaffolded pulse animation above while retaining Blazor's state classes. */
#components-reconnect-modal[b-wj2y71nfkg] {
    width: min(22rem, calc(100vw - 2rem));
    border: 1px solid #eadcc8;
    border-radius: 1rem;
    background: #fffefa;
    color: #38281f;
    box-shadow: 0 18px 60px rgba(56, 40, 31, .22);
}

#components-reconnect-modal[b-wj2y71nfkg]::backdrop {
    background: rgba(56, 40, 31, .18);
    backdrop-filter: blur(2px);
}

#components-reconnect-modal p[b-wj2y71nfkg] { color: #6d5647; font: .9rem/1.5 'DM Sans', system-ui, sans-serif; }
#components-reconnect-modal button[b-wj2y71nfkg] { border: 1px solid #b84e22; border-radius: .65rem; background: #b84e22; padding: .65rem 1.4rem; font: 700 .85rem 'DM Sans', system-ui, sans-serif; cursor: pointer; }
#components-reconnect-modal button:hover[b-wj2y71nfkg] { background: #963d19; }

.components-rejoining-animation[b-wj2y71nfkg] { position: relative; width: 136px; height: 94px; }
.components-rejoining-animation .reconnect-seesaw[b-wj2y71nfkg],
.components-rejoining-animation .reconnect-shelf[b-wj2y71nfkg],
.components-rejoining-animation .reconnect-tree[b-wj2y71nfkg],
.components-rejoining-animation .reconnect-box[b-wj2y71nfkg] {
    opacity: 1;
    border: 0;
    animation: none;
}

.components-rejoining-animation .reconnect-seesaw[b-wj2y71nfkg] {
    position: absolute;
    z-index: 2;
    left: 5px;
    top: 18px;
    width: 126px;
    height: 52px;
    transform-origin: 50% 45px;
    animation: reconnect-seesaw-rock-b-wj2y71nfkg 2.8s ease-in-out infinite;
}

.components-rejoining-animation .reconnect-shelf[b-wj2y71nfkg] {
    position: absolute;
    left: 0;
    top: 42px;
    width: 126px;
    height: 9px;
    border: 0;
    border-radius: 3px 3px 6px 6px;
    background: #b84e22;
}

.components-rejoining-animation .reconnect-shelf span[b-wj2y71nfkg] {
    position: absolute;
    inset: 2px 7px auto;
    height: 2px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .28);
}

.components-rejoining-animation .reconnect-box[b-wj2y71nfkg] {
    position: absolute;
    z-index: 2;
    top: 12px;
    width: 31px;
    height: 29px;
    border: 2px solid #b84e22;
    border-radius: 3px 3px 5px 5px;
    background: #f5dfa9;
    transform-origin: 50% 100%;
}

.components-rejoining-animation .reconnect-box-left[b-wj2y71nfkg] {
    left: 10px;
    background: #f5dfa9;
    animation: reconnect-box-left-b-wj2y71nfkg 2.8s ease-in-out infinite;
}

.components-rejoining-animation .reconnect-box-right[b-wj2y71nfkg] {
    right: 10px;
    background: #efc97e;
    animation: reconnect-box-right-b-wj2y71nfkg 2.8s ease-in-out infinite;
}

.reconnect-box[b-wj2y71nfkg]::before {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    top: -7px;
    height: 7px;
    border: 2px solid #b84e22;
    border-radius: 4px 4px 2px 2px;
    background: inherit;
}

.reconnect-box i[b-wj2y71nfkg] {
    position: absolute;
    left: 50%;
    top: 0;
    width: 5px;
    height: 8px;
    transform: translateX(-50%);
    background: rgba(184, 78, 34, .18);
}

.reconnect-box span[b-wj2y71nfkg] {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 6px;
    height: 8px;
    border: 1.5px solid #b84e22;
    border-radius: 2px;
    background: rgba(255, 254, 250, .58);
}

.components-rejoining-animation .reconnect-tree[b-wj2y71nfkg] {
    position: absolute;
    z-index: 1;
    left: 63px;
    top: 49px;
    width: 10px;
    height: 39px;
    border: 0;
    border-radius: 5px 5px 3px 3px;
    background: #9c552c;
    transform-origin: bottom center;
}

.reconnect-tree[b-wj2y71nfkg]::before,
.reconnect-tree[b-wj2y71nfkg]::after {
    content: '';
    position: absolute;
    top: -2px;
    width: 8px;
    height: 25px;
    border-radius: 6px;
    background: #9c552c;
    transform-origin: 50% 100%;
}

.reconnect-tree[b-wj2y71nfkg]::before { left: -9px; transform: rotate(-38deg); }
.reconnect-tree[b-wj2y71nfkg]::after { right: -9px; transform: rotate(38deg); }

.reconnect-tree span[b-wj2y71nfkg],
.reconnect-tree span[b-wj2y71nfkg]::before,
.reconnect-tree span[b-wj2y71nfkg]::after {
    position: absolute;
    bottom: -1px;
    height: 6px;
    border-radius: 99px;
    background: #9c552c;
}

.reconnect-tree span[b-wj2y71nfkg] { left: -15px; width: 40px; }
.reconnect-tree span[b-wj2y71nfkg]::before,
.reconnect-tree span[b-wj2y71nfkg]::after { content: ''; width: 25px; }
.reconnect-tree span[b-wj2y71nfkg]::before { left: -7px; transform: rotate(-18deg); }
.reconnect-tree span[b-wj2y71nfkg]::after { right: -7px; transform: rotate(18deg); }

@keyframes reconnect-seesaw-rock-b-wj2y71nfkg {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg); }
}

@keyframes reconnect-box-left-b-wj2y71nfkg {
    0%, 100% { transform: translateX(-8px) rotate(-9deg); }
    42%, 58% { transform: translateX(5px) rotate(1deg); }
}

@keyframes reconnect-box-right-b-wj2y71nfkg {
    0%, 100% { transform: translateX(-5px) rotate(-1deg); }
    50% { transform: translateX(8px) rotate(9deg); }
}

@media (prefers-reduced-motion: reduce) {
    .components-rejoining-animation .reconnect-seesaw[b-wj2y71nfkg],
    .components-rejoining-animation .reconnect-box[b-wj2y71nfkg] { animation: none; }
    .components-rejoining-animation .reconnect-seesaw[b-wj2y71nfkg] { transform: rotate(-2deg); }
}
