.pwa-install-button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.pwa-install-button[hidden] {
  display: none !important;
}

.pwa-install-banner {
  align-items: center;
  background: #111827;
  border-radius: 8px;
  bottom: max(1rem, env(safe-area-inset-bottom));
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.25);
  color: #fff;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  left: 1rem;
  max-width: 480px;
  padding: 0.875rem 1rem;
  position: fixed;
  right: 1rem;
  z-index: 1080;
}

.pwa-install-banner[hidden] {
  display: none !important;
}

.pwa-notification-banner {
  background: #0f766e;
}

.pwa-install-banner strong,
.pwa-install-banner span {
  display: block;
  line-height: 1.3;
}

.pwa-install-banner strong {
  font-size: 0.95rem;
}

.pwa-install-banner span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

.pwa-install-banner-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.pwa-install-banner-primary,
.pwa-install-banner-close {
  border: 0;
  cursor: pointer;
}

.pwa-install-banner-primary {
  background: #fff;
  border-radius: 6px;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
}

.pwa-install-banner-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 1.25rem;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 2rem;
}

@media (max-width: 420px) {
  .pwa-install-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .pwa-install-banner-actions {
    justify-content: space-between;
  }
}

html.pwa-standalone,
html.pwa-standalone body {
  min-height: 100%;
}

html.pwa-standalone [data-pwa-shell] {
  background: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

html.pwa-standalone .navbar {
  border-radius: 0 !important;
  padding-top: max(0.75rem, env(safe-area-inset-top)) !important;
}

html.pwa-standalone #main-container {
  margin-top: 1.5rem !important;
}
