
/* =====================================================
   FOODTRUCKLIVE APP INSTALL
===================================================== */

#ftl-install-button {
    position: fixed;
    right: 18px;
    bottom:
        calc(
            18px
            +
            env(safe-area-inset-bottom, 0px)
        );

    z-index: 5000;

    display: none;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 52px;

    padding:
        12px 18px;

    border: none;
    border-radius: 999px;

    cursor: pointer;

    color: white;

    background:
        #ff641e;

    box-shadow:
        0 12px 32px
        rgba(23,33,43,.28);

    font-family: inherit;
    font-size: 14px;
    font-weight: 900;

    transition:
        transform .15s ease,
        background .15s ease;
}


#ftl-install-button.visible {
    display: inline-flex;
}


#ftl-install-button:hover {
    transform:
        translateY(-2px);

    background:
        #e94f0b;
}


#ftl-install-button:active {
    transform:
        translateY(0);
}


/* =====================================================
   INSTALL MODAL
===================================================== */

#ftl-install-overlay {
    position: fixed;
    inset: 0;

    z-index: 6000;

    display: none;
    align-items: flex-end;
    justify-content: center;

    padding:
        20px
        16px
        calc(
            20px
            +
            env(safe-area-inset-bottom, 0px)
        );

    background:
        rgba(12,18,27,.55);

    backdrop-filter:
        blur(5px);
}


#ftl-install-overlay.visible {
    display: flex;
}


.ftl-install-card {
    width:
        min(
            100%,
            440px
        );

    overflow: hidden;

    border-radius: 24px;

    background: white;

    box-shadow:
        0 25px 70px
        rgba(0,0,0,.30);

    animation:
        ftlInstallUp
        .20s ease-out;
}


@keyframes ftlInstallUp {

    from {
        opacity: 0;

        transform:
            translateY(25px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


.ftl-install-header {
    position: relative;

    padding:
        25px
        24px
        19px;

    text-align: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            #ff641e,
            #ff8d4d
        );
}


.ftl-install-icon {
    width: 72px;
    height: 72px;

    margin:
        0 auto 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,.35);

    border-radius: 20px;

    background:
        rgba(255,255,255,.18);

    font-size: 37px;
}


.ftl-install-title {
    margin: 0;

    font-size: 23px;
    font-weight: 950;
}


.ftl-install-subtitle {
    margin-top: 7px;

    color:
        rgba(255,255,255,.92);

    font-size: 14px;
    line-height: 1.45;
}


.ftl-install-close {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    cursor: pointer;

    color: white;

    background:
        rgba(0,0,0,.16);

    font-size: 20px;
}


.ftl-install-body {
    padding:
        22px 22px 24px;
}


.ftl-install-step {
    display: grid;

    grid-template-columns:
        38px 1fr;

    gap: 12px;

    align-items: center;

    margin-bottom: 17px;
}


.ftl-install-step-number {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color:
        #e94f0b;

    background:
        #fff2ea;

    font-size: 15px;
    font-weight: 950;
}


.ftl-install-step-text {
    color:
        #344054;

    font-size: 14px;
    line-height: 1.45;
}


.ftl-install-step-text strong {
    color:
        #17212b;
}


.ftl-install-done {
    width: 100%;

    min-height: 48px;

    margin-top: 7px;

    border: none;
    border-radius: 13px;

    cursor: pointer;

    color: white;

    background:
        #17212b;

    font-size: 14px;
    font-weight: 900;
}


@media(min-width:700px) {

    #ftl-install-overlay {
        align-items: center;
    }

}


@media(max-width:600px) {

    #ftl-install-button {
        right: 14px;

        bottom:
            calc(
                14px
                +
                env(safe-area-inset-bottom, 0px)
            );

        min-height: 49px;

        padding:
            11px 16px;

        font-size: 13px;
    }

}

