/**
 * Facebook Messenger Floating Chat Button
 * Poquoson Tree & Crane Service (poquosontree.com)
 *
 * Positioned at the bottom-right corner directly above the existing Jotform AI chatbot
 * without overlapping the chatbot or website content.
 * Destination: https://m.me/poquosontreeservice
 */

a.poquoson-messenger-float {
    position: fixed !important;
    right: 28px !important;
    bottom: 92px !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background-color: #0084FF !important;
    background-image: radial-gradient(108% 108% at 19.2% 99.4%, #0099FF 0%, #A033FF 60%, #FF5280 90%, #FF7061 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.38), 0 3px 10px rgba(15, 23, 42, 0.22) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #ffffff !important;
    z-index: 9990 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
    -webkit-tap-highlight-color: transparent;
}

a.poquoson-messenger-float * {
    pointer-events: none !important;
}

a.poquoson-messenger-float .poquoson-messenger-icon {
    width: 30px !important;
    height: 30px !important;
    display: block !important;
    fill: #ffffff !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.14));
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

a.poquoson-messenger-float:hover,
a.poquoson-messenger-float:focus-visible {
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow: 0 10px 26px rgba(160, 51, 255, 0.45), 0 4px 12px rgba(15, 23, 42, 0.26) !important;
    color: #ffffff !important;
    outline: none !important;
}

a.poquoson-messenger-float:hover .poquoson-messenger-icon,
a.poquoson-messenger-float:focus-visible .poquoson-messenger-icon {
    transform: scale(1.06) !important;
}

/* Tooltip: "Chat with us on Facebook" */
a.poquoson-messenger-float .poquoson-messenger-tooltip {
    position: absolute !important;
    right: calc(100% + 14px) !important;
    top: 50% !important;
    transform: translateY(-50%) translateX(6px) !important;
    background: #1e293b !important;
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.2px !important;
    padding: 8px 13px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.24) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
}

a.poquoson-messenger-float .poquoson-messenger-tooltip::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    right: -5px !important;
    transform: translateY(-50%) rotate(45deg) !important;
    width: 10px !important;
    height: 10px !important;
    background: #1e293b !important;
    border-radius: 1px !important;
}

a.poquoson-messenger-float:hover .poquoson-messenger-tooltip,
a.poquoson-messenger-float:focus-visible .poquoson-messenger-tooltip,
a.poquoson-messenger-float.is-tooltip-visible .poquoson-messenger-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) translateX(0) !important;
}

/* Tablet Adaptation */
@media screen and (max-width: 1024px) {
    a.poquoson-messenger-float {
        right: 24px !important;
        bottom: 92px !important;
        width: 54px !important;
        height: 54px !important;
    }

    a.poquoson-messenger-float .poquoson-messenger-icon {
        width: 28px !important;
        height: 28px !important;
    }
}

/* Mobile Adaptation */
@media screen and (max-width: 767px) {
    a.poquoson-messenger-float {
        right: 18px !important;
        bottom: 92px !important;
        width: 52px !important;
        height: 52px !important;
    }

    a.poquoson-messenger-float .poquoson-messenger-icon {
        width: 27px !important;
        height: 27px !important;
    }

    a.poquoson-messenger-float .poquoson-messenger-tooltip {
        font-size: 12.5px !important;
        padding: 7px 11px !important;
        right: calc(100% + 10px) !important;
    }
}

