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

.pwa-install-banner {
  position: fixed;
  z-index: 1065;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px 12px;
  width: min(440px, calc(100vw - 32px));
  padding: 15px 16px 14px;
  color: #f7f8fb;
  background: #222833;
  border: 1px solid rgba(217, 104, 104, .52);
  border-radius: 16px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .48);
}

.pwa-install-banner__close {
  position: absolute;
  top: 5px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #9fa9b8;
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
}

.pwa-install-banner__icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #e57878;
  background: rgba(217, 104, 104, .13);
  border-radius: 13px;
  font-size: 20px;
}

.pwa-install-banner__copy {
  min-width: 0;
  padding-right: 17px;
}

.pwa-install-banner__copy strong,
.pwa-install-banner__copy span {
  display: block;
}

.pwa-install-banner__copy strong {
  color: #f7f8fb;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.22;
}

.pwa-install-banner__copy sup {
  color: #9b82e8;
  font-size: 10px;
}

.pwa-install-banner__copy span {
  margin-top: 3px;
  color: #9fa9b8;
  font-size: 12px;
  line-height: 1.35;
}

.pwa-install-banner__actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pwa-install-banner__actions button {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 850;
}

.pwa-install-banner__install {
  color: #fff;
  background: #d96868;
  border: 1px solid #d96868;
}

.pwa-install-banner__help {
  color: #f7f8fb;
  background: transparent;
  border: 1px solid #46505e;
}

.pwa-install-help {
  position: fixed;
  z-index: 1080;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 7, 11, .78);
  backdrop-filter: blur(8px);
}

.pwa-install-help__card {
  position: relative;
  width: min(390px, 100%);
  padding: 28px 24px 22px;
  color: #f7f8fb;
  text-align: center;
  background: #222833;
  border: 1px solid #46505e;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
}

.pwa-install-help__close {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #a8b1bf;
  background: transparent;
  border: 0;
  font-size: 27px;
}

.pwa-install-help__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 13px;
  color: #e57878;
  background: rgba(217, 104, 104, .13);
  border-radius: 15px;
  font-size: 25px;
}

.pwa-install-help h2 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.pwa-install-help p {
  margin: 0;
  color: #a8b1bf;
  font-size: 14px;
  line-height: 1.55;
}

.pwa-install-help__ok {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  color: #fff;
  background: #d96868;
  border: 0;
  border-radius: 9px;
  font-weight: 850;
}

@media (max-width: 520px) {
  .pwa-install-banner {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pwa-install-banner {
    animation: pwaInstallEnter .28s ease-out both;
  }

  @keyframes pwaInstallEnter {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
