/*
 * FGMC Retreat PWA install notification.
 * Mobile only. It does not modify payment, form or registration components.
 */
#fgmc-pwa-install-banner,
#fgmc-pwa-install-dialog {
  font-family: inherit;
}

#fgmc-pwa-install-banner[hidden],
#fgmc-pwa-install-dialog[hidden] {
  display: none !important;
}

#fgmc-pwa-install-banner {
  position: fixed;
  right: 14px;
  bottom: 16px;
  left: 14px;
  z-index: 10040;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 0, 0, .98), rgba(135, 0, 0, .97));
  border: 1px solid rgba(244, 206, 120, .52);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(calc(100% + 34px));
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}

#fgmc-pwa-install-banner.fgmc-show {
  transform: translateY(0);
  opacity: 1;
}

.fgmc-pwa-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}

.fgmc-pwa-copy {
  min-width: 0;
}

.fgmc-pwa-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: .92rem;
  line-height: 1.15;
}

.fgmc-pwa-copy span {
  display: block;
  color: rgba(255, 255, 255, .8);
  font-size: .74rem;
  line-height: 1.3;
}

.fgmc-pwa-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.fgmc-pwa-install-button,
.fgmc-pwa-close-button {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.fgmc-pwa-install-button {
  min-height: 38px;
  padding: 0 13px;
  color: #2e1800;
  background: linear-gradient(135deg, #ffdc7d, #e8aa28);
  border-radius: 11px;
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
}

.fgmc-pwa-close-button {
  width: 32px;
  height: 32px;
  padding: 0;
  color: rgba(255, 255, 255, .83);
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
}

#fgmc-pwa-install-dialog {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(0, 0, 0, .64);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.fgmc-pwa-sheet {
  width: min(100%, 520px);
  max-height: min(82vh, 650px);
  overflow: auto;
  padding: 22px 18px 18px;
  color: #211;
  background: #fff;
  border-radius: 24px 24px 18px 18px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, .45);
}

.fgmc-pwa-sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fgmc-pwa-sheet-head img {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

.fgmc-pwa-sheet-head h2 {
  margin: 0;
  color: #870000;
  font-size: 1.25rem;
  line-height: 1.15;
}

.fgmc-pwa-sheet-head p {
  margin: 4px 0 0;
  color: #6e6060;
  font-size: .82rem;
}

.fgmc-pwa-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: fgmc-pwa-step;
}

.fgmc-pwa-steps li {
  position: relative;
  min-height: 44px;
  padding: 12px 12px 12px 50px;
  background: #faf6f1;
  border: 1px solid #eadbd0;
  border-radius: 14px;
  color: #332727;
  font-size: .9rem;
  line-height: 1.4;
  counter-increment: fgmc-pwa-step;
}

.fgmc-pwa-steps li::before {
  content: counter(fgmc-pwa-step);
  position: absolute;
  top: 9px;
  left: 11px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #fff;
  background: #a40000;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 900;
}

.fgmc-pwa-sheet-close {
  width: 100%;
  min-height: 45px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #171717;
  font-weight: 900;
  cursor: pointer;
}

@media (min-width: 761px) {
  #fgmc-pwa-install-banner,
  #fgmc-pwa-install-dialog {
    display: none !important;
  }
}

@media (max-width: 390px) {
  #fgmc-pwa-install-banner {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .fgmc-pwa-icon {
    width: 42px;
    height: 42px;
  }

  .fgmc-pwa-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .fgmc-pwa-install-button {
    flex: 1;
  }
}
