.test-alert {
    position: fixed;
    bottom: 20px;
    right: 10px;
    
    /*
    left: 50%;
    transform: translateX(-50%);
    */

    display: flex;
    align-items: center;
    gap: 16px;

    width: min(550px, calc(100% - 40px));
    padding: 16px 20px;

    background: #fff8e6;
    border: 2px solid #f5a623;
    border-radius: 12px;

    color: #7a4d00;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

    z-index: 1000000;

    animation:
        slideUp .5s ease-out,
        alertGlow 2s ease-in-out .5s infinite;
}

.alert-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;

    color: #fff;
    background: #f5a623;
    border-radius: 50%;

    animation: pulseShake 2.5s infinite;
}

.alert-content h4 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.alert-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Slide in from bottom */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(120%);
        /*transform: translate(-50%, 120%);*/
    }

    to {
        opacity: 1;
        transform: translateY(0);
        /*transform: translate(-50%, 0);*/
    }
}

/* Glowing border */
@keyframes alertGlow {
    0% {
        box-shadow: 0 0 8px rgba(245, 166, 35, 0.25);
    }

    50% {
        box-shadow:
            0 0 18px rgba(245, 166, 35, 0.6),
            0 0 35px rgba(245, 166, 35, 0.3);
    }

    100% {
        box-shadow: 0 0 8px rgba(245, 166, 35, 0.25);
    }
}

/* Pulse + occasional shake */
@keyframes pulseShake {
    0%, 82%, 100% {
        transform: scale(1) rotate(0deg);
    }

    40% {
        transform: scale(1.08);
    }

    84% {
        transform: scale(1.12) rotate(-10deg);
    }

    86% {
        transform: scale(1.12) rotate(10deg);
    }

    88% {
        transform: scale(1.12) rotate(-8deg);
    }

    90% {
        transform: scale(1.12) rotate(8deg);
    }

    92% {
        transform: scale(1);
    }
}