/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Connection-lost notice: a slim banner at the top that never covers or blocks the page underneath, so
   anything on screen (e.g. a token that is shown only once) stays readable and copyable. */
.components-reconnect-first-attempt-visible[b-6j6v1lsc2j],
.components-reconnect-repeated-attempt-visible[b-6j6v1lsc2j],
.components-reconnect-failed-visible[b-6j6v1lsc2j],
.components-pause-visible[b-6j6v1lsc2j],
.components-resume-failed-visible[b-6j6v1lsc2j],
.components-rejoining-animation[b-6j6v1lsc2j] {
    display: none;
}

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

#components-reconnect-modal[b-6j6v1lsc2j] {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.5rem 1rem;
    border: 0;
    border-bottom: 1px solid #e0b252;
    background-color: #fff4d6;
    color: #4a3800;
    font-size: 0.9rem;
    z-index: 1050;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.components-reconnect-container[b-6j6v1lsc2j] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.75rem;
}

#components-reconnect-modal p[b-6j6v1lsc2j] {
    margin: 0;
}

#components-reconnect-modal button[b-6j6v1lsc2j] {
    border: 1px solid #4a3800;
    background-color: transparent;
    color: #4a3800;
    padding: 1px 12px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-6j6v1lsc2j] {
        background-color: #4a3800;
        color: #fff4d6;
    }

.components-rejoining-animation[b-6j6v1lsc2j] {
    width: 0.8rem;
    height: 0.8rem;
    border: 2px solid #c08a00;
    border-top-color: transparent;
    border-radius: 50%;
    animation: components-rejoining-spin-b-6j6v1lsc2j 0.9s linear infinite;
}

    .components-rejoining-animation div[b-6j6v1lsc2j] {
        display: none;
    }

@keyframes components-rejoining-spin-b-6j6v1lsc2j {
    to { transform: rotate(360deg); }
}

/* The "show" class stays on while retrying; show one status line at a time. */
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-first-attempt-visible[b-6j6v1lsc2j],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-first-attempt-visible[b-6j6v1lsc2j],
#components-reconnect-modal.components-reconnect-failed .components-rejoining-animation[b-6j6v1lsc2j] {
    display: none;
}
