/* Keep the loading state in the browser top layer while a request is in flight. */
#payment-progress.payment-progress {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 250, .97);
  color: #171710;
  box-shadow: none;
  overflow: hidden;
  text-align: center;
}
#payment-progress::backdrop { background: rgba(12, 12, 9, .5); }
.progress-content { display: flex; min-height: calc(100dvh - 48px); flex-direction: column; align-items: center; justify-content: center; }
.progress-logo { position: relative; display: grid; place-items: center; width: 128px; height: 128px; margin-bottom: 20px; }
.progress-logo img { position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 12px 30px #17171028; }
.progress-ring { position: absolute; inset: 2px; border-radius: 50%; background: conic-gradient(from 0deg, #f5ce26, #fff9d5 37%, #f5ce26 65%, #171710); box-shadow: 0 0 18px #f5ce2699, 0 0 48px #f5ce2655; animation: checkout-spin 1.2s linear infinite; }
.progress-ring::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #fffefa; }
#payment-progress h2 { max-width: 420px; margin: 8px 0 0; font-size: clamp(1.35rem, 4vw, 1.85rem); line-height: 1.3; }
#payment-progress p { margin: 10px 0 0; color: #68665b; font-size: .9rem; }
#payment-result-dialog.payment-result { max-width: 490px; text-align: center; }
.payment-result img { display: block; margin: 0 auto 18px; border-radius: 14px; }
.payment-result h2 { margin: 0 0 10px; }
.payment-result p { overflow-wrap: anywhere; line-height: 1.65; }
.payment-result .button { margin: 14px auto 0; min-width: 140px; }
@keyframes checkout-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .progress-ring { animation: none; } }
