#chat-widget {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}
#chat-widget-button {
    border-radius: 50%;
}
#chat-widget-button img {
    width: 5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    cursor: pointer;
}
#chat-widget-button:hover {
    outline: 2px dashed brown;
}
#chat-widget-button:hover::before {
    content: 'Chat with your coordinator';
    position: absolute;
    right: 4rem;
    bottom: 4rem;
    width: 12rem;
    background-color: brown;
    color: white;
    border-radius: 1rem 1rem 0 1rem;
    padding: 1rem;
} 
@keyframes chat-widget-button-animation {
    0% {
      transform: translateX(-0.2rem) translateY(0.3rem);
    }
    33% {
        transform: translateX(0.5rem) translateY(-0.1rem);
    }
    66% {
        transform: translateY(-0.2rem);
    }
    100% {
        transform: translateY(-0.1rem);
    }
}

#chat-widget-frame {
    order: -1;
    margin-right: 1rem;
    min-height: 40rem;
    max-height: 80vh;
    width: 25rem;
    border-radius: 1.5rem;
    border: 0;
    position: absolute;
    right: 100%;
    bottom: 0;
    transition: bottom 0.2s ease-in;
}
#chat-widget-frame.chat-widget-hidden {
    bottom: -100vh;
}

@media screen and (max-height: 950px) and (max-aspect-ratio: 1/1) {
    #chat-widget-frame.chat-widget-hidden {
        display: unset;
        bottom: -100%;
    }
    #chat-widget-frame {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        border-radius: 1.5rem 1.5rem 0 0;
    }
}