.pwa-install-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1060;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: min(430px, calc(100vw - 32px));
    padding: 14px 42px 14px 14px;
    color: #202733;
    background: #fff;
    border: 1px solid #d9dee8;
    border-left: 4px solid #c62828;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(21, 31, 50, .2);
    -webkit-transform: translateZ(0);
}

.pwa-install-banner[hidden] {
    display: none;
}

.pwa-install-icon {
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.pwa-install-copy {
    min-width: 0;
}

.pwa-install-copy strong,
.pwa-install-copy span {
    display: block;
}

.pwa-install-copy strong {
    margin-bottom: 3px;
    font-size: 15px;
    line-height: 1.25;
}

.pwa-install-copy span {
    color: #5f6877;
    font-size: 13px;
    line-height: 1.35;
}

.pwa-install-button {
    min-width: 76px;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: #c62828;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pwa-install-button:hover,
.pwa-install-button:focus-visible {
    background: #a91f1f;
}

.pwa-install-close {
    position: absolute;
    top: 5px;
    right: 7px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    color: #667085;
    background: transparent;
    font-size: 24px;
    line-height: 44px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

body.pwa-install-visible .scroll-to-top {
    bottom: 112px;
}

.pwa-guide {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(18, 24, 36, .58);
}

.pwa-guide[hidden] {
    display: none;
}

.pwa-guide-dialog {
    position: relative;
    width: min(100%, 390px);
    padding: 24px 20px 20px;
    color: #202733;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(12, 20, 34, .3);
}

.pwa-guide-icon {
    display: block;
    margin: 0 auto 12px;
    border-radius: 8px;
}

.pwa-guide-dialog h2 {
    margin: 0 32px 16px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.pwa-guide-steps {
    margin: 0 0 14px;
    padding-left: 22px;
}

.pwa-guide-steps li {
    margin-bottom: 9px;
    line-height: 1.45;
}

.pwa-guide-note {
    margin: 0 0 16px;
    padding: 10px 12px;
    color: #596273;
    background: #f3f5f8;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.pwa-guide-action {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: #c62828;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

.pwa-guide-close {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    color: #667085;
    background: transparent;
    font-size: 28px;
    line-height: 36px;
    cursor: pointer;
    touch-action: manipulation;
}

@media (max-width: 575.98px) {
    .pwa-install-banner {
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        grid-template-columns: 46px minmax(0, 1fr) auto;
        gap: 10px;
        width: calc(100vw - 20px);
        padding: 12px 38px 12px 12px;
    }

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

    .pwa-install-button {
        min-width: 72px;
        min-height: 44px;
        padding: 0 11px;
    }

    body.pwa-install-visible .scroll-to-top {
        right: 14px;
        bottom: calc(106px + env(safe-area-inset-bottom));
    }

    .pwa-guide {
        align-items: end;
        padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
    }

    .pwa-guide-dialog {
        width: 100%;
    }
}
