.cfp-pwa-install {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 1080;
  display: none;
  max-width: 28rem;
  margin-inline: auto;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

.cfp-pwa-install[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.cfp-pwa-install.is-visible {
  display: block;
}

/*
 * Live DevTools (elementsFromPoint on Province Open):
 * #cfpPwaInstallPrompt.is-visible was the top hit over Open at the bottom of
 * the phone viewport. Dock to the top on small screens so the banner cannot
 * cover card Open / sticky Generate controls.
 */
@media (max-width: 767.98px) {
  .cfp-pwa-install {
    top: calc(0.75rem + env(safe-area-inset-top, 0px));
    bottom: auto;
  }

  body.cfp-pwa-install-open {
    padding-top: 0; /* banner is overlay; do not push layout into sticky header */
  }
}

.cfp-pwa-install__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.cfp-pwa-install__text {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #475569;
}

.cfp-pwa-install__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cfp-pwa-install__actions .btn {
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
}

@media (min-width: 576px) {
  .cfp-pwa-install {
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    margin-inline: 0;
    width: min(28rem, calc(100vw - 2.5rem));
  }
}

@media print {
  .cfp-pwa-install {
    display: none !important;
  }
}
