#whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25D366;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    object-fit: contain;
    transition: transform 0.2s;
}

#whatsapp-icon:hover,
#whatsapp-icon:focus {
    transform: scale(1.1);
}

#whatsapp-icon:focus {
    outline: 2px solid #075E54;
}

#whatsapp-chatbot-wrapper {
    font-family: Arial, sans-serif;
    font-size: 14px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 300px;
    max-height: 400px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
}

#whatsapp-chatbot-wrapper.visible {
    display: flex;
    animation: slideIn 0.5s ease-in-out;
}

.chat-header {
    background: #075E54;
    color: #FFFFFF;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    align-items: center;
    position: relative;
}

.chat-header .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-header .chat-info {
    flex: 1;
}

.chat-header .chat-info h3 {
    margin: 0;
    font-size: 16px;
    color: white;
}

.chat-header .chat-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.chat-header .close-chat {
    background: #d32f2f;
    border: none;
    color: #FFFFFF;
    font-size: 18px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header .close-chat:hover,
.chat-header .close-chat:focus {
    background: #b71c1c;
}

.chat-header .close-chat:focus {
    outline: 2px solid #FFFFFF;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #E5DDD5; /* WhatsApp chat background color */
}

.whatsapp-message {
    margin: 8px 0;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.whatsapp-message.bot {
    background: #DCF8C6; /* Light green for bot messages */
    align-self: flex-start;
}

.whatsapp-message.user {
    background: #E2F0D9; /* Slightly darker green for user messages */
    margin-left: auto;
    align-self: flex-end;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 10px;
    background: #fff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
}

.chat-input input:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
}

.chat-input .send-message {
    background: #25D366;
    color: #FFFFFF;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.chat-input .send-message:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    #whatsapp-icon {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    #whatsapp-chatbot-wrapper {
        font-size: 12px;
        width: 90%;
        right: 5%;
        bottom: 10px;
    }

    .chat-header .chat-info h3 {
        font-size: 14px;
    }

    .chat-header .chat-info p {
        font-size: 10px;
    }

    .whatsapp-message {
        font-size: 12px;
        padding: 8px;
    }

    .chat-input input {
        font-size: 12px;
        padding: 6px;
    }

    .chat-input .send-message {
        font-size: 12px;
        padding: 6px 12px;
    }
}