#kilimo-chat-button {
    position: fixed;
    bottom: 50px;
    right: 45px;
    background: #0a66c2;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 99999;
}

#kilimo-chat-window {
    position: fixed;
    bottom: 120px;
    right: 45px;
    width: 330px;
    height: 450px;
    background: #ffffff;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 99999;
    font-family: 'Inter';
}

.chat-header {
    background: #0a66c2;
    color: white;
    padding: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter';
}

#chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    font-family: 'Inter';
}

.chat-message {
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    max-width: 80%;
    word-break: break-word;
    font-size: 14px;
}

.chat-user {
    background: #d6e8ff;
    align-self: flex-end;
}

.chat-bot {
    background: #eeeeee;
    align-self: flex-start;
}

#chat-form {
    display: flex;
    border-top: 1px solid #ddd;
    font-family: 'Inter';
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    font-family: 'Inter';
}

#chat-form button {
    padding: 10px 15px;
    background: #0a66c2;
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Inter';
}

#chat-close {
    background: none;
    border: none;
    cursor: pointer;
    height: 24px;
    padding-right: 0;
}

.chat-title {
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter';
}

#kilimo-chat-window.open {
    display: flex;
}

/* Typing loader styles */
.typing-loader {
    background: #eeeeee !important;
    align-self: flex-start !important;
    padding: 12px 16px !important;
}

.typing-loader.hidden {
    display: none;
}

.typing-loader.visible {
    display: block;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.typing-dots .dot {
    font-size: 18px;
    color: #666;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}
