﻿.aviso-instabilidade {
    position: fixed;
    right: 40px;
    bottom: 100px;
    pointer-events: none;
    font-family: -apple-system,'Segoe UI',Helvetica,Arial,sans-serif;
    z-index: 100;
}

@keyframes aviso-pop {
    from {
        opacity:0;
        transform:translateY(8px) scale(.96);
    }
    to {
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

@keyframes aviso-pulse {
    0%,100% {
        box-shadow:0 0 0 0 rgba(230,126,34,.45);
    }
    50% {
        box-shadow:0 0 0 10px rgba(230,126,34,0);
    }
}

.aviso-card {
    position: absolute;
    right: 0px;
    bottom: 96px;
    width: 320px;
    max-width: calc(100vw - 48px);
    background: #fdfdfc;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(20,20,30,.22);
    overflow: hidden;
    pointer-events: auto;
    animation: aviso-pop .18s ease-out;
    display: none;
}

.aviso-card.open {
    display: block;
}

.aviso-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #e67e22;
    color: #fff;
}

.aviso-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aviso-title {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
}

.aviso-close {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.18);
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aviso-close:hover {
    background: rgba(255,255,255,.3);
}

.aviso-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aviso-body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #3a3a45;
}

.aviso-whatsapp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: #34a853;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 14px;
    border-radius: 10px;
}

.aviso-whatsapp:hover {
    background: #2c9349;
}

.aviso-toggle {
    position: absolute;
    right: 0px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #e67e22;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 6px 18px rgba(20,20,30,.28);
    animation: aviso-pulse 2.4s ease-in-out infinite;
}

.aviso-icon-close {
    display: none;
}

@media (max-width: 600px) {
    .aviso-instabilidade {
        right: 8px;
        bottom: 56px;
    }

    .aviso-toggle {
        width: 46px;
        height: 46px;
    }
}