/* Notificação topo (estilo WhatsApp) — uma de cada vez, toque abre o destino */

.home-wa-notif {
    position: fixed;
    top: calc(var(--site-header-sticky-offset, 65px) + 10px);
    left: 0;
    right: 0;
    z-index: 200;
    width: min(400px, calc(100vw - 20px));
    margin: 0 auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.home-wa-notif.is-ready {
    opacity: 1;
    pointer-events: auto;
}

.home-wa-notif.is-ready .home-wa-notif__banner {
    animation: home-wa-notif-drop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-wa-notif.is-dismissing {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.home-wa-notif.is-dismissing .home-wa-notif__banner {
    transform: translateY(-28px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes home-wa-notif-drop {
    from {
        transform: translateY(-120%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.home-wa-notif[hidden] {
    display: none !important;
}

.home-wa-notif__banner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 11px 12px 11px 11px;
    border: none;
    border-radius: 16px;
    background: #fff;
    color: #111b21;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(15, 23, 42, 0.06);
    font: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-wa-notif__banner.is-swiping {
    transition: none;
    cursor: grabbing;
}

.home-wa-notif__banner--linked .home-wa-notif__chev {
    color: #00a2ed;
}

.home-wa-notif__banner:hover,
.home-wa-notif__banner:focus-visible {
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(15, 23, 42, 0.08);
    outline: none;
}

.home-wa-notif__banner:active:not(.is-swiping) {
    transform: scale(0.99);
}

.home-wa-notif__banner.is-live {
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(37, 211, 102, 0.35);
}

.home-wa-notif__banner--avaliacao {
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
}

.home-wa-notif__avatar-wrap {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-wa-notif__avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
    pointer-events: none;
}

.home-wa-notif__avatar-ring[hidden] {
    display: none !important;
}

.home-wa-notif__avatar {
    position: relative;
    z-index: 1;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.home-wa-notif__banner--avaliacao .home-wa-notif__avatar {
    background: linear-gradient(145deg, hsl(var(--av-hue, 210) 42% 38%) 0%, hsl(var(--av-hue, 210) 38% 28%) 100%);
}

.home-wa-notif__avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.home-wa-notif__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-wa-notif__content {
    flex: 1 1 auto;
    min-width: 0;
}

.home-wa-notif__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 1px;
}

.home-wa-notif__app {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111b21;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-wa-notif__time {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: #667781;
}

.home-wa-notif__category {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #25d366;
    margin-bottom: 2px;
}

.home-wa-notif__banner:not(.is-live) .home-wa-notif__category {
    color: #00a2ed;
}

.home-wa-notif__preview {
    display: block;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #3b4a54;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.35s ease;
}

.home-wa-notif__preview--avaliacao {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.home-wa-notif__av-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.home-wa-notif__av-line {
    display: block;
    line-height: 1.3;
    color: #3b4a54;
}

.home-wa-notif__av-sub {
    font-weight: 400;
}

.home-wa-notif__verified {
    display: inline-flex;
    vertical-align: middle;
    margin: 0 2px 0 4px;
    transform: translateY(-1px);
}

.home-wa-notif__stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}

.home-wa-notif__excerpt {
    display: block;
    font-size: 0.74rem;
    line-height: 1.35;
    color: #667781;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-wa-notif__preview.is-fading {
    opacity: 0.35;
}

.home-wa-notif__preview strong {
    font-weight: 700;
    color: #111b21;
}

.home-wa-notif__chev {
    flex-shrink: 0;
    color: #aebac1;
}

.live-count {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .home-wa-notif {
        width: calc(100vw - 16px);
        top: calc(var(--site-header-sticky-offset, 65px) + 8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-wa-notif,
    .home-wa-notif__preview,
    .home-wa-notif__banner {
        transition: none;
        animation: none;
    }
}
