/* FIX_PWA_INSTALL_PROMPT_V1 */

.fx-pwa-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.fx-pwa-install-card {
  width: 100%;
  max-width: 430px;
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 24px;
  background: #252829;
  color: #fff;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .45);
  animation:
    fxPwaInstallIn .24s ease-out both;
}

.fx-pwa-install-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 28px;
}

.fx-pwa-install-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  border-radius: 15px;
  background: #41bac2;
  box-shadow:
    0 8px 22px rgba(65, 186, 194, .22);
}

.fx-pwa-install-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-pwa-install-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}

.fx-pwa-install-subtitle {
  margin: 5px 0 0;
  color: #aeb8bb;
  font-size: 13px;
  line-height: 1.45;
}

.fx-pwa-install-copy {
  margin-top: 20px;
  color: #d9dfe1;
  font-size: 14px;
  line-height: 1.55;
}

.fx-pwa-install-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.fx-pwa-install-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
}

.fx-pwa-install-step-number {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(65, 186, 194, .16);
  color: #65d5dc;
  font-size: 12px;
  font-weight: 700;
}

.fx-pwa-install-step-text {
  padding-top: 2px;
  color: #e7ebec;
  font-size: 13px;
  line-height: 1.45;
}

.fx-pwa-install-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 21px;
}

.fx-pwa-install-primary,
.fx-pwa-install-secondary {
  width: 100%;
  min-height: 48px;
  border-radius: 13px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.fx-pwa-install-primary {
  border: 1px solid #41bac2;
  background: #41bac2;
  color: #102426;
}

.fx-pwa-install-primary:active {
  transform: translateY(1px);
}

.fx-pwa-install-secondary {
  border: 1px solid rgba(255, 255, 255, .12);
  background: transparent;
  color: #c6cdcf;
}

.fx-pwa-install-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #d9dfe1;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

body.fx-pwa-install-open {
  overflow: hidden;
}

@keyframes fxPwaInstallIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 700px) {
  .fx-pwa-install-overlay {
    display: none !important;
  }
}

@media (max-height: 650px) {
  .fx-pwa-install-overlay {
    align-items: center;
  }

  .fx-pwa-install-card {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
}
