/*
 * BestPropertyPlug
 * Property Detail Desktop Floating Contact V1
 *
 * Scope:
 * desktop property detail only.
 *
 * Existing contact strip is reused.
 * No new Call / WhatsApp / Chat implementation is created.
 */

@media (min-width: 1024px) {

    body.bpp-property-desktop-contact-v1-active
    .bpp-property-desktop-contact-v1-target {
        position: fixed !important;

        left: 50% !important;
        right: auto !important;

        bottom: 18px !important;

        top: auto !important;

        width:
            min(
                var(--bpp-property-desktop-contact-width, 1130px),
                calc(100vw - 48px)
            ) !important;

        max-width:
            calc(100vw - 48px) !important;

        margin:
            0 !important;

        transform:
            translate3d(-50%, 0, 0) !important;

        z-index:
            1080 !important;

        opacity:
            1 !important;

        visibility:
            visible !important;

        pointer-events:
            auto !important;

        will-change:
            transform !important;

        /*
         * Preserve premium floating-card appearance.
         * Existing internal layout/colors/buttons remain authoritative.
         */
        box-shadow:
            0 12px 36px rgba(15, 38, 28, .16),
            0 3px 10px rgba(15, 38, 28, .08) !important;
    }

    /*
     * Prevent old scroll-trigger visibility classes from hiding
     * the selected existing desktop strip.
     */
    body.bpp-property-desktop-contact-v1-active
    .bpp-property-desktop-contact-v1-target[hidden] {
        display:
            flex !important;
    }

}


/*
 * ABSOLUTE SAFETY:
 * this patch must never convert mobile sticky surfaces
 * into the desktop bar.
 */
@media (max-width: 1023px) {

    .bpp-property-desktop-contact-v1-target {
        --bpp-desktop-contact-disabled: 1;
    }

}
