:root {
  font: 15px/1.6 -apple-system, system-ui, Tahoma, sans-serif;
  color: #211943;
  background: #f4f2fb;
  font-synthesis: none;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100dvh;
  padding: clamp(24px, 8vh, 84px) 16px 30px;
  background: radial-gradient(ellipse at 50% -15%, #e7deff, transparent 65%), #f4f2fb;
}
.checkout { width: min(100%, 480px); margin: auto; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 21px; font-size: 19px; font-weight: 800; }
.brand strong { font-weight: 550; }
.brand-icon { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border-radius: 11px; background: #5635b2; color: white; }
.sandbox { margin-left: auto; padding: 4px 10px; color: #5538a5; background: #ede5ff; border: 1px solid #dfd3fc; border-radius: 30px; font-size: 12px; font-weight: 750; }
.payment { border: 1px solid #e0d7f1; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 16px 48px #35226416; }
.payment-head { padding: 26px 22px 24px; text-align: center; border-bottom: 1px solid #eee8f5; background: linear-gradient(145deg, #fff 35%, #f8f4ff); }
h1, p, dl, dd { margin: 0; }
h1 { font-size: 18px; font-weight: 720; }
.amount { margin: 7px 0 4px; font-size: clamp(28px, 8vw, 46px); font-weight: 780; line-height: 1.18; letter-spacing: -.04em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.payment-main { padding: 22px; }
.status { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 12px; border-radius: 8px; background: #f0ecfa; color: #493485; font-weight: 680; }
.status::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.pending { color: #754500; background: #fff2dc; }
.status.success { color: #175437; background: #e2f5e9; }
.status.closed { color: #842846; background: #faeaf0; }
.deadline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 8px; padding: 14px 0; color: #542bab; font-weight: 720; }
.deadline time { font-variant-numeric: tabular-nums; font-size: 25px; line-height: 1.2; }
.transfer-details { margin-bottom: 12px; padding: 2px 12px; border: 1px solid #e8e0f0; border-radius: 11px; }
.transfer-details div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 9px 0; overflow-wrap: anywhere; }
.transfer-details div + div { border-top: 1px solid #eee8f4; }
.transfer-details dd { font-weight: 700; }
.muted, footer { color: #5e5475; font-size: 13px; overflow-wrap: anywhere; }
.error { margin-top: 8px; color: #842846; }
.expiry { margin-top: 12px; }
.refresh { min-height: 42px; padding: 9px 14px; margin-top: 15px; border: 1px solid #d9cdec; border-radius: 9px; color: #4b2a9c; font: inherit; font-weight: 700; background: #fff; cursor: pointer; }
.refresh:disabled { opacity: .6; cursor: wait; }
.refresh:hover:not(:disabled) { background: #f2edff; }
:focus-visible { outline: 2px solid #7252d0; outline-offset: 3px; }
footer { margin-top: 17px; text-align: center; }
