@media all and (display-mode: standalone) {
    body {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        overscroll-behavior-y: contain;
    }
}

.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.pwa-install-banner.show {
    transform: translateY(0);
}

.pwa-install-banner .pwa-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.pwa-install-banner .pwa-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.pwa-install-banner .pwa-text h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.pwa-install-banner .pwa-text p {
    font-size: 11px;
    color: #6b7280;
    margin: 2px 0 0;
    line-height: 1.2;
}

.pwa-install-banner .pwa-btn-install {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.pwa-install-banner .pwa-btn-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .pwa-install-banner {
        bottom: 16px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(150%);
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        max-width: 420px;
        width: calc(100% - 32px);
    }

    .pwa-install-banner.show {
        transform: translateX(-50%) translateY(0);
    }
}
