/* PWA: баннер установки и iOS-инструкция. */

.child-pwa-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 99990;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(20, 40, 80, 0.18);
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.child-pwa-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
}
.child-pwa-banner__text {
    flex: 1 1 220px;
    font-size: 14px;
    line-height: 1.4;
    color: #1f2a44;
}
.child-pwa-banner__actions {
    display: flex;
    gap: 8px;
    /* Кнопки — на отдельной строке по центру, а не прижаты вправо: раньше
       «Позже» попадала ровно на кнопку «OK» cookie-бара (он тоже справа внизу)
       и её случайно нажимали. */
    flex: 1 1 100%;
    justify-content: center;
}
.child-pwa-banner__install {
    border: 0;
    cursor: pointer;
    padding: 9px 16px;
    border-radius: 9px;
    background: #2f80ed;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.child-pwa-banner__install:hover { background: #2670d6; }
.child-pwa-banner__later {
    border: 0;
    cursor: pointer;
    padding: 9px 12px;
    border-radius: 9px;
    background: transparent;
    color: #6b7794;
    font-size: 14px;
}

/* iOS-инструкция */
.child-pwa-ios {
    position: fixed;
    inset: 0;
    z-index: 99991;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 25, 50, 0.55);
}
.child-pwa-ios__box {
    position: relative;
    max-width: 360px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.child-pwa-ios__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    font-size: 22px;
    line-height: 32px;
    text-align: center;
    color: #98a2b8;
    cursor: pointer;
}
.child-pwa-ios__close:hover { color: #5b6478; background: rgba(0,0,0,0.06); }
.child-pwa-ios__title {
    margin: 0 0 8px;
    font-size: 17px;
    color: #1f2a44;
}
.child-pwa-ios__steps {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #45506b;
}
.child-pwa-ios__steps img {
    display: inline-block;
    vertical-align: -4px;
}
.child-pwa-ios__steps a { color: #2f80ed; }

@media (min-width: 640px) {
    .child-pwa-banner {
        left: auto;
        right: 20px;
        bottom: 20px;
        max-width: 460px;
    }
}
