/* Banner de alertas — barra fina no topo, carrossel e modo compacto ao scroll */
.lsb-alert-banner-root {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    pointer-events: none;
}

.lsb-alert-banner-carousel {
    position: relative;
    pointer-events: auto;
}

.lsb-alert-banner {
    position: relative;
    display: none;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    text-align: left;
    padding: 0.4rem 2.5rem 0.4rem 0.65rem;
    min-height: 0;
    font-family: var(--font-family-body, 'Inter', system-ui, sans-serif);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

.lsb-alert-banner.is-active {
    display: flex;
}

.lsb-alert-banner.is-entering {
    animation: lsb-alert-fade-in 0.28s ease;
}

@keyframes lsb-alert-fade-in {
    from { opacity: 0.7; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

.lsb-alert-banner,
.lsb-alert-banner p,
.lsb-alert-banner span,
.lsb-alert-banner__title,
.lsb-alert-banner__text,
.lsb-alert-banner__badge,
.lsb-alert-banner__cta {
    color: #ffffff !important;
}

.lsb-alert-banner--danger {
    background: linear-gradient(90deg, #b71c1c 0%, #8b0000 100%);
    border-bottom-color: rgba(255, 171, 145, 0.45);
}

.lsb-alert-banner--warning {
    background: linear-gradient(90deg, #e65100 0%, #bf360c 100%);
    border-bottom-color: rgba(255, 224, 178, 0.45);
}

.lsb-alert-banner--info {
    background: linear-gradient(90deg, #1565c0 0%, #0d47a1 100%);
    border-bottom-color: rgba(144, 202, 249, 0.45);
}

.lsb-alert-banner--success {
    background: linear-gradient(90deg, #2e7d32 0%, #1b5e20 100%);
    border-bottom-color: rgba(165, 214, 167, 0.45);
}

.lsb-alert-banner--danger.lsb-alert-banner--pulse {
    animation: lsb-alert-pulse 2.2s ease-in-out infinite;
}

@keyframes lsb-alert-pulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(198, 40, 40, 0.35); }
    50% { box-shadow: 0 2px 14px rgba(255, 171, 145, 0.45); }
}

.lsb-alert-banner__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.lsb-alert-banner__head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.lsb-alert-banner__badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.2rem;
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2) !important;
    line-height: 1.2;
}

.lsb-alert-banner__title {
    font-family: var(--font-family-heading, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1.25;
    margin: 0 !important;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.lsb-alert-banner__text {
    margin: 0 !important;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    opacity: 0.95;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.lsb-alert-banner__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0.28rem 0.6rem;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #16181c !important;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lsb-alert-banner__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.lsb-alert-banner__close {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, transform 0.15s ease;
}

.lsb-alert-banner__close:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-50%) scale(1.06);
}

.lsb-alert-banner__dots {
    position: absolute;
    right: 2.15rem;
    bottom: 0.2rem;
    left: auto;
    transform: none;
    display: flex;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
    z-index: 2;
}

.lsb-alert-banner__dot {
    width: 0.35rem;
    height: 0.35rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.lsb-alert-banner__dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

/* Modo compacto ao fazer scroll — só título */
.lsb-alert-banner-root--compact .lsb-alert-banner.is-active {
    padding: 0.32rem 2.35rem 0.32rem 0.65rem;
    min-height: 2rem;
}

.lsb-alert-banner-root--compact .lsb-alert-banner__main {
    flex-direction: row;
    align-items: center;
}

.lsb-alert-banner-root--compact .lsb-alert-banner__head {
    flex: 1;
    min-width: 0;
}

.lsb-alert-banner-root--compact .lsb-alert-banner__badge,
.lsb-alert-banner-root--compact .lsb-alert-banner__text,
.lsb-alert-banner-root--compact .lsb-alert-banner__cta {
    display: none !important;
}

.lsb-alert-banner-root--compact .lsb-alert-banner__title {
    font-size: 0.8125rem;
}

.lsb-alert-banner-root--compact .lsb-alert-banner__dots {
    bottom: 0.28rem;
}

body.has-lsb-alert-banner {
    padding-top: var(--lsb-alert-offset, 0);
}

@media (min-width: 640px) {
    .lsb-alert-banner {
        padding: 0.45rem 2.65rem 0.45rem 0.85rem;
        gap: 0.55rem 0.85rem;
    }

    .lsb-alert-banner__title {
        font-size: 0.875rem;
    }

    .lsb-alert-banner__text {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }
}

@media (min-width: 900px) {
    .lsb-alert-banner__main {
        flex-direction: row;
        align-items: center;
        gap: 0.65rem;
    }

    .lsb-alert-banner__head {
        flex: 0 1 auto;
        max-width: 42%;
    }

    .lsb-alert-banner__text {
        flex: 1;
        -webkit-line-clamp: 1;
    }
}
