/* Chat Icon (Fixed on Bottom Right) */
.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0073e6;
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chat-icon:hover {
    background-color: #005bb5;
}

/* Support Widget (Chat Window) */
.support-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    max-height: 500px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none; /* Initially hidden */
    z-index: 9999;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Close Button for the Chat Widget */
.close-chat {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: #333;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    z-index: 999;
}

.close-chat:hover {
    color: #ff0000; /* Red on hover */
}

/* Persona Video Container */
#persona-container {
    width: 100%;
    height: 150px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#persona-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons to Toggle Text Chat / Voice Call */
#support-options {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

#support-options button {
    padding: 8px 16px;
    background-color: #0073e6;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#support-options button:hover {
    background-color: #005bb5;
}

/* Text Chat Container */
#text-chat-container {
    padding: 10px;
    display: none;
    overflow-y: auto;
    max-height: 280px;
    font-size: 12px;
}

/*#text-chat-messages {
    flex-grow: 1;
    max-height: 200px;
    overflow-y: auto;
}*/

#text-chat-input {
    display: flex;
    justify-content: space-between;
}

#text-chat-input input {
    width: 80%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#text-chat-input button {
    padding: 8px 12px;
    background-color: #0073e6;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#text-chat-input button:hover {
    background-color: #005bb5;
}

#voice-call-container {
    max-height: 280px; /* Example: Adjust based on your layout */
    overflow-y: auto; /* Allow scrolling if content overflows */
}

/* Voice Call Container */
#voice-call-container {
    padding: 10px;
    display: none;
    text-align: center;
    font-size: 12px;
}

#call-status {
    font-size: 16px;
    margin-bottom: 10px;
}

#start-call, #end-call {
    padding: 10px 20px;
    background-color: #0073e6;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#start-call:hover, #end-call:hover {
    background-color: #005bb5;
}

#end-call {
    display: none;
}

/* Ensure the chat window is scrollable */
.support-widget::-webkit-scrollbar {
    width: 5px;
}

.support-widget::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.support-widget::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

/* Add this CSS for the chat container scrolling */
#call-messages, #text-chat-messages {
    overflow-y: auto;   /* Enable scrolling */
    text-align: left;
}
