html.checkout-open {
  overflow: hidden;
}

.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(0 0 0 / 60%);
}

.checkout-overlay__panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 720px);
  max-height: 94vh;
  overflow: auto;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  box-shadow: 0 16px 48px rgb(0 0 0 / 28%);
}

.checkout-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkout-overlay__header h2 { margin: 0; }
.checkout-overlay__message { min-height: 1.5em; }
.checkout-overlay__frame-host { min-height: 320px; }

.checkout-overlay__frame {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}

.checkout-overlay [hidden] { display: none !important; }

@media (max-width: 600px) {
  .checkout-overlay { padding: 0; }
  .checkout-overlay__panel {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    padding: 16px;
  }
}
