/* =========================================================
   PWA install banner
   Scoped entirely under #pwaInstallBanner - fixed position,
   outside normal document flow, so it cannot shift or break
   any existing page layout.
   ========================================================= */

#pwaInstallBanner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 99999;
    max-width: 420px;
    margin: 0 auto;
    background: #0b1f44;
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-family: 'Roboto', Arial, sans-serif;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

#pwaInstallBanner.pwa-banner-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#pwaInstallBanner .pwa-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex: 0 0 auto;
}

#pwaInstallBanner .pwa-banner-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    flex: 1 1 auto;
    min-width: 0;
}

#pwaInstallBanner .pwa-banner-text strong {
    font-size: 14px;
    font-weight: 700;
}

#pwaInstallBanner .pwa-banner-text span {
    font-size: 12px;
    color: #c7d0e4;
}

#pwaInstallBanner .pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

#pwaInstallBanner .pwa-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

#pwaInstallBanner .pwa-btn-install {
    background: #d4a017;
    color: #0b1f44;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 6px;
    white-space: nowrap;
}

#pwaInstallBanner .pwa-btn-dismiss {
    background: transparent;
    color: #c7d0e4;
    font-size: 15px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pwaInstallBanner .pwa-btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Desktop: dock as a compact card in the bottom-right corner instead
   of a full-width bottom bar, so it doesn't cover page content. */
@media (min-width: 769px) {
    #pwaInstallBanner {
        left: auto;
        right: 24px;
        bottom: 24px;
        width: 360px;
    }
}
