/* WhatsApp Floating Button Styles
=================================================================== */
/* Hide WhatsApp from mobile navbar */
.mobile-menu ul li.whatsapp-menu-item {
    display: none !important;
}

/* Desktop view - keep existing floating button */
.theme-demos {
    position: fixed;
    z-index: 2000;
    right: 20px;
    bottom: 20px;
    display: block;
}

.demo-button-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.buy-theme {
    margin-right: 10px;
}

.buy-theme a, .all-demo a {
    text-decoration: none;
}

.theme-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.all-demo .theme-wrapper {
    border-radius: 30px;
    width: auto;
    padding: 0 15px;
    height: 50px;
}

.theme-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.all-demo .theme-wrapper div {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* Animation for the WhatsApp button */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.buy-theme .theme-wrapper {
    animation: pulse 2s infinite;
}

/* Mobile Styles */
@media only screen and (max-width: 767px) {
    .theme-demos {
        display: none; /* Hide the desktop floating button on mobile */
    }
    
    /* Show a professional floating WhatsApp button on mobile */
    .mobile-whatsapp-float {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: #25D366; /* WhatsApp green */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        animation: mobile-whatsapp-pulse 2s infinite;
        border: none;
        outline: none;
    }
    
    .mobile-whatsapp-float:hover,
    .mobile-whatsapp-float:focus {
        transform: scale(1.1) translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        background-color: #128C7E;
    }
    
    .mobile-whatsapp-float:active {
        transform: scale(0.95);
    }
    
    .mobile-whatsapp-float svg {
        width: 28px;
        height: 28px;
        fill: white;
    }
    
    /* Animation for the mobile floating button */
    @keyframes mobile-whatsapp-pulse {
        0% {
            transform: scale(1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        50% {
            transform: scale(1.05);
            box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
        }
        100% {
            transform: scale(1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
    }
    
    /* Ensure the button respects safe areas on iOS */
    @supports (bottom: env(safe-area-inset-bottom)) {
        .mobile-whatsapp-float {
            bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        }
    }
    
    /* Make sure it doesn't interfere with other elements */
    .mobile-whatsapp-float {
        pointer-events: auto;
    }
}

/* Desktop view - keep existing behavior */
@media only screen and (min-width: 768px) {
    .theme-demos {
        display: block;
    }
}