.gift-page {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 4px 0 32px;
}

.gift-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.gift-form {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.gift-form h1,
.gift-stage h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 8px 0 0;
}

.gift-form .lede,
.gift-stage .lede {
  margin: 0;
  color: #6d6156;
  font-size: 1.05rem;
}

.gift-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

.gift-form input,
.gift-form select,
.gift-form textarea {
  width: 100%;
  border: 1.5px solid #e0d0b6;
  background: #fffaf3;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 500;
  color: #241c16;
}

.gift-form textarea {
  resize: vertical;
  min-height: 84px;
}

.gift-form input:focus,
.gift-form select:focus,
.gift-form textarea:focus {
  outline: 2px solid #c24d2c;
  outline-offset: 1px;
}

.gift-form .note { margin: -6px 0 0; color: #6d6156; }

.gift-buy,
.gift-toolbar .primary,
.gift-toolbar .gift-secondary {
  min-height: 52px;
  border-radius: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.gift-buy { width: 100%; }

.gift-buy:disabled,
.gift-toolbar .primary:disabled { opacity: 0.7; cursor: progress; }

.gift-error {
  margin: 0;
  color: #8a2e16;
  font-weight: 700;
}

.gift-preview { min-width: 0; }

.gift-stage {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.gift-stage h1 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0;
}

.gift-help,
.gift-claimed {
  margin: 0;
  max-width: 36rem;
  color: #6d6156;
  line-height: 1.45;
}

.gift-claimed { color: #241c16; font-weight: 600; }

.gift-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(100%, 560px);
}

.gift-toolbar .primary,
.gift-toolbar .gift-secondary {
  padding: 12px 16px;
  text-decoration: none;
}

.gift-secondary {
  background: #fffaf3;
  color: #241c16;
  border: 1.5px solid #e4d4ba;
}

.wallet-pass {
  width: min(100%, 360px);
  margin: 0 auto;
  background: #fffaf3;
  color: #241c16;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e4d4ba;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 243, 0.8),
    0 18px 40px rgba(70, 42, 18, 0.12);
  text-align: left;
}

.pass-header {
  background: #c24d2c;
  color: #fffaf3;
  padding: 16px 18px 18px;
}

.pass-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pass-wordmark,
.pass-badge,
.pass-title,
.pass-label,
.pass-value,
.pass-note,
.pass-code {
  margin: 0;
}

.pass-wordmark {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.pass-badge {
  border: 1px solid rgba(255, 250, 243, 0.75);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.pass-title {
  margin-top: 12px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.pass-body { padding: 16px 18px 18px; }

.pass-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pass-label {
  color: #6d6156;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pass-value {
  margin-top: 2px;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pass-empty { color: #a89886; font-weight: 500; }

.pass-note {
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pass-perforation {
  height: 1px;
  margin: 16px 0 16px;
  background-image: linear-gradient(to right, #c4b49a 50%, transparent 0);
  background-size: 10px 1px;
  background-repeat: repeat-x;
}

.pass-qr {
  width: min(100%, 188px);
  margin: 0 auto;
  padding: 10px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(36, 28, 22, 0.08);
}

.pass-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.pass-code {
  margin-top: 12px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

@media (min-width: 880px) {
  .gift-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
  }

  .gift-preview { position: sticky; top: 88px; }
}

@media print {
  body {
    background: #fff !important;
  }

  body::before,
  .skip,
  .site-header,
  .site-footer,
  .menu-sheet,
  .gift-print-hide {
    display: none !important;
  }

  .gift-page,
  .gift-stage,
  .gift-layout,
  .gift-preview {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
  }

  .wallet-pass {
    box-shadow: none;
    margin: 8mm auto;
    break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
