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

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

#components-reconnect-modal[b-2fdyw8efh1] {
    width: min(22rem, calc(100vw - 32px));
    margin: 22vh auto;
    padding: 32px;
    border: 1px solid var(--line-soft);
    border-radius: 0;
    background: var(--panel-raised);
    color: var(--ink);
}

#components-reconnect-modal[b-2fdyw8efh1]::backdrop {
    background-color: color-mix(in srgb, var(--surface) 80%, transparent);
}

.components-reconnect-container[b-2fdyw8efh1] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

#components-reconnect-modal p[b-2fdyw8efh1] {
    margin: 0;
}

#components-reconnect-modal button[b-2fdyw8efh1] {
    min-height: 40px;
    padding: 0 24px;
    border: 0;
    background: var(--accent);
    color: var(--on-accent);
    font: inherit;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

#components-reconnect-modal button:hover[b-2fdyw8efh1] {
    background: var(--ink);
    color: var(--surface);
}

/* Lichtkante, die über eine Linie wandert, statt eines Ladekreises */
.components-rejoining-animation[b-2fdyw8efh1] {
    position: relative;
    width: 100%;
    height: 1px;
    background: var(--line-soft);
    overflow: hidden;
}

.components-rejoining-animation div[b-2fdyw8efh1] {
    position: absolute;
    top: 0;
    width: 30%;
    height: 1px;
    background: var(--ink);
    animation: components-rejoining-sweep-b-2fdyw8efh1 1.6s ease-in-out infinite;
}

.components-rejoining-animation div:nth-child(2)[b-2fdyw8efh1] {
    display: none;
}

@keyframes components-rejoining-sweep-b-2fdyw8efh1 {
    0% {
        left: -30%;
    }

    100% {
        left: 100%;
    }
}
