:root {
  font-family: Arial, sans-serif;
  color: #111;
  line-height: 1.4;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
.shell { max-width: 1000px; margin: 0 auto; padding: 16px 16px 0; }
header { margin-bottom: 16px; }
h1 { font-size: 24px; font-weight: 600; margin: 0; }

.card { padding: 12px; }
.fields { margin-bottom: 12px; }
.preset-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.preset-select { display: flex; align-items: center; gap: 8px; flex: 1; }
.preset-select label { white-space: nowrap; }
.preset-select select { flex: 1; }
.preset-actions { display: flex; gap: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 8px; }

.field-grid { display: grid; grid-template-columns: 1fr; gap: 7px; }
.fields label { display: block; }
.fields input, .fields select { display: block; width: 100%; max-width: 100%; margin-top: 3px; }
.subheading { font-weight: 600; margin: 14px 0 7px; }

.pill { font-size: 0.9em; color: #555; }

.notice { padding: 6px 0; margin-bottom: 8px; }
.notice.warning { color: #805b00; }
.notice.error { color: #9c2929; }
.notice.success { color: #176b47; }
.checkout #paymentResult { margin-bottom: 12px; }
.checkout #paymentResult.warning { color: #805b00; }
.hint { color: #666; font-size: 0.9em; margin: 8px 0 0; }
.test-cards { margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { border: 1px solid #999; padding: 6px 8px; text-align: left; font-weight: normal; }
th { font-weight: 600; }
.webhook-log { margin-top: 18px; }
.webhook-log h2 { font-size: 1.1em; font-weight: 600; margin: 0; }
.webhook-log td:last-child { overflow-wrap: anywhere; }
button { all: revert; }

@media (max-width: 800px) {
  .preset-row, .preset-actions { flex-direction: column; }
  .preset-actions, .preset-actions button { width: 100%; }
}
