/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ── Visibility state machine ─────────────────────────────────────── */
.components-reconnect-first-attempt-visible[b-sr6yq2nbx6],
.components-reconnect-repeated-attempt-visible[b-sr6yq2nbx6],
.components-reconnect-failed-visible[b-sr6yq2nbx6],
.components-pause-visible[b-sr6yq2nbx6],
.components-resume-failed-visible[b-sr6yq2nbx6],
.components-rejoining-animation[b-sr6yq2nbx6],
.components-status-icon[b-sr6yq2nbx6] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-sr6yq2nbx6],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-sr6yq2nbx6],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-sr6yq2nbx6],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-sr6yq2nbx6],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-sr6yq2nbx6],
#components-reconnect-modal.components-reconnect-failed .components-status-icon[b-sr6yq2nbx6],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-sr6yq2nbx6],
#components-reconnect-modal.components-reconnect-paused .components-status-icon[b-sr6yq2nbx6],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-sr6yq2nbx6],
#components-reconnect-modal.components-reconnect-resume-failed .components-status-icon[b-sr6yq2nbx6] {
    display: block;
}

#components-reconnect-modal.components-reconnect-retrying[b-sr6yq2nbx6],
#components-reconnect-modal.components-reconnect-failed[b-sr6yq2nbx6] {
    display: block;
}

/* ── Dialog shell ─────────────────────────────────────────────────── */
#components-reconnect-modal[b-sr6yq2nbx6] {
    background-color: #1a1a2e;
    color: #f5f5f5;
    width: 18rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(233, 69, 96, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(233, 69, 96, 0.1);
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    position: fixed;
    inset: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: display 0.3s allow-discrete, overlay 0.3s allow-discrete;
    animation: reconnect-fadeOut-b-sr6yq2nbx6 0.3s both;

    &[open] {
        animation: reconnect-slideUp-b-sr6yq2nbx6 0.35s cubic-bezier(.05, .89, .25, 1.02) 0.05s,
                   reconnect-fadeIn-b-sr6yq2nbx6 0.3s ease-in-out 0.05s;
        animation-fill-mode: both;
    }
}

#components-reconnect-modal[b-sr6yq2nbx6]::backdrop {
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

/* ── Inner layout ─────────────────────────────────────────────────── */
.components-reconnect-container[b-sr6yq2nbx6] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
}

/* ── Icon area ────────────────────────────────────────────────────── */
.components-reconnect-icon-wrap[b-sr6yq2nbx6] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.components-status-icon[b-sr6yq2nbx6] {
    width: 22px;
    height: 22px;
    color: #e94560;
    flex-shrink: 0;
}

/* ── Spinner ──────────────────────────────────────────────────────── */
.components-rejoining-animation[b-sr6yq2nbx6] {
    position: relative;
    width: 28px;
    height: 28px;
}

    .components-rejoining-animation div[b-sr6yq2nbx6] {
        position: absolute;
        border: 2px solid #e94560;
        opacity: 1;
        border-radius: 50%;
        animation: reconnect-ripple-b-sr6yq2nbx6 1.6s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-sr6yq2nbx6] {
            animation-delay: -0.8s;
        }

@keyframes reconnect-ripple-b-sr6yq2nbx6 {
    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;
    }
}

/* ── Typography ───────────────────────────────────────────────────── */
.components-reconnect-text[b-sr6yq2nbx6] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.components-reconnect-title[b-sr6yq2nbx6] {
    margin: 0 0 0.15rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f5f5f5;
    letter-spacing: 0.01em;
}

.components-reconnect-subtitle[b-sr6yq2nbx6] {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 400;
    color: #848E9C;
    line-height: 1.4;
}

.components-reconnect-countdown[b-sr6yq2nbx6] {
    color: #e94560;
    font-weight: 600;
}

/* ── Actions ──────────────────────────────────────────────────────── */
.components-reconnect-actions[b-sr6yq2nbx6] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: auto;
    flex-shrink: 0;
}

