/* Loaded before the shared SPA bootstrap. Only the exact receive route is gated. */
html[data-sgc-receive-module-state="loading"] body uni-page[data-page="pages/order/order"],
html[data-sgc-receive-module-state="error"] body uni-page[data-page="pages/order/order"],
html[data-sgc-receive-module-state="loading"] body .order_container,
html[data-sgc-receive-module-state="error"] body .order_container,
body.receive-page-route-v15 .order_container.receive-page-sync-v15[data-sgc-receive-view-state="loading"] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html[data-sgc-receive-module-state="error"] body > .sgc-receive-boot-status {
  position: fixed;
  z-index: 1199;
  top: 0;
  right: 0;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px;
  background: #f1f4f8;
  color: #273449;
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.sgc-receive-boot-status__card {
  width: min(100%, 420px);
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #dce4ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px #25324412;
  text-align: center;
}

.sgc-receive-boot-status__title { display: block; font-size: 18px; }
.sgc-receive-boot-status__detail { margin: 10px 0 0; color: #607085; }
.sgc-receive-boot-status__actions { display: none; gap: 10px; justify-content: center; margin-top: 18px; }
.sgc-receive-boot-status[data-state="error"] .sgc-receive-boot-status__actions { display: flex; }
.sgc-receive-boot-status__actions button,
.sgc-receive-boot-status__actions a {
  min-width: 96px;
  box-sizing: border-box;
  padding: 9px 14px;
  border: 1px solid #bdcbdc;
  border-radius: 8px;
  background: #fff;
  color: #273449;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.sgc-receive-boot-status__actions button { border-color: #b74455; background: #b74455; color: #fff; }

@media (min-width: 481px) {
  html[data-sgc-receive-module-state="error"] body > .sgc-receive-boot-status {
    right: max(0px, calc((100% - 480px) / 2));
    left: max(0px, calc((100% - 480px) / 2));
  }
}
