#chat-attention {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 999997;

    max-width: 220px;
    padding: 10px 14px;

    color: #1f2937;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;

    background-color: white;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);

    cursor: pointer;
    pointer-events: none;

    opacity: 0;
    transform: translateY(6px) scale(0.95);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

#chat-attention[hidden] {
    display: none;
}

#chat-attention::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: -6px;

    width: 12px;
    height: 12px;

    background-color: white;
    transform: rotate(45deg);
    border-radius: 2px;
}

#chat-attention.chat-attention--visible {
    pointer-events: auto;

    opacity: 1;
    transform: translateY(0) scale(1);
}

#chat-attention-message {
    position: relative;
    z-index: 1;

    margin: 0;
}

@keyframes chat-bubble-shake {
    0%,
    100% {
        transform: translateX(0) rotate(0);
    }

    20% {
        transform: translateX(-4px) rotate(-6deg);
    }

    40% {
        transform: translateX(4px) rotate(6deg);
    }

    60% {
        transform: translateX(-3px) rotate(-4deg);
    }

    80% {
        transform: translateX(3px) rotate(4deg);
    }
}

#chat-bubble.chat-bubble--shake {
    animation: chat-bubble-shake 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
    #chat-attention {
        transition: none;
    }

    #chat-bubble.chat-bubble--shake {
        animation: none;
    }
}
