.mtc-checkout-form-modal[hidden],
.mtc-checkout-form-frame[hidden],
.mtc-checkout-form-success[hidden] { display: none; }

.mtc-checkout-form-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, .78);
}

.mtc-checkout-form-dialog {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(780px, 100%);
  max-height: calc(100dvh - 24px);
  min-height: min(720px, calc(100dvh - 24px));
  overflow: hidden;
  border: 1px solid rgba(168, 255, 62, .5);
  border-radius: 20px;
  background: #091509;
  color: #f5ffe8;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
}

.mtc-checkout-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(168, 255, 62, .25);
}

.mtc-checkout-form-header h2 { margin: 0; font-size: 1.3rem; }
.mtc-checkout-form-close {
  border: 1px solid rgba(168, 255, 62, .42);
  border-radius: 999px;
  background: #132616;
  color: #f5ffe8;
  padding: 6px 13px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.mtc-checkout-form-frame {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #0d1c12;
}
.mtc-checkout-form-success { margin: auto; padding: 30px; text-align: center; }
.mtc-checkout-form-success h3 { color: #a8ff3e; font-size: 1.8rem; }
.mtc-checkout-form-success strong { overflow-wrap: anywhere; }
