/* Styles for the floating button */
.floating-button {
    position: fixed;
    bottom: 20px; /* Positioning from the bottom of the page */
    right: 60px;  /* Positioning from the right side of the page */
    width: 60px;  /* Width of the circle button */
    height: 60px; /* Height of the circle button */
    background-color: #25D366; /* WhatsApp green color */
    color: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important; /* Ensure no underline */
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px; /* Default icon size */
}

/* Hover effect to show the tooltip */
.floating-button:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

/* Icon styling */
.floating-button i {
    font-size: inherit; /* Use the font size defined in .floating-button */
    text-decoration: none !important; /* Prevent underline on icon */
}

/* Tooltip styling */
.tooltip {
    position: absolute;
    bottom: 70px; /* Positioning the tooltip above the button */
    right: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background for tooltip */
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

/* Responsive styling */
@media (max-width: 768px) {
    .floating-button {
        width: 50px;  /* Reduce width for smaller screens */
        height: 50px; /* Reduce height for smaller screens */
        bottom: 15px; /* Adjust bottom spacing */
        right: 15px;  /* Adjust right spacing */
        font-size: 20px; /* Reduce icon size */
    }

    .tooltip {
        font-size: 12px; /* Reduce tooltip font size */
        bottom: 60px; /* Adjust tooltip position */
        padding: 4px 8px; /* Adjust tooltip padding */
    }
}

@media (max-width: 480px) {
    .floating-button {
        width: 40px;  /* Further reduce width for extra small screens */
        height: 40px; /* Further reduce height for extra small screens */
        bottom: 10px; /* Further adjust bottom spacing */
        right: 10px;  /* Further adjust right spacing */
        font-size: 18px; /* Further reduce icon size */
    }

    .tooltip {
        font-size: 11px; /* Further reduce tooltip font size */
        bottom: 55px; /* Further adjust tooltip position */
        padding: 3px 7px; /* Further adjust tooltip padding */
    }
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    display: flex;
    align-items: center;
    text-decoration: none !important; /* Ensure no underline */
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-button:hover,
.whatsapp-button:active {
    text-decoration: none !important; /* Prevent underline on hover and active states */
}

.whatsapp-button i {
    font-size: 24px;
    margin-right: 10px;
}

/* Responsive styling */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 10px;
        left: 10px;
        padding: 8px 16px;
        font-size: 14px;
    }

    .whatsapp-button i {
        font-size: 20px;
        margin-right: 5px;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        bottom: 10px;
        left: 10px;
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 30px;
    }

    .whatsapp-button i {
        font-size: 18px;
        margin-right: 5px;
    }
}
