/* Floating WhatsApp Button */
#whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out, background 0.3s ease;
    z-index: 999;
}

#whatsapp-button img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

#whatsapp-button:hover {
    transform: scale(1.1);
    background-color: #1da851;
}

/* WhatsApp Popup */
#whatsapp-popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    max-width: 90%;
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    z-index: 1000;
    border: 1px solid #ddd;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#whatsapp-popup.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header Section */
.whatsapp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.whatsapp-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #25d366;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

/* Close Button */
#close-popup {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 22px;
    font-weight: bold;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    z-index: 1001;
    transition: color 0.3s ease;
}

#close-popup:hover {
    color: #222;
}

/* Info Text */
.whatsapp-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.whatsapp-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.whatsapp-title {
    font-size: 12px;
    color: #777;
    margin: 2px 0 0;
}

/* Message Body */
.whatsapp-message {
    font-size: 13px;
    color: #444;
    margin-bottom: 14px;
    line-height: 1.4;
}

/* CTA Button */
#whatsapp-link {
    display: block;
    padding: 10px;
    background: linear-gradient(to right, #25d366, #1da851);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease-in-out, transform 0.2s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

#whatsapp-link:hover {
    background: linear-gradient(to right, #1da851, #25d366);
    transform: scale(1.05);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 400px) {
    #whatsapp-popup {
        width: 90%;
        right: 5%;
        left: 5%;
    }
}