.native-cashier,
.native-order-detail {
  position: absolute;
  inset: 0;
  z-index: 84;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  color: #202327;
}

.phone:has(:is(.native-cashier, .native-order-detail)) :is(.floating-call-card, #call-dock) {
  visibility: hidden;
  pointer-events: none;
}
.phone:has(:is(.native-cashier, .native-order-detail)) .statusbar {
  z-index: 86;
  background: transparent;
  color: #17131c;
}
.phone:has(.native-cashier) .statusbar { color: #fff; }
.native-cashier button:focus-visible,
.native-order-detail button:focus-visible,
.native-order-result button:focus-visible { outline: 2px solid #547bb8; outline-offset: -2px; }

.native-cashier {
  --npc-ink: #202a3d;
  --npc-blue: #0872e2;
  background: var(--npc-ink);
}
.npc-account {
  flex: 0 0 clamp(155px, 28%, 260px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: calc(var(--safe-top, 44px) + 8px) 16px 0;
  color: #d6dae5;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 550;
}
.npc-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(44px, 16cqw, 66px);
  aspect-ratio: 1;
  border: 1px solid #a1b3d3;
  border-radius: 7px;
  background: #b3c2dc;
  color: #485f8c;
}
.npc-avatar svg { width: 54%; }
.npc-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(168deg, #e9f4fe 1%, #f4f7fc 39%, #f5f6fb 73%);
}
.npc-nav {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 60px;
  align-items: center;
  flex: 0 0 48px;
  padding-inline: 8px;
}
.npc-nav h2 { text-align: center; font-size: 15px; font-weight: 600; }
.npc-close,
.npd-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
}
.npc-demo { margin-right: 8px; text-align: right; color: #486887; font-size: 13px; }
.npc-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding: 0 12px 4px;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.npc-total {
  flex: 0 0 auto;
  display: grid;
  gap: 5px;
  padding: clamp(5px, 2cqh, 18px) 8px clamp(12px, 3cqh, 25px);
  text-align: center;
}
.npc-total p:first-child { font-size: 15px; }
.npc-total strong { font-size: clamp(34px, 11cqw, 47px); font-weight: 720; line-height: 1.1; font-variant-numeric: tabular-nums; }
.npc-order { color: #59677a; font-size: 12px; overflow-wrap: anywhere; }
.npc-methods {
  display: grid;
  gap: 3px;
  flex: 0 0 auto;
  padding: 8px;
  border-radius: 15px;
  background: #fff;
}
.npc-method {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) 22px;
  align-items: start;
  gap: 9px;
  width: 100%;
  min-height: clamp(55px, 8.8cqh, 76px);
  padding: clamp(8px, 1.45cqh, 13px) 9px;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.npc-method[aria-pressed="true"] { background: #eef5ff; }
.npc-bank {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #b52639;
  color: #fff;
}
.npc-bank.is-rose { background: #963644; }
.npc-bank.is-blue { background: #176bcc; }
.npc-bank svg { width: 12px; }
.npc-method-copy { display: grid; gap: 4px; line-height: 1.35; }
.npc-method-copy strong { font-size: 14px; font-weight: 550; }
.npc-method-copy small { color: #676c75; font-size: 12px; }
.npc-check { width: 22px; height: 22px; }
.npc-check img { filter: brightness(0) saturate(100%) invert(43%) sepia(94%) saturate(3530%) hue-rotate(192deg) brightness(96%) contrast(91%); }
.npc-footer {
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  gap: 9px;
  padding: clamp(12px, 3cqh, 26px) 16px max(15px, var(--safe-bottom, 24px));
}
.npc-pay {
  width: min(63%, 245px);
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 99px;
  background: var(--npc-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 550;
}
.npc-pay:active { background: #0d64c9; }
.npc-footer p { color: #657186; font-size: 11px; }

.native-order-detail {
  --npd-inset: clamp(17px, 6cqw, 25px);
  padding-top: var(--safe-top, 44px);
  background: #fff;
}
.npd-nav {
  display: flex;
  flex: 0 0 53px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 var(--npd-inset);
}
.npd-nav h2 { font-size: 20px; font-weight: 680; }
.npd-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 var(--npd-inset) var(--safe-bottom, 24px);
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.npd-intro { margin: 0 0 15px; font-size: 13px; color: #55565c; }
.npd-account { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.npd-account strong { font-weight: 600; }
.npd-account svg { width: 18px; height: 18px; color: #56565c; }
.npd-item {
  display: grid;
  grid-template-columns: clamp(60px, 21.5cqw, 88px) minmax(0, 1fr);
  gap: 12px;
  margin: clamp(19px, 3.7cqh, 32px) 0 clamp(21px, 5.3cqh, 46px);
}
.npd-thumbnail {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #efedf1;
  border-radius: 7px;
  object-fit: contain;
}
.npd-thumbnail.is-placeholder { color: #786493; background: #f7f2fc; }
.npd-thumbnail svg { width: 35%; }
.npd-item-copy { display: flex; flex-direction: column; gap: 6px; }
.npd-item-copy h3 { font-size: 16px; line-height: 1.45; font-weight: 630; overflow-wrap: anywhere; }
.npd-item-copy p { color: #65666b; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.npd-item-copy p span { margin-left: 9px; }
.npd-item-copy strong { margin-top: auto; font-size: 17px; font-weight: 660; }
.npd-meta,
.npd-summary { display: grid; margin: 0; font-size: 14px; line-height: 1.45; }
.npd-meta { gap: 9px; color: #62646b; }
.npd-meta > div,
.npd-summary > div { display: grid; grid-template-columns: 5.8em minmax(0, 1fr); align-items: start; gap: 5px; }
.npd-meta > div:last-child { margin-top: 11px; }
.npd-meta dd,
.npd-summary dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.npd-meta button {
  min-height: 28px;
  margin: -4px 0 0 8px;
  padding: 2px 10px;
  border: 1px solid #dedee4;
  border-radius: 99px;
  background: #fff;
  color: #454650;
  font-size: 12px;
  vertical-align: middle;
}
.npd-summary { margin-top: clamp(16px, 3.2cqh, 27px); gap: 8px; }
.npd-summary > div:last-child {
  align-items: center;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid #edecf0;
  font-weight: 650;
}
.npd-summary strong { color: #ce1421; font-size: 21px; font-variant-numeric: tabular-nums; }
.npd-note { margin-top: 17px; color: #65666b; font-size: 11px; }

.native-order-result.native-order-result {
  max-width: 100%;
  background: #f9f7fc;
  border: 1px solid #efebf3;
  padding: 16px 18px;
}
.native-order-result .receipt-top h3 { display: flex; align-items: center; gap: 7px; }
.native-order-result .npr-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #269669;
}
.native-order-result .npr-mark::after {
  content: '';
  width: 8px;
  height: 5px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}
.native-order-result.is-failed .npr-mark { background: #c35057; }
.native-order-result.is-failed .npr-mark::before,
.native-order-result.is-failed .npr-mark::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 2px;
  border: 0;
  border-radius: 1px;
  background: #fff;
  transform: rotate(45deg);
}
.native-order-result.is-failed .npr-mark::after { transform: rotate(-45deg); }
.native-order-result p { overflow-wrap: anywhere; }
.native-order-result .npr-total { color: #67616d; font-size: 13px; }
.native-order-result .receipt-actions .secondary { color: #511a4e; border-color: #cdbecd; }

.native-order-result.is-timeout {
  gap: 14px;
  padding: 17px 18px 19px;
  border-radius: 8px;
  background: #f9f7fc;
  color: #17131c;
}
.native-order-result.is-timeout .receipt-top { margin-bottom: 0; }
.native-order-result.is-timeout .receipt-top h3 { font-size: 16px; font-weight: 700; }
.native-order-result.is-timeout .npr-mark { background: #e42b20; }
.native-order-result.is-timeout p { font-size: 15px; font-weight: 400; line-height: 1.5; }
.native-order-result.is-timeout .receipt-actions { padding-top: 0; }
.native-order-result.is-timeout .receipt-actions .primary {
  min-height: 34px;
  padding: 5px 16px;
  border: 1px solid #d8b9ce;
  background: linear-gradient(90deg, #4d144a 11.9%, #b8252e 100%);
  font-size: 13px;
}

@media (max-height: 720px) {
  .npc-account { gap: 6px; }
  .npc-avatar { width: 46px; }
  .npc-method { min-height: 55px; }
  .npc-footer { gap: 6px; padding-top: 9px; }
}
