.chimera-pwa-dialog-open {
  overflow: hidden;
}

/* The website keeps its normal header. These rules only apply when the page
   is rendered inside the installed application. */
html.chimera-pwa-standalone.chimera-pwa-guest .site-header [data-pwa-guest-disabled] {
  cursor: default;
  pointer-events: none;
}

html.chimera-pwa-standalone.chimera-pwa-guest .site-header .chimera-mobile-menu-toggle,
html.chimera-pwa-standalone.chimera-pwa-guest #mobileOffcanvas {
  display: none !important;
}

.chimera-pwa-network-status[hidden] {
  display: none !important;
}

.chimera-pwa-network-status {
  position: fixed;
  z-index: 2147482990;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  left: max(14px, env(safe-area-inset-left));
  width: min(620px, calc(100% - 28px));
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  padding: 11px 14px;
  background: #33240f;
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24);
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}

.chimera-pwa-network-status.is-action {
  background: #8a2d1d;
}

.chimera-pwa-network-status.is-online {
  background: #1f6f37;
}

.chimera-pwa-panel[hidden] {
  display: none !important;
}

.chimera-pwa-panel {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  font-family: inherit;
}

.chimera-pwa-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, .56);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.chimera-pwa-dialog {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100svh - 36px);
  overflow: auto;
  border: 1px solid rgba(23, 23, 23, .08);
  border-radius: 26px;
  padding: 28px 24px 20px;
  background: #fff;
  color: #171717;
  text-align: center;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .25);
  animation: chimera-pwa-rise .22s ease-out both;
}

.chimera-pwa-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: #333;
  font: 700 26px/1 system-ui, sans-serif;
  cursor: pointer;
}

.chimera-pwa-close:focus-visible,
.chimera-pwa-dialog button:focus-visible {
  outline: 3px solid rgba(221, 126, 22, .35);
  outline-offset: 2px;
}

.chimera-pwa-icon {
  width: min(58%, 190px);
  margin: 0 auto 20px;
}

.chimera-pwa-icon img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.chimera-pwa-dialog h2 {
  margin: 0 32px 10px;
  color: #171717;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 900;
  line-height: 1.15;
}

.chimera-pwa-intro {
  max-width: 38ch;
  margin: 0 auto 22px;
  color: #626262;
  font-size: .98rem;
  line-height: 1.5;
}

.chimera-pwa-actions {
  display: grid;
  gap: 10px;
}

.chimera-pwa-actions button {
  min-height: 48px;
  border-radius: 999px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background-color .15s ease;
}

.chimera-pwa-actions button:active {
  transform: scale(.98);
}

.chimera-pwa-actions button:disabled {
  opacity: .58;
  cursor: wait;
}

.chimera-pwa-primary {
  border: 1px solid #dd7e16;
  background: #dd7e16;
  color: #fff;
}

.chimera-pwa-secondary {
  border: 1px solid #242424;
  background: #fff;
  color: #242424;
}

.chimera-pwa-status {
  min-height: 1.4em;
  margin: 14px 2px 0;
  color: #666;
  font-size: .86rem;
  line-height: 1.45;
}

.chimera-pwa-status.is-success {
  color: #23753a;
}

.chimera-pwa-status.is-error {
  color: #a23420;
}

.chimera-pwa-status.is-info {
  color: #67420e;
}

.chimera-pwa-later {
  margin-top: 2px;
  border: 0;
  background: transparent;
  color: #656565;
  padding: 8px 14px;
  font: inherit;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@keyframes chimera-pwa-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 680px) {
  .chimera-pwa-panel {
    place-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chimera-pwa-dialog {
    animation: none;
  }

  .chimera-pwa-actions button {
    transition: none;
  }
}
