:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #17202b;
  --muted: #66717f;
  --border: #d8dee7;
  --blue: #2563eb;
  --green: #047857;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

main {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

header,
section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}

h1,
h2 {
  line-height: 1.1;
  margin: 0 0 12px;
}

h1 {
  font-size: 42px;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

a {
  color: var(--blue);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--blue);
  cursor: pointer;
  font: inherit;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

#checkoutStatus:empty {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.pill {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 13px;
  margin-right: 6px;
}

.success {
  border-left: 4px solid var(--green);
}
