#chatWidgetContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    font-family: inherit;
}

#chatToggleBtn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgb(33, 37, 41);
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#chatToggleBtn:hover {
    transform: scale(1.05);
}

#chatWindow {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    max-width: 90vw;
    height: 420px;
    max-height: 70vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#chatWindowHeader {
    background-color: rgb(33, 37, 41);
    color: #fff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

#chatCloseBtn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

#chatMessages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f8f9fa;
    font-size: 0.9rem;
}

.chat-message {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
}

.chat-message.user {
    background-color: #0d6efd;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.chat-message.bot {
    background-color: #e9ecef;
    color: #212529;
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

.chat-typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
}

.chat-typing-text {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

.chat-typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #6c757d;
    display: inline-block;
    animation: chat-typing-bounce 1.2s infinite ease-in-out;
}

.chat-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes chat-typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

#chatInputArea {
    display: flex;
    border-top: 1px solid #dee2e6;
    padding: 8px;
    gap: 6px;
}

#chatInput {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 6px 12px;
    outline: none;
    font-size: 0.9rem;
}

#chatSendBtn {
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatStarterQuestions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-starter-title {
    margin: 0 0 4px 0;
    font-size: 0.85rem;
    color: #495057;
    font-weight: 600;
}

.chat-starter-btn {
    background-color: #fff;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    border-radius: 14px;
    padding: 6px 10px;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.chat-starter-btn:hover {
    background-color: #0d6efd;
    color: #fff;
}

