/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-decoration: none;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    opacity: 0.95;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.floating-whatsapp:hover {
    -webkit-transform: translateY(-2px) scale(1.1);
    -moz-transform: translateY(-2px) scale(1.1);
    -ms-transform: translateY(-2px) scale(1.1);
    -o-transform: translateY(-2px) scale(1.1);
    transform: translateY(-2px) scale(1.1);
    text-decoration: none;
    opacity: 1;
}

.floating-whatsapp-icon {
    width: 96px;
    height: 96px;
    -webkit-flex-shrink: 0;
    -moz-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    display: block;
    max-width: 100%;
    /* Safari and Edge specific optimizations */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    /* Ensure proper rendering in Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 25px;
        right: 25px;
    }
    
    .floating-whatsapp-icon {
        width: 84px;
        height: 84px;
    }
}

@media (max-width: 480px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-whatsapp-icon {
        width: 72px;
        height: 72px;
    }
}

/* Animation on page load - Safari compatible */
.floating-whatsapp {
    -webkit-animation: fadeInFloat 1s ease-out;
    -moz-animation: fadeInFloat 1s ease-out;
    -o-animation: fadeInFloat 1s ease-out;
    animation: fadeInFloat 1s ease-out;
}

@-webkit-keyframes fadeInFloat {
    0% {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
    100% {
        opacity: 0.95;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@-moz-keyframes fadeInFloat {
    0% {
        opacity: 0;
        -moz-transform: translateY(20px);
        transform: translateY(20px);
    }
    100% {
        opacity: 0.95;
        -moz-transform: translateY(0);
        transform: translateY(0);
    }
}

@-o-keyframes fadeInFloat {
    0% {
        opacity: 0;
        -o-transform: translateY(20px);
        transform: translateY(20px);
    }
    100% {
        opacity: 0.95;
        -o-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeInFloat {
    0% {
        opacity: 0;
        -webkit-transform: translateY(20px);
        -moz-transform: translateY(20px);
        -ms-transform: translateY(20px);
        -o-transform: translateY(20px);
        transform: translateY(20px);
    }
    100% {
        opacity: 0.95;
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
        transform: translateY(0);
    }
}

/* Clean icon without shadows */
.floating-whatsapp-icon {
    /* Remove all shadows for a cleaner look */
}

/* Ensure compatibility with different themes and Safari */
.floating-whatsapp * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Additional Safari and Edge optimizations */
.floating-whatsapp {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    will-change: transform, opacity;
    /* Edge specific fixes */
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    /* Safari specific fixes */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure proper z-index stacking in all browsers */
    isolation: isolate;
} 