/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ── Reconnect modal: subtle bottom-right toast ── */

.components-reconnect-first-attempt-visible[b-m9u7m8v4ob],
.components-reconnect-repeated-attempt-visible[b-m9u7m8v4ob],
.components-reconnect-failed-visible[b-m9u7m8v4ob],
.components-pause-visible[b-m9u7m8v4ob],
.components-resume-failed-visible[b-m9u7m8v4ob],
.components-rejoining-animation[b-m9u7m8v4ob] {
    display: none;
}

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

#components-reconnect-modal[b-m9u7m8v4ob] {
    background-color: #18181b;
    color: #e4e4e7;
    width: auto;
    max-width: 320px;
    margin: 0;
    padding: 14px 20px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    font-size: 13px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    top: auto;
    left: auto;
    opacity: 0;
    transition: display 0.3s allow-discrete, overlay 0.3s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-m9u7m8v4ob 0.3s both;
}

#components-reconnect-modal[open][b-m9u7m8v4ob] {
    animation: components-reconnect-modal-slideIn-b-m9u7m8v4ob 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

#components-reconnect-modal[b-m9u7m8v4ob]::backdrop {
    background-color: transparent;
}

@keyframes components-reconnect-modal-slideIn-b-m9u7m8v4ob {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.components-reconnect-container[b-m9u7m8v4ob] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

#components-reconnect-modal p[b-m9u7m8v4ob] {
    margin: 0;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
}

#components-reconnect-modal button[b-m9u7m8v4ob] {
    border: 0;
    background-color: #f97316;
    color: white;
    padding: 5px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

#components-reconnect-modal button:hover[b-m9u7m8v4ob] {
    background-color: #ea580c;
}

#components-reconnect-modal button:active[b-m9u7m8v4ob] {
    background-color: #c2410c;
}

/* Shrink the spinner for the toast layout */
.components-rejoining-animation[b-m9u7m8v4ob] {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

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

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

@keyframes components-rejoining-animation-b-m9u7m8v4ob {
    0% {
        top: 14px;
        left: 14px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    4.9% {
        top: 14px;
        left: 14px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    5% {
        top: 14px;
        left: 14px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0;
        left: 0;
        width: 28px;
        height: 28px;
        opacity: 0;
    }
}
