/* UU Blood Bank — PWA layer styles (loaded after the app bundle).
   Phone-first: safe areas, tap behaviour, install banner. Nothing here
   restyles the app itself; it only adds the install/offline chrome. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
@media (display-mode: standalone) {
  body { overscroll-behavior-y: none; }
}

.uu-pwa-banner {
  position: fixed; left: 12px; right: 12px; z-index: 9999;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px;
  background: #ffffff; color: #16233a;
  border: 1px solid #d9e3f2; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(10, 20, 36, .22);
  padding: 10px 12px; font-family: system-ui, sans-serif;
  animation: uuPwaUp .35s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes uuPwaUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-color-scheme: dark) {
  .uu-pwa-banner { background: #12203a; color: #eef3fb; border-color: #24365a; }
}
.uu-pwa-banner img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.uu-pwa-txt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.uu-pwa-txt b { display: block; font-size: 14px; }
.uu-pwa-install {
  flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px;
  background: #143a7d; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}
.uu-pwa-close {
  flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: inherit; font-size: 18px; cursor: pointer; opacity: .65;
}
@media (max-width: 360px) { .uu-pwa-txt { font-size: 12px; } }
