.sta-front,
.sta-front * {
  box-sizing: border-box;
}

.sta-front {
  --sta-ink: #161616;
  --sta-muted: #646464;
  --sta-line: #ded8cf;
  --sta-paper: #fffaf2;
  --sta-accent: #b20f37;
  --sta-accent-dark: #7d0a28;
  --sta-gold: #c8912f;
  color: var(--sta-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 24px auto;
  max-width: 980px;
}

.sta-checkout {
  background: linear-gradient(135deg, #fffdf8, #f8efe1);
  border: 1px solid var(--sta-line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(36, 24, 14, 0.12);
  overflow: hidden;
}

.sta-checkout__head {
  align-items: end;
  border-bottom: 1px solid var(--sta-line);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  padding: 30px;
}

.sta-kicker {
  color: var(--sta-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.sta-checkout h2,
.sta-ticket-page h1 {
  color: var(--sta-ink);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  margin: 0;
}

.sta-price {
  background: #161616;
  border-radius: 8px;
  color: #fff;
  min-width: 150px;
  padding: 14px 16px;
  text-align: right;
}

.sta-price span {
  display: block;
  font-size: 28px;
  font-weight: 850;
}

.sta-price small {
  color: #f3d8a6;
}

.sta-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 30px;
}

.sta-field {
  display: grid;
  gap: 8px;
}

.sta-field span {
  color: var(--sta-muted);
  font-size: 13px;
  font-weight: 750;
}

.sta-field input {
  appearance: none;
  background: #fff;
  border: 1px solid #d6cbbf;
  border-radius: 8px;
  color: var(--sta-ink);
  font: inherit;
  min-height: 52px;
  padding: 0 14px;
  width: 100%;
}

.sta-field input:focus {
  border-color: var(--sta-accent);
  box-shadow: 0 0 0 4px rgba(178, 15, 55, 0.14);
  outline: 0;
}

.sta-field--quantity {
  grid-column: span 2;
}

.sta-checkout__bar {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--sta-line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 30px;
}

.sta-total-label {
  color: var(--sta-muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.sta-total {
  font-size: 32px;
  line-height: 1;
}

.sta-button,
.sta-checkout button,
.sta-ticket-link {
  align-items: center;
  background: var(--sta-accent);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  text-decoration: none;
}

.sta-button:hover,
.sta-checkout button:hover,
.sta-ticket-link:hover {
  background: var(--sta-accent-dark);
  color: #fff;
}

.sta-ticket-page {
  padding: 34px 18px;
}

.sta-ticket-page > p {
  color: var(--sta-muted);
  font-size: 18px;
}

.sta-ticket-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.sta-ticket-link {
  background: #161616;
  justify-content: space-between;
  min-height: 72px;
}

.sta-ticket-link span {
  color: #f3d8a6;
}

.sta-ticket-card {
  background: var(--sta-paper);
  border: 1px solid var(--sta-line);
  border-radius: 8px;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(220px, 330px) 1fr;
  margin-top: 24px;
  padding: 26px;
}

.sta-ticket-card__qr {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
}

.sta-qr {
  display: block;
  height: auto;
  max-width: 100%;
}

.sta-ticket-status {
  border-radius: 999px;
  display: inline-flex;
  font-weight: 850;
  margin-bottom: 18px;
  padding: 8px 12px;
}

.sta-ticket-status--valid {
  background: #dcfce7;
  color: #166534;
}

.sta-ticket-status--used {
  background: #fee2e2;
  color: #991b1b;
}

.sta-ticket-card dl {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}

.sta-ticket-card dt {
  color: var(--sta-muted);
  font-size: 13px;
  font-weight: 750;
}

.sta-ticket-card dd {
  font-size: 22px;
  font-weight: 800;
  margin: 2px 0 0;
}

@media (max-width: 720px) {
  .sta-checkout__head,
  .sta-grid,
  .sta-checkout__bar,
  .sta-ticket-card {
    grid-template-columns: 1fr;
  }

  .sta-checkout__head,
  .sta-grid,
  .sta-checkout__bar {
    padding: 20px;
  }

  .sta-field--quantity {
    grid-column: span 1;
  }

  .sta-checkout__bar {
    align-items: stretch;
    display: grid;
  }

  .sta-price {
    text-align: left;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .sta-ticket-page,
  .sta-ticket-page * {
    visibility: visible;
  }

  .sta-ticket-page {
    left: 0;
    margin: 0;
    max-width: none;
    position: absolute;
    top: 0;
    width: 100%;
  }

  .sta-button {
    display: none;
  }
}
