.pwa-install-banner {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  pointer-events: none;
}

.pwa-install-banner[hidden] {
  display: none !important;
}

.pwa-install-inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: 16px;
  background: rgba(26, 18, 11, 0.94);
  color: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.pwa-install-inner img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
}

.pwa-install-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pwa-install-copy strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.pwa-install-copy span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.3;
}

.pwa-install-btn {
  border: 0;
  border-radius: 999px;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  background: #ea580c;
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
}

.pwa-install-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.35rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .pwa-install-banner {
    left: auto;
    right: 1rem;
    width: min(420px, calc(100vw - 2rem));
  }
}

@media (max-width: 991.98px) {
  .has-bottom-nav .pwa-install-banner {
    bottom: calc(0.75rem + 64px + env(safe-area-inset-bottom, 0px));
  }
}

/* Standalone installed app: slight safe-area polish */
@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top, 0px);
  }
}
