.payment-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background: rgb(15 23 42 / 65%);
  overscroll-behavior: contain;
}
.payment-progress-card {
  box-sizing: border-box;
  width: min(100%, 420px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 28px 24px;
  border-radius: 20px;
  background: #fff;
  color: #18251c;
  box-shadow: 0 20px 70px rgb(0 0 0 / 30%);
  text-align: center;
}
.payment-progress-card h2 { margin: 18px 0 10px; font-size: 24px; line-height: 1.2; }
.payment-progress-card p { margin: 14px 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.payment-progress-card button { min-height: 48px; width: 100%; margin-top: 12px; }
.payment-progress-amount { display: block; font-size: 28px; }
.payment-progress-symbol { width: 42px; height: 42px; margin: auto; font-size: 36px; line-height: 42px; }
.payment-progress-overlay[data-pending="true"] .payment-progress-symbol {
  border: 4px solid #dbe7de;
  border-top-color: #246d3b;
  border-radius: 50%;
  animation: payment-progress-spin 1s linear infinite;
}
.payment-progress-overlay[data-tone="success"] .payment-progress-symbol { color: #246d3b; }
.payment-progress-overlay[data-tone="error"] .payment-progress-symbol { color: #9d381c; }
.payment-progress-slow { border-top: 1px solid #dbe7de; padding-top: 14px; }
@keyframes payment-progress-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .payment-progress-symbol { animation: none !important; } }
