/* General styling for the WhatsApp widget */
#whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    color: #fff;
}

/* Minimized Icon */
#whatsapp-icon {
    display: block;
    background-color: #25D366;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#whatsapp-icon:hover {
    transform: scale(1.1);
}

/* Popup Content */
#whatsapp-popup {
    display: none;
    width: 220px;
    background-color: #25D366;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}

.whatsapp-message {
    padding: 15px;
    background-color: #333;
    color: #ffffff;
    font-size: 14px;
    border-radius: 10px 10px 0 0;
}

.whatsapp-message p {
    margin: 0;
    line-height: 1.4;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 0 0 10px 10px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.whatsapp-button img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.whatsapp-button:hover {
    background-color: #1ebe5b;
}

/* Animation for fade-in and fade-out */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}
