/* =====================================================================
   FlyUp4You PWA install mode
   - Discreet mobile-only install chip.
   - Does not affect PC/tablet layout.
===================================================================== */

.flyup-pwa-install-chip,
.flyup-pwa-install-panel {
    display: none;
}

@media screen and (max-width: 900px) {
    .flyup-pwa-install-chip {
        position: fixed;
        right: calc(0.85rem + env(safe-area-inset-right, 0px));
        bottom: calc(91px + env(safe-area-inset-bottom, 0px));
        z-index: 96;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        max-width: min(86vw, 270px);
        padding: 0.36rem;
        border-radius: 999px;
        background: rgba(15,23,42,0.90);
        border: 1px solid rgba(255,255,255,0.22);
        box-shadow: 0 18px 42px rgba(15,23,42,0.24);
        backdrop-filter: blur(18px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px) scale(0.98);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .flyup-pwa-install-chip.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .flyup-pwa-install-chip__main,
    .flyup-pwa-install-chip__close {
        appearance: none;
        border: 0;
        cursor: pointer;
        font: inherit;
    }

    .flyup-pwa-install-chip__main {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        min-height: 38px;
        padding: 0.5rem 0.62rem 0.5rem 0.72rem;
        border-radius: 999px;
        background: linear-gradient(135deg, #0ea5e9, #14b8a6);
        color: #ffffff;
        font-size: 0.82rem;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
    }

    .flyup-pwa-install-chip__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 999px;
        background: rgba(255,255,255,0.18);
        font-size: 0.84rem;
    }

    .flyup-pwa-install-chip__logo {
        display: inline-block;
        width: 24px;
        height: 24px;
        border-radius: 7px;
        object-fit: cover;
        background: rgba(255,255,255,0.16);
        box-shadow: 0 3px 10px rgba(15,23,42,0.16);
    }

    .flyup-pwa-install-chip__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        min-width: 30px;
        border-radius: 999px;
        background: rgba(255,255,255,0.12);
        color: rgba(255,255,255,0.88);
        font-size: 1.05rem;
        line-height: 1;
    }

    .flyup-pwa-install-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(148px + env(safe-area-inset-bottom, 0px));
        z-index: 97;
        display: flex;
        justify-content: center;
        padding-inline: 0.85rem;
        pointer-events: none;
    }

    .flyup-pwa-install-panel__card {
        position: relative;
        width: min(100%, 390px);
        padding: 1rem 3rem 1rem 1rem;
        border-radius: 24px;
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(219,231,243,0.95);
        box-shadow: 0 24px 60px rgba(15,23,42,0.20);
        backdrop-filter: blur(18px);
        pointer-events: auto;
    }

    .flyup-pwa-install-panel__card strong {
        display: block;
        margin-bottom: 0.45rem;
        color: #0f172a;
        font-size: 0.98rem;
        font-weight: 900;
        line-height: 1.25;
    }

    .flyup-pwa-install-panel__card p {
        margin: 0.35rem 0 0;
        color: #64748b;
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .flyup-pwa-install-panel__desktop {
        display: none;
    }

    .flyup-pwa-install-panel__steps {
        margin-top: 0.85rem;
        padding: 0.85rem;
        border-radius: 18px;
        background: rgba(14,165,233,0.07);
        border: 1px solid rgba(14,165,233,0.12);
    }

    .flyup-pwa-install-panel__steps span {
        display: block;
        margin-bottom: 0.45rem;
        color: #0f172a;
        font-size: 0.82rem;
        font-weight: 900;
    }

    .flyup-pwa-install-panel__steps ol {
        margin: 0;
        padding-left: 1rem;
        color: #64748b;
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .flyup-pwa-install-panel__steps li + li {
        margin-top: 0.28rem;
    }

    .flyup-pwa-install-panel__close {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(219,231,243,0.95);
        border-radius: 999px;
        background: #ffffff;
        color: #0f172a;
        cursor: pointer;
        font-size: 1.1rem;
        line-height: 1;
    }

    html.flyup-pwa-standalone .flyup-pwa-install-chip,
    html.flyup-pwa-standalone .flyup-pwa-install-panel {
        display: none !important;
    }
}