.components-reconnect-btn[b-sr6yq2nbx6] {
    display: none;
    border: 1px solid rgba(233, 69, 96, 0.5);
    background-color: transparent;
    color: #e94560;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
    white-space: nowrap;
}

    .components-reconnect-btn:hover[b-sr6yq2nbx6] {
        background-color: #e94560;
        color: #ffffff;
        border-color: #e94560;
    }

    .components-reconnect-btn:active[b-sr6yq2nbx6] {
        background-color: #d42a4a;
        border-color: #d42a4a;
        color: #ffffff;
    }

#components-reconnect-modal.components-reconnect-failed #components-reconnect-button[b-sr6yq2nbx6],
#components-reconnect-modal.components-reconnect-paused #components-resume-button[b-sr6yq2nbx6],
#components-reconnect-modal.components-reconnect-resume-failed #components-resume-button[b-sr6yq2nbx6] {
    display: block;
}

/* ── Divider ──────────────────────────────────────────────────────── */
.components-reconnect-actions:has(.components-reconnect-btn)[b-sr6yq2nbx6] {
    margin-top: 0.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #2B2F36;
}

/* ── Keyframes ────────────────────────────────────────────────────── */
@keyframes reconnect-slideUp-b-sr6yq2nbx6 {
    0% {
        transform: translateY(24px) scale(0.97);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes reconnect-fadeIn-b-sr6yq2nbx6 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes reconnect-fadeOut-b-sr6yq2nbx6 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}
/* /Components/Shared/CookieConsentBanner.razor.rz.scp.css */
/* ── Cookie Consent Banner ────────────────────────────────────────────────────
   Uses the site's design tokens:
     background : #1a1a2e  (--color-dark-900)
     border     : #0f3460  (--color-dark-700)
     accent     : #e94560  (--color-brand-500)
     text       : #fff / rgba(255,255,255,.75)
   ──────────────────────────────────────────────────────────────────────────── */

/* Wrapper — fixed bottom bar, full width */
#cookie-consent-banner[b-6r778wos8e] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990; /* below blazor-error-ui (z-index:50) but still on top of page content */
    background-color: #1a1a2e;
    border-top: 1px solid #0f3460;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .45);

    /* Start invisible; JS adds .cc-visible to trigger the slide-up */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Visible state — JS toggles this class */
#cookie-consent-banner.cc-visible[b-6r778wos8e] {
    transform: translateY(0);
    opacity: 1;
}

/* Inner layout — text on the left, buttons on the right */
.cc-inner[b-6r778wos8e] {
    max-width: 80rem; /* matches max-w-7xl */
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Description text */
.cc-text[b-6r778wos8e] {
    flex: 1;
    min-width: 0;
}

.cc-text p[b-6r778wos8e] {
    font-size: 0.875rem; /* text-sm */
    line-height: 1.625;
    color: rgba(255, 255, 255, 0.80);
    margin: 0;
}

/* Privacy policy link inside the text */
.cc-link[b-6r778wos8e] {
    color: #e94560;
    text-decoration: underline;
    white-space: nowrap;
}

.cc-link:hover[b-6r778wos8e] {
    color: #ff4d71;
}

/* Button group */
.cc-actions[b-6r778wos8e] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Base button */
.cc-btn[b-6r778wos8e] {
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

/* Reject — outlined / ghost style */
.cc-btn-reject[b-6r778wos8e] {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.25);
}

.cc-btn-reject:hover[b-6r778wos8e] {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

/* Accept — filled brand colour */
.cc-btn-accept[b-6r778wos8e] {
    background-color: #e94560;
    color: #fff;
    border-color: #e94560;
}

.cc-btn-accept:hover[b-6r778wos8e] {
    background-color: #d42a4a;
    border-color: #d42a4a;
}

/* Customize — secondary outlined (ready for when it's enabled) */
.cc-btn-customize[b-6r778wos8e] {
    background-color: transparent;
    color: #e94560;
    border-color: #e9456050;
}

.cc-btn-customize:hover[b-6r778wos8e] {
    background-color: #e9456015;
    border-color: #e94560;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 40rem) {
    .cc-inner[b-6r778wos8e] {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cc-actions[b-6r778wos8e] {
        width: 100%;
        justify-content: flex-end;
    }
}
