/* ============================================
   FLOATING BUTTONS COMPONENT
   Modern, Elegant, Professional
   ============================================ */

.floating-buttons-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    align-items: flex-end;
}

/* Base Button Style */
.jemswp-floating-whatsapp,
.jemswp-floating-phone {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

/* WhatsApp Specifics */
.jemswp-floating-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
}

/* Phone Specifics */
.jemswp-floating-phone {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

/* Hover Effects */
.jemswp-floating-whatsapp:hover,
.jemswp-floating-phone:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.jemswp-floating-whatsapp:hover svg,
.jemswp-floating-phone:hover svg {
    transform: scale(1.1);
}

.jemswp-floating-whatsapp svg,
.jemswp-floating-phone svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Pulse Animation for WhatsApp */
.jemswp-floating-whatsapp::before,
.jemswp-floating-whatsapp::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.6;
    z-index: -1;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.jemswp-floating-whatsapp::after {
    animation-delay: 0.5s;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

/* Tooltip */
.jemswp-floating-whatsapp::before,
/* Reset pseudo-element for tooltip usage if needed, but here we use span */
.jemswp-floating-phone::before {
    /* Resetting the pulse animation usage on ::before for phone or if we change approach */
}

/* Tooltip Text */
.floating-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: white;
    color: #1f2937;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.floating-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.jemswp-floating-whatsapp:hover .floating-tooltip,
.jemswp-floating-phone:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .floating-buttons-wrapper {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }

    .jemswp-floating-whatsapp,
    .jemswp-floating-phone {
        width: 50px;
        height: 50px;
    }

    .jemswp-floating-whatsapp svg,
    .jemswp-floating-phone svg {
        width: 26px;
        height: 26px;
    }

    /* Hide tooltip on mobile to prevent obstruction */
    .floating-tooltip {
        display: none;
    }
}