/* Banner instalar PWA — acima do footer */
.pwa-install-banner {
    position: fixed;
    left: 50%;
    bottom: calc(58px + env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(110%);
    z-index: 350;
    width: calc(100% - 20px);
    max-width: 460px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.28s ease;
    pointer-events: none;
}

.pwa-install-banner.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.pwa-install-close {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.pwa-install-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f3f4f6;
    padding: 4px;
}

.pwa-install-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 8px;
}

.pwa-install-title {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.pwa-install-sub {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.25;
}

.pwa-install-btn {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 800;
    color: #142e28;
    background: linear-gradient(180deg, #ffe566 0%, #ffc82e 48%, #f5a800 100%);
    box-shadow: 0 3px 0 #c49210, 0 5px 12px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.pwa-install-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 #c49210, 0 3px 8px rgba(0, 0, 0, 0.12);
}

@media (min-width: 769px) {
    .pwa-install-banner {
        display: none !important;
    }
}
