:root {
  --bg: #f1f2f6;
  --card: #ffffff;
  --line: #e2e8f0;
  --text: #111827;
  --muted: #6b7280;
  --brand: #1f2937;
  --accent: #ff4b4b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #f9fbff, var(--bg));
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  padding: 1rem;
}

.checkout-shell {
  width: min(900px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.ticket-preview,
.checkout-panel {
  padding: 1rem;
}

.ticket-preview {
  border-right: 1px solid var(--line);
}

.mini {
  margin: 0;
  font-size: 0.7rem;
  color: #9ca3af;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0.35rem 0 0.9rem;
  font-size: 1.2rem;
}

.ticket-preview dl {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.ticket-preview div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 0.35rem;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 600;
}

.stub-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
}

.barcode {
  margin-top: 0.9rem;
  height: 42px;
  background: repeating-linear-gradient(
    to right,
    #111827 0 2px,
    #fff 2px 4px,
    #111827 4px 6px,
    #fff 6px 8px
  );
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

form {
  display: grid;
  gap: 0.65rem;
}

label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.88rem;
}

input,
select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.6rem 0.68rem;
  font: inherit;
}

.actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.btn {
  border-radius: 6px;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-light {
  background: #fff;
  color: #374151;
}

.btn-primary {
  border-color: #d13e3e;
  background: var(--accent);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.status,
.success {
  min-height: 22px;
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
}

.status {
  color: #b91c1c;
}

.success {
  color: #047857;
}

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

  .ticket-preview {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
