/* ==========================================================================
   ParisFloraQA - Floating WhatsApp "Contact Us" Widget
   ========================================================================== */

.parisflora-whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 25px;
    z-index: 9998;
    display: flex;
    align-items: center;
    font-family: inherit;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
}

.parisflora-whatsapp-btn {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    background: linear-gradient(135deg, #2fe674 0%, #25d366 50%, #128c7e 100%);
    color: #ffffff !important;
    border-radius: 50%;
    text-decoration: none !important;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.parisflora-whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.58), 0 4px 10px rgba(0, 0, 0, 0.18);
    color: #ffffff !important;
}

.parisflora-whatsapp-btn:active {
    transform: scale(0.96);
}

/* Pulsing ripple wave animation */
.parisflora-whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.5);
    z-index: -1;
    animation: pf-whatsapp-pulse 2.2s infinite cubic-bezier(0.24, 0, 0.38, 1);
    pointer-events: none;
}

@keyframes pf-whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.parisflora-whatsapp-btn i {
    font-size: 32px;
    line-height: 1;
    color: #ffffff;
    display: inline-block;
    transition: transform 0.3s ease;
}

.parisflora-whatsapp-btn:hover i {
    transform: rotate(-6deg) scale(1.05);
}

/* Tooltip Pill (Desktop & Tablet) */
.parisflora-whatsapp-tooltip {
    pointer-events: auto;
    position: absolute;
    left: calc(100% + 14px);
    background: #ffffff;
    color: #1e293b;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateX(-8px) scale(0.95);
    transform-origin: left center;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Small arrow pointing to the button */
.parisflora-whatsapp-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #ffffff;
}

/* Online indicator dot */
.parisflora-whatsapp-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #25d366;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

/* Show tooltip on hover or focus */
.parisflora-whatsapp-float:hover .parisflora-whatsapp-tooltip,
.parisflora-whatsapp-btn:focus-visible + .parisflora-whatsapp-tooltip,
.parisflora-whatsapp-btn:focus .parisflora-whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Accessibility focus state */
.parisflora-whatsapp-btn:focus-visible {
    outline: 3px solid #128c7e;
    outline-offset: 3px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .parisflora-whatsapp-float {
        bottom: 24px;
        left: 20px;
    }

    .parisflora-whatsapp-btn {
        width: 52px;
        height: 52px;
    }

    .parisflora-whatsapp-btn i {
        font-size: 28px;
    }
}

/* Mobile screens where .bottom-navbar is visible */
@media screen and (max-width: 510px) and (orientation: portrait) {
    .parisflora-whatsapp-float {
        bottom: 74px; /* sits cleanly above fixed bottom-navbar (55px) */
        left: 15px;
    }

    .parisflora-whatsapp-btn {
        width: 48px;
        height: 48px;
    }

    .parisflora-whatsapp-btn i {
        font-size: 26px;
    }

    /* On touch screens, hide default tooltip to keep screen uncluttered */
    .parisflora-whatsapp-tooltip {
        display: none;
    }
}
