/* Styling for the floating WhatsApp icon */
#whatsapp-float-icon {
    position: fixed;
    background-color: #25D366; /* WhatsApp green */
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 9999; /* Ensure it stays on top of other elements */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px; /* Adjust size */
    height: 60px; /* Adjust size */
    transition: transform 0.3s ease-in-out;
}

/* Base positioning handled by JavaScript */
/* Default values, will be overridden by inline styles from JS */
#whatsapp-float-icon.wf-right {
    right: 20px;
}
#whatsapp-float-icon.wf-left {
    left: 20px;
}
#whatsapp-float-icon.wf-bottom {
    bottom: 20px;
}
#whatsapp-float-icon.wf-top {
    top: 20px;
}


#whatsapp-float-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Notification badge styling - remains the same, but will be less prominent with text notifications */
#notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #FF0000; /* Red for notification */
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7em;
    font-weight: bold;
    opacity: 0; /* Hidden by default */
    transform: scale(0);
    transition: all 0.3s ease-in-out;
}

/* Styling for the floating text notification */
#whatsapp-notification-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(10px); /* Adjust for spacing */
    background-color: #25D366; /* WhatsApp green */
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    white-space: nowrap; /* Prevent text wrapping */
    font-size: 0.9em;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 80px; /* Minimum width for the text bubble */
}

/* Adjust text notification position based on icon horizontal position */
#whatsapp-float-icon.wf-left #whatsapp-notification-text {
    left: 100%; /* Position to the right of the icon */
    transform: translateY(-50%) translateX(-10px); /* Adjust for spacing and slide in */
}
#whatsapp-float-icon.wf-right #whatsapp-notification-text {
    right: 100%; /* Position to the left of the icon */
    transform: translateY(-50%) translateX(10px); /* Adjust for spacing and slide in */
}

/* Show notification text */
#whatsapp-notification-text.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0); /* Slide in effect */
}

/* Pulse animation for the icon (optional, for 3rd notification) */
@keyframes wf-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.wf-pulse-animation {
    animation: wf-pulse 1.5s infinite;
}

/* Styling for the WhatsApp button inside articles */
.whatsapp-article-button {
    background-color: #25D366; /* WhatsApp green */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 15px;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.whatsapp-article-button:hover {
    background-color: #1DA851;
}