* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  background: #1e293b;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.error {
  background: #7f1d1d;
  color: #fecaca;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-stripe {
  background: #635bff;
  color: white;
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.btn-shopify {
  background: #96bf48;
  color: #1a1a1a;
  width: 100%;
}

.shopify-form {
  margin-top: 0.25rem;
}

.shopify-label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.shopify-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.shopify-row input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.shopify-suffix {
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: #94a3b8;
  margin-top: 1rem;
  padding: 0.5rem;
  font-size: 0.875rem;
}

.account-info {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 0.75rem;
}

.btn-test {
  background: #334155;
  color: #e2e8f0;
  width: 100%;
  margin-top: 0.75rem;
}

.receipt {
  background: #fafafa;
  color: #171717;
  border-radius: 2px;
  padding: 1.5rem 1.25rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
  box-shadow: inset 0 0 0 1px #e5e5e5;
  transition: box-shadow 0.3s;
}

.receipt.updated {
  box-shadow: inset 0 0 0 1px #e5e5e5, 0 0 0 2px #4ade80;
}

.receipt-store h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.receipt-store p {
  margin: 0.1rem 0;
  color: #525252;
}

.receipt-items {
  text-align: left;
  margin: 1rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #a3a3a3;
}

.receipt-item-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding-top: 0.5rem;
  border-top: 1px dashed #a3a3a3;
  text-align: left;
}

#receipt-total {
  transition: color 0.3s;
}

.receipt.updated #receipt-total {
  color: #15803d;
}

.receipt-payment {
  margin-top: 0.75rem;
  color: #525252;
  font-size: 0.75rem;
}

.receipt-number {
  margin-top: 0.5rem;
  color: #737373;
  font-size: 0.7rem;
}

.receipt-thanks {
  margin-top: 1rem;
  font-size: 0.75rem;
}

.empty {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

.inbox-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #334155;
}

.inbox-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.inbox-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.inbox-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inbox-item {
  background: #0f172a;
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
}

.inbox-item strong {
  display: block;
  color: #e2e8f0;
  margin-bottom: 0.2rem;
}

.inbox-item span {
  color: #94a3b8;
}

.inbox-item p {
  color: #cbd5e1;
  margin-top: 0.35rem;
  line-height: 1.35;
}
