/* =========================================================
   CODESPHERE PAYBILL — APP INSTALL PROMPT
   ========================================================= */

.install-prompt-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 99999;

    display: flex;
    justify-content: center;

    padding: 0 16px 18px;

    pointer-events: none;

    opacity: 0;

    transition:
        opacity 0.35s ease;
}

.install-prompt-wrap.is-visible {
    opacity: 1;
}


/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */

.install-prompt {
    position: relative;

    width: min(100%, 520px);

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 13px 14px;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 18px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.08);

    pointer-events: auto;

    transform: translateY(120px);

    transition:
        transform 0.45s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.install-prompt-wrap.is-visible .install-prompt {
    transform: translateY(0);
}


/* ---------------------------------------------------------
   APP ICON
   --------------------------------------------------------- */

.install-prompt-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 13px;

    background: #f1f5f9;

    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.install-prompt-icon img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* ---------------------------------------------------------
   INFORMATION
   --------------------------------------------------------- */

.install-prompt-info {
    min-width: 0;

    flex: 1;
}

.install-prompt-name {
    font-size: 14px;
    font-weight: 750;

    line-height: 1.25;

    color: #111827;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.install-prompt-meta {
    display: flex;
    align-items: center;

    gap: 5px;

    margin-top: 4px;

    font-size: 11px;

    color: #6b7280;

    white-space: nowrap;
}

.install-prompt-stars {
    font-size: 11px;

    letter-spacing: 0.5px;

    color: #f59e0b;
}

.install-prompt-rating {
    font-weight: 650;
    color: #4b5563;
}

.install-prompt-dot {
    color: #9ca3af;
}


/* ---------------------------------------------------------
   INSTALL BUTTON
   --------------------------------------------------------- */

.install-prompt-btn {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 72px;
    height: 38px;

    padding: 0 15px;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 750;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.25);

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.install-prompt-btn:hover {
    opacity: 0.92;
}

.install-prompt-btn:active {
    transform: scale(0.96);
}


/* ---------------------------------------------------------
   CLOSE BUTTON
   --------------------------------------------------------- */

.install-prompt-close {
    position: absolute;

    top: -9px;
    right: -7px;

    width: 25px;
    height: 25px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #ffffff;

    color: #6b7280;

    font-size: 17px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.16);

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.install-prompt-close:hover {
    background: #f3f4f6;
    color: #111827;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 520px) {

    .install-prompt-wrap {
        padding:
            0
            10px
            calc(10px + env(safe-area-inset-bottom));
    }

    .install-prompt {
        width: 100%;

        gap: 10px;

        padding: 11px 12px;

        border-radius: 16px;
    }

    .install-prompt-icon {
        width: 44px;
        height: 44px;

        flex-basis: 44px;

        border-radius: 11px;
    }

    .install-prompt-name {
        font-size: 13px;
    }

    .install-prompt-meta {
        font-size: 10px;
    }

    .install-prompt-stars {
        font-size: 10px;
    }

    .install-prompt-btn {
        min-width: 66px;
        height: 36px;

        padding: 0 12px;

        font-size: 12px;
    }
}


/* ---------------------------------------------------------
   VERY SMALL SCREENS
   --------------------------------------------------------- */

@media (max-width: 360px) {

    .install-prompt-icon {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }

    .install-prompt-meta {
        gap: 3px;
    }

    .install-prompt-btn {
        min-width: 60px;

        padding: 0 10px;
    }
}