.payment-popup {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(920px, calc(100vw - 32px));
  height: min(840px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  border: 1px solid #817151;
  border-radius: 10px;
  background: #191f21;
  color: #f0e8d2;
  font-family: var(--font-body, sans-serif);
  box-shadow: 0 20px 80px #0009;
  overflow: hidden;
}
.payment-popup[open] { display: flex; flex-direction: column; }
.payment-popup::backdrop { background: #000b; }
.payment-popup > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; }
.payment-popup h2 { font: 700 20px var(--font-display, sans-serif); margin: 0; }
.payment-popup > header > button {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid #817151; border-radius: 5px; background: #ffffff08; color: inherit;
  font: 28px/1 sans-serif; cursor: pointer;
}
.payment-popup > header > button:focus-visible { outline: 2px solid #f4d58a; outline-offset: 2px; }
.payment-popup-content { position: relative; flex: 1; min-height: 0; background: #fff; }
.payment-popup iframe { display: block; width: 100%; height: 100%; border: 0; }
.payment-popup-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; background: #fff; color: #303438; text-align: center; }
.payment-popup [hidden] { display: none; }
@media (max-width: 600px) {
  .payment-popup { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .payment-popup > header { padding: 6px 12px; }
}
