/*
 * Bowlio connectivity banner.
 * Fixed bar shown at the top of the viewport while offline (read-only mode)
 * and briefly on reconnect. Markup is injected by connection-status.js.
 */

.bowlio-connection-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    background: #b02a37;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.bowlio-connection-banner.is-visible {
    transform: translateY(0);
}

.bowlio-connection-banner.is-online {
    background: #198754;
}

/* Keeps the fixed banner from covering the top navbar/content once shown. */
body.bowlio-connection-banner-active {
    padding-top: 40px;
}

@media (max-width: 576px) {
    .bowlio-connection-banner {
        font-size: 0.82rem;
        padding: 8px 12px;
    }
}
