/* =========================================================
   Your Institute PWA INSTALL
========================================================= */

.pwa-install-banner {
    position: fixed;

    left: 50%;
    bottom: 24px;

    transform: translateX(-50%);

    width: calc(100% - 32px);
    max-width: 700px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.18);

    z-index: 999999;

    padding: 14px 16px;

    animation:
        pwaSlideUp
        0.35s
        ease;
}


.pwa-install-content {
    display: flex;

    align-items: center;

    gap: 14px;
}


.pwa-install-icon {
    width: 52px;
    height: 52px;

    min-width: 52px;

    border-radius: 13px;

    overflow: hidden;

    background: #eff6ff;

    display: flex;

    align-items: center;
    justify-content: center;
}


.pwa-install-icon img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.pwa-install-text {
    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.pwa-install-text strong {
    font-size: 15px;

    color: #111827;
}


.pwa-install-text span {
    font-size: 13px;

    color: #6b7280;
}


.pwa-install-actions {
    display: flex;

    align-items: center;

    gap: 8px;
}


.pwa-install-button {
    border: none;

    background: #1d4ed8;

    color: #ffffff;

    padding: 10px 17px;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

    transition:
        0.2s ease;
}


.pwa-install-button:hover {
    background: #1e40af;
}


.pwa-close-button {
    width: 34px;
    height: 34px;

    border: none;

    border-radius: 50%;

    background: #f3f4f6;

    color: #374151;

    font-size: 23px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;
}


.pwa-hide {
    opacity: 0;

    transform:
        translate(-50%, 30px);

    pointer-events: none;

    transition:
        all
        0.3s
        ease;
}


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

.pwa-ios-overlay {
    position: fixed;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.55);

    backdrop-filter:
        blur(5px);

    z-index: 1000000;

    display: flex;

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

    padding: 20px;
}


.pwa-ios-modal {
    position: relative;

    width: 100%;
    max-width: 420px;

    background: #ffffff;

    border-radius: 22px;

    padding: 28px 24px;

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.28);

    animation:
        pwaModalOpen
        0.3s
        ease;
}


.pwa-ios-close {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

    border: none;

    border-radius: 50%;

    background: #f3f4f6;

    font-size: 23px;

    cursor: pointer;
}


.pwa-ios-app-icon {
    width: 74px;
    height: 74px;

    margin:
        0 auto
        16px;

    border-radius: 18px;

    overflow: hidden;
}


.pwa-ios-app-icon img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.pwa-ios-modal h2 {
    text-align: center;

    margin:
        0 0
        10px;

    color: #111827;

    font-size: 22px;
}


.pwa-ios-modal > p {
    text-align: center;

    color: #6b7280;

    margin-bottom: 22px;

    font-size: 14px;
}


.pwa-ios-step {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 11px 0;

    border-bottom:
        1px solid #f3f4f6;

    color: #374151;

    font-size: 14px;
}


.pwa-step-number {
    width: 30px;
    height: 30px;

    min-width: 30px;

    border-radius: 50%;

    background: #dbeafe;

    color: #1d4ed8;

    font-weight: 700;

    display: flex;

    align-items: center;
    justify-content: center;
}


.pwa-ios-got-it {
    width: 100%;

    margin-top: 22px;

    border: none;

    background: #1d4ed8;

    color: #ffffff;

    padding: 12px;

    border-radius: 11px;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes pwaSlideUp {

    from {
        opacity: 0;

        transform:
            translate(
                -50%,
                40px
            );
    }

    to {
        opacity: 1;

        transform:
            translate(
                -50%,
                0
            );
    }

}


@keyframes pwaModalOpen {

    from {
        opacity: 0;

        transform:
            scale(0.94);
    }

    to {
        opacity: 1;

        transform:
            scale(1);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (
    max-width: 600px
) {

    .pwa-install-banner {
        bottom: 14px;

        width:
            calc(
                100% - 20px
            );

        padding:
            12px;
    }


    .pwa-install-icon {
        width: 46px;
        height: 46px;

        min-width: 46px;
    }


    .pwa-install-text span {
        display: none;
    }


    .pwa-install-button {
        padding:
            9px 12px;

        font-size: 13px;
    }


    .pwa-close-button {
        width: 30px;
        height: 30px;
    }

}