.awpwa-install[hidden],
.awpwa-guide[hidden],
[data-appweb-pwa-install][hidden] {
    display: none !important;
}

.awpwa-install {
    position: fixed;
    z-index: 850;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(82px + env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    max-width: min(260px, calc(100vw - 28px));
    padding: 8px 14px 8px 9px;
    border: 1px solid rgba(74, 92, 255, .24);
    border-radius: 15px;
    background: linear-gradient(135deg, #315cf6 0%, #7b3ff2 62%, #ec3aad 100%);
    color: #fff;
    box-shadow: 0 15px 35px rgba(65, 72, 220, .28);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.awpwa-install__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .16);
    font-size: 22px;
    line-height: 1;
}

.awpwa-install span:last-child {
    display: grid;
    gap: 1px;
}

.awpwa-install strong {
    font-size: 12px;
    line-height: 1.2;
}

.awpwa-install small {
    color: rgba(255, 255, 255, .82);
    font-size: 10px;
    line-height: 1.2;
}

.awpwa-guide {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    align-items: end;
    justify-items: center;
    padding: 18px max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

.awpwa-guide__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 18, 43, .58);
    backdrop-filter: blur(5px);
}

.awpwa-guide__card {
    position: relative;
    width: min(100%, 440px);
    border: 1px solid #e4e9f7;
    border-radius: 24px;
    padding: 28px 22px 20px;
    background: #fff;
    color: #102042;
    box-shadow: 0 28px 80px rgba(13, 30, 68, .32);
    text-align: center;
}

.awpwa-guide__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid #e2e7f3;
    border-radius: 11px;
    background: #f7f9fd;
    color: #66728b;
    font-size: 24px;
    cursor: pointer;
}

.awpwa-guide__mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 17px;
    background: linear-gradient(135deg, #315cf6, #7b3ff2 62%, #ec3aad);
    color: #fff;
    font-size: 30px;
    box-shadow: 0 12px 25px rgba(78, 74, 229, .24);
}

.awpwa-guide h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.awpwa-guide p {
    margin: 0;
    color: #68748d;
    font-size: 14px;
    line-height: 1.55;
}

.awpwa-guide__ok {
    width: 100%;
    min-height: 46px;
    margin-top: 18px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #315cf6, #6847ef);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.awpwa-modal-open {
    overflow: hidden;
}

.awpwa-standalone .awpwa-install {
    display: none !important;
}

@media (min-width: 700px) {
    .awpwa-install {
        right: max(24px, env(safe-area-inset-right));
        bottom: max(24px, env(safe-area-inset-bottom));
    }

    .awpwa-guide {
        align-items: center;
    }
}
