/* Chat container styling */
#chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: 600px;
    display: none; /* Initially hidden */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    z-index: 100000; /* ettei mene läpinäkyvän headerin alle*/
    background-color: white;
    flex-direction: column;
}

#toggle-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #32B3CA;
    color: white;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 30px;
    text-align: center;
    line-height: 50px;
    z-index: 1001;
}

#close-chat {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #32B3CA;
    color: white;
    border: none;
    border-radius: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 35px;
    text-align: center;
    line-height: 30px;
    z-index: 100002;
}

#banner {
    background-color: #32B3CA;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#banner img {
    max-height: 100%;
    max-width: 100%;
}

.chatbot-footer {
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
}

.chatbot-footer a {
    color: #32B3CA;
    text-decoration: none;
}

#webchat {
    flex: 1;
    overflow-y: auto; /* Enables vertical scrolling */
    padding: 10px;
    box-sizing: border-box;
}

#webchat * {
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.webchat__stackedlayout__item--reference {
    display: none !important; /* Hides the reference section */
}

.webchat__stackedlayout__avatar {
    width: 40px !important; /* Adjust width to fit the circle */
    height: 40px !important; /* Adjust height to fit the circle */
    border-radius: 50% !important; /* Ensure it's circular */
    overflow: hidden; /* Crop overflowing content */
}

@media (max-height: 800px) or (max-width: 600px) {

    #chat-container {
        width: 90vw;
        max-width: 400px;
        height: 70vh;
        max-height: 600px;
    }

}