:root {
  --ax-bg: #f5f7f8;
  --ax-card: #ffffff;
  --ax-text: #14323a;
  --ax-muted: #6b7f86;
  --ax-border: #d9e3e6;
  --ax-brand: #016C74;
  --ax-brand-dark: #01545a;
  --ax-danger: #b42318;
  --ax-radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--ax-bg);
  color: var(--ax-text);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

body { padding: 16px; }
.component-page { background: transparent; padding: 0; }

.component-shell, .test-shell {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius);
  background: var(--ax-card);
}
.test-shell { width: min(100%, 980px); }

h1 { margin: 0 0 14px; font-size: 22px; line-height: 1.3; }
.status { margin: 0 0 16px; color: var(--ax-muted); line-height: 1.5; }
.status[data-state="error"] { color: var(--ax-danger); }

.oud-section { margin: 18px 0; }
.oud-section label, .test-shell label { display: block; margin-bottom: 8px; font-weight: 600; }
.oud-row { display: flex; gap: 10px; align-items: stretch; }
.oud-row input, textarea {
  width: 100%;
  border: 1px solid var(--ax-border);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ax-text);
  background: var(--ax-card);
  font: inherit;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.button-primary, .button-secondary { color: #fff; background: var(--ax-brand); }
.button-primary { width: 100%; }
.button-primary:hover:not(:disabled), .button-secondary:hover { background: var(--ax-brand-dark); }
.button-primary:disabled { opacity: .55; cursor: not-allowed; }

.payment-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ax-border); }
.payment-details { display: grid; grid-template-columns: minmax(110px, 150px) 1fr; gap: 10px 14px; margin: 0; }
.payment-details dt { color: var(--ax-muted); }
.payment-details dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.payment-qr { width: min(100%, 360px); height: auto; margin: 20px auto 0; }

textarea { display: block; min-height: 260px; margin-bottom: 12px; resize: vertical; font-family: Consolas, monospace; }
.test-shell .button-primary { width: auto; }
.test-shell iframe { display: block; width: 100%; min-height: 520px; margin-top: 20px; border: 0; }

@media (max-width: 520px) {
  body { padding: 10px; }
  .component-shell, .test-shell { padding: 16px; }
  .oud-row { flex-direction: column; }
  .payment-details { grid-template-columns: 1fr; gap: 4px; }
  .payment-details dd { margin-bottom: 8px; }
  .test-shell iframe { min-height: 600px; }
}
