/*
 * AUTOMART V42.25
 *
 * MOBILE VEHICLE DETAIL
 * FINAL ONE-ROW CONTACT BAR
 *
 * Authority:
 * Call | WhatsApp | Chat
 *
 * Desktop untouched.
 */

@media (max-width: 767.98px) {

    /* =========================================================
       FINAL STICKY CONTACT CONTAINER
       ========================================================= */

    html body .am-v424-sticky-actions {

        position: fixed !important;

        left: 10px !important;
        right: 10px !important;

        bottom:
            calc(
                10px +
                env(safe-area-inset-bottom, 0px)
            ) !important;

        top: auto !important;

        width: auto !important;
        max-width: none !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;

        padding: 6px !important;

        box-sizing: border-box !important;

        /*
         * FORCE ONE ROW
         */
        display: flex !important;

        flex-direction: row !important;

        flex-wrap: nowrap !important;

        align-items: stretch !important;

        justify-content: stretch !important;

        gap: 7px !important;

        /*
         * Cancel any inherited grid layout.
         */
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-auto-flow: unset !important;

        background:
            rgba(255,255,255,.985) !important;

        border:
            1px solid #dfe8e3 !important;

        border-radius: 20px !important;

        box-shadow:
            0 14px 38px rgba(20,38,31,.18),
            0 3px 10px rgba(20,38,31,.08) !important;

        backdrop-filter:
            blur(18px) !important;

        -webkit-backdrop-filter:
            blur(18px) !important;

        z-index:
            2147483000 !important;

        overflow:
            hidden !important;

        visibility:
            visible !important;

        opacity:
            1 !important;

        transform:
            none !important;

        -webkit-transform:
            none !important;

        pointer-events:
            auto !important;
    }


    /* =========================================================
       FORCE EVERY BUTTON INTO ONE EQUAL COLUMN
       ========================================================= */

    html body .am-v424-sticky-actions
    .am-v461-action {

        /*
         * FLEX AUTHORITY
         */
        flex:
            1 1 0% !important;

        flex-grow:
            1 !important;

        flex-shrink:
            1 !important;

        flex-basis:
            0% !important;

        /*
         * Cancel inherited grid rules.
         */
        grid-column:
            auto !important;

        grid-row:
            auto !important;

        grid-area:
            auto !important;

        align-self:
            stretch !important;

        justify-self:
            stretch !important;

        /*
         * Width authority.
         */
        width:
            auto !important;

        min-width:
            0 !important;

        max-width:
            none !important;

        height:
            50px !important;

        min-height:
            50px !important;

        max-height:
            50px !important;

        margin:
            0 !important;

        box-sizing:
            border-box !important;

        display:
            flex !important;

        flex-direction:
            row !important;

        flex-wrap:
            nowrap !important;

        align-items:
            center !important;

        justify-content:
            center !important;

        gap:
            7px !important;

        padding:
            0 8px !important;

        border-radius:
            16px !important;

        overflow:
            hidden !important;

        white-space:
            nowrap !important;

        text-decoration:
            none !important;

        font-family:
            inherit !important;

        font-size:
            14px !important;

        line-height:
            1 !important;

        font-weight:
            850 !important;

        box-sizing:
            border-box !important;

        position:
            relative !important;

        float:
            none !important;

        clear:
            none !important;
    }


    /* =========================================================
       FORCE THE THREE BUTTONS TO STAY SIDE BY SIDE
       ========================================================= */

    html body .am-v424-sticky-actions
    .am-v461-action--call,

    html body .am-v424-sticky-actions
    .am-v461-action--whatsapp,

    html body .am-v424-sticky-actions
    .am-v461-action--chat {

        flex:
            1 1 0% !important;

        flex-basis:
            0% !important;

        width:
            auto !important;

        min-width:
            0 !important;

        max-width:
            none !important;

        grid-column:
            auto !important;

        grid-row:
            auto !important;

        grid-area:
            auto !important;
    }


    /* =========================================================
       ICONS
       ========================================================= */

    html body .am-v424-sticky-actions
    .am-v461-action svg {

        width:
            20px !important;

        height:
            20px !important;

        min-width:
            20px !important;

        min-height:
            20px !important;

        max-width:
            20px !important;

        max-height:
            20px !important;

        flex:
            0 0 20px !important;

        display:
            block !important;
    }


    /* =========================================================
       CALL
       ========================================================= */

    html body .am-v424-sticky-actions
    .am-v461-action--call {

        background:
            #08a568 !important;

        color:
            #ffffff !important;

        border:
            1px solid #08a568 !important;

        box-shadow:
            0 7px 18px rgba(8,165,104,.20) !important;
    }


    /* =========================================================
       WHATSAPP
       ========================================================= */

    html body .am-v424-sticky-actions
    .am-v461-action--whatsapp {

        background:
            #ffffff !important;

        color:
            #087f52 !important;

        border:
            1px solid #bce7d4 !important;

        box-shadow:
            0 3px 12px rgba(20,38,31,.05) !important;
    }


    /* =========================================================
       CHAT
       ========================================================= */

    html body .am-v424-sticky-actions
    .am-v461-action--chat {

        background:
            #f3f6f5 !important;

        color:
            #17231f !important;

        border:
            1px solid #dce5e1 !important;

        box-shadow:
            none !important;
    }


    /* =========================================================
       BUTTON TEXT
       ========================================================= */

    html body .am-v424-sticky-actions
    .am-v461-action span {

        display:
            block !important;

        min-width:
            0 !important;

        overflow:
            hidden !important;

        text-overflow:
            ellipsis !important;

        white-space:
            nowrap !important;
    }


    /* =========================================================
       TOUCH
       ========================================================= */

    html body .am-v424-sticky-actions
    .am-v461-action:active {

        transform:
            translateY(1px) !important;
    }


    /* =========================================================
       VERY SMALL PHONES
       ========================================================= */

    @media (max-width: 380px) {

        html body .am-v424-sticky-actions {

            left: 7px !important;
            right: 7px !important;

            padding: 5px !important;

            gap: 5px !important;

            border-radius: 18px !important;
        }

        html body .am-v424-sticky-actions
        .am-v461-action {

            height:
                48px !important;

            min-height:
                48px !important;

            max-height:
                48px !important;

            padding:
                0 5px !important;

            gap:
                5px !important;

            font-size:
                13px !important;

            border-radius:
                14px !important;
        }

        html body .am-v424-sticky-actions
        .am-v461-action svg {

            width:
                18px !important;

            height:
                18px !important;

            min-width:
                18px !important;

            flex-basis:
                18px !important;
        }
    }
}


/* =============================================================
   DESKTOP UNTOUCHED
   ============================================================= */

@media (min-width: 768px) {

    .am-v424-sticky-actions {
        display: none !important;
    }
}
