/* Optional, non-modal app invitation. All rules are scoped to this component. */
.app-install {
  position: fixed;
  z-index: 1100;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 20px 20px 8px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #f2d4ae;
  border-top: 4px solid #f58a24;
  border-radius: 16px;
  background: #fff;
  color: #261c43;
  box-shadow: 0 12px 48px rgb(36 13 87 / 20%);
  font: 15px/1.5 Arial, Helvetica, sans-serif;
  text-align: left;
}
.app-install [hidden] { display: none !important; }
.app-install__heading { display: flex; gap: 12px; align-items: center; }
.app-install__heading > div { min-width: 0; }
.app-install__heading img {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.app-install .app-install__eyebrow {
  margin: 0 0 3px;
  color: #5a426e;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.app-install h2 {
  margin: 0;
  color: #240d57;
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.app-install .app-install__description { margin: 14px 0 16px; color: #65596e; }
.app-install__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.app-install button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  touch-action: manipulation;
}
.app-install .app-install__primary { flex: 1 1 auto; background: #3b177d; color: #fff; }
.app-install .app-install__primary:hover { background: #240d57; }
.app-install .app-install__secondary { background: #f7f3fc; color: #3b177d; border-color: #ded4ec; }
.app-install .app-install__secondary:hover { background: #eee7f7; }
.app-install .app-install__added {
  display: block;
  margin: 4px auto 0;
  padding: 9px 12px;
  background: transparent;
  color: #5a426e;
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.app-install button:focus-visible,
.app-install h3:focus-visible { outline: 3px solid #b65b00; outline-offset: 3px; }
.app-install button:disabled { cursor: progress; opacity: .65; }
.app-install__instructions {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #ecdac5;
  border-radius: 10px;
  background: #fff8ed;
  font-size: 14px;
}
.app-install__instructions h3 { margin: 0 0 9px; color: #3b177d; font-size: 16px; line-height: 1.35; }
.app-install__instructions ol { margin: 0; padding-left: 20px; }
.app-install__instructions li + li { margin-top: 7px; }
.app-install__instructions p { margin: 12px 0 0; color: #65596e; font-size: 13px; }
.app-install__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 480px) {
  .app-install {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 16px 16px 6px;
  }
}
@media (display-mode: standalone), (display-mode: minimal-ui), (display-mode: window-controls-overlay) {
  .app-install { display: none !important; }
}
