#chat-bubble {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    padding: 0;

    color: white;

    background-color: #d71920;
    border: none;
    border-radius: 50%;

    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#chat-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

#chat-bubble:active {
    transform: scale(0.96);
}

#chat-bubble:focus-visible {
    outline: 3px solid rgba(215, 25, 32, 0.35);
    outline-offset: 4px;
}

#chat-bubble .chat-bubble-icon,
#chat-bubble .chat-bubble-close-icon {
    position: absolute;
    display: block;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        filter 0.2s ease;
}

#chat-bubble .chat-bubble-icon {
    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 50%;
}

#chat-bubble .chat-bubble-close-icon {
    width: 32px;
    height: 32px;

    color: white;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

#chat-bubble[aria-expanded="false"] .chat-bubble-icon {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

#chat-bubble[aria-expanded="false"] .chat-bubble-close-icon {
    opacity: 0;
    transform: scale(0.25);
    filter: blur(4px);
}

#chat-bubble[aria-expanded="true"] .chat-bubble-icon {
    opacity: 0;
    transform: scale(0.25);
    filter: blur(4px);
}

#chat-bubble[aria-expanded="true"] .chat-bubble-close-icon {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    #chat-bubble,
    #chat-bubble .chat-bubble-icon,
    #chat-bubble .chat-bubble-close-icon {
        transition: none;
    }
}