#whatsapp-chat-button {
    position: fixed;
    bottom: 80px; /* Your specified bottom position */
    right: 3px; /* Your specified right position */
    cursor: pointer;
    z-index: 9999; /* Your specified z-index */
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Added transform and width to transition for smooth animation */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, width 0.3s ease-in-out;
    background-color: #FFFFFF;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0d1a49;
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-decoration: none;
    width: 150px; /* Your specified fixed width */
    box-sizing: border-box; /* Ensures padding is included in the width */

    /* --- NEW: Initial off-screen positioning --- */
    /* This pushes the button mostly off-screen to the right. */
    /* We want to show about 40px (icon width + left padding) initially. */
    /* So, move it (150px - 40px) = 110px further to the right from its 'right: 3px' anchor. */
    transform: translateX(110px);
    overflow: hidden; /* Hide the text that goes off-screen */
    white-space: nowrap; /* Keep text on a single line */
}

#whatsapp-chat-button img {
    width: 30px;
    height: 30px;
    display: block;
    flex-shrink: 0; /* Prevent the image from shrinking */
}

#whatsapp-chat-button span {
    /* --- NEW: Hide text initially and transition opacity --- */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    white-space: nowrap; /* Your specified white-space */
}

#whatsapp-chat-button:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Your specified hover shadow */
    /* --- NEW: Bring button fully into view on hover --- */
    transform: translateX(0); /* Move it back to its original 'right: 3px' position */
    width: auto; /* Allow width to expand to fit content */
    max-width: 250px; /* Optional: Limit how wide it can expand */
}

#whatsapp-chat-button:hover span {
    /* --- NEW: Show text on hover --- */
    opacity: 1;
}