/* Tietotalon chatbotin tyylit */

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

/* Toggle button styling */
#toggle-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #004A90;
    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 button styling */
#close-chat {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #004A90;
    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 styling */
#banner {
    background-color: #004A90;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.chatbot-footer a {
    color: #004A90;
    text-decoration: none;
}

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

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

/* Hide references in chat responses */
.webchat__stackedlayout__item--reference {
    display: none !important; /* Hides the reference section */
}

/* Avatar styling */
.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;
    }

}