.checkout-page {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 80px 0 100px;
}

.checkout-intro {
  max-width: 850px;
  margin-bottom: 42px;
}

.checkout-intro h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.checkout-intro > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.qa-badge {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 20px;
}

.checkout-card,
.status-card,
.checkout-shell,
.result-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(21, 29, 42, 0.95), rgba(13, 18, 27, 0.98));
}

.checkout-card h2,
.status-card h2,
.checkout-shell h2,
.result-card h2 {
  font-size: 1.8rem;
}

.amount-field {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.amount-field > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.amount-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 62px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #080d13;
}

.amount-input:focus-within {
  border-color: var(--accent);
}

.amount-input span {
  color: var(--muted);
  font-family: "DM Mono", monospace;
}

.amount-input input {
  width: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 700;
}

.checkout-button {
  width: 100%;
  margin-top: 16px;
  border: 0;
  cursor: pointer;
}

.checkout-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.test-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.test-note strong {
  color: var(--text);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 10px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.status-card > p:not(.eyebrow) {
  color: var(--muted);
}

.event-log {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.event-log summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}

.event-log pre,
.result-card pre {
  overflow: auto;
  max-height: 300px;
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #080d13;
  color: #dbe4ef;
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.checkout-shell,
.result-card {
  margin-top: 20px;
}

.checkout-shell-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.checkout-shell-heading .eyebrow {
  margin-bottom: 7px;
}

#monerisCheckout {
  min-height: 560px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 850px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .checkout-page {
    width: min(calc(100% - 28px), var(--max));
    padding-top: 60px;
  }

  .site-nav {
    display: flex;
    gap: 10px;
  }

  .site-nav > a:first-child {
    display: none;
  }

  .checkout-shell-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  #monerisCheckout {
    min-height: 650px;
  }
}
