/* Station pages use the same prompt, positioned consistently across devices. */
.web-push-prompt.web-push-station {
  top: max(16px, env(safe-area-inset-top, 0px));
  right: auto;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
}
.web-push-station-backdrop { display: none; }
.web-push-station [data-web-push-enable][hidden] { display: none !important; }
.web-push-prompt.web-push-station:focus { outline: none; }

@media (max-width: 767px) {
  .web-push-prompt.web-push-station {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(360px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
    z-index: 2147483001;
  }
  .web-push-station-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgba(0, 0, 0, .72);
    touch-action: none;
    overscroll-behavior: contain;
  }
  .web-push-prompt.web-push-station:not([hidden]) + .web-push-station-backdrop {
    display: block;
  }
}
