/* Banner install PWA, dipakai semua layout (lihat components/pwa_head.twig). */
:root {
   --app-brand: #101e41;
   --app-accent: #2f6fed;
   --app-line: #e6e9f2;
   --app-muted: #7b849b;
   --safe-bottom: env(safe-area-inset-bottom, 0px);
}

.pwa-install {
   position: fixed; left: 12px; right: 12px; z-index: 1060;
   bottom: calc(16px + var(--safe-bottom));
   max-width: 460px; margin: 0 auto;
   background: #fff; border-radius: 16px;
   box-shadow: 0 10px 40px rgba(16, 30, 65, .25);
   padding: 14px; display: flex; align-items: center; gap: 12px;
   transform: translateY(160%); transition: transform .3s ease;
   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.pwa-install.show { transform: translateY(0); }
.pwa-install img { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--app-line); flex-shrink: 0; }
.pwa-install .txt { flex: 1; min-width: 0; line-height: 1.35; }
.pwa-install .txt b { display: block; font-size: 14px; color: #1c2333; }
.pwa-install .txt span { font-size: 12px; color: var(--app-muted); }
.pwa-install .btn-install {
   background: var(--app-brand); color: #fff; border: 0; border-radius: 10px;
   padding: 8px 14px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pwa-install .btn-close-install {
   background: none; border: 0; color: var(--app-muted); font-size: 22px; line-height: 1; padding: 0 4px;
}
.pwa-ios-hint i { color: var(--app-accent); }


/* Layout yang punya bottom nav: banner naik di atasnya */
@media (max-width: 991px) {
   .has-bottom-nav .pwa-install { bottom: calc(74px + var(--safe-bottom)); }
}
