/* Gift pages: host screens in the app (gifts.js) and the guest page (celebrate.html).
   Uses the app's :root tokens (celebrate.html defines the same tokens inline). Linen + paper, no emoji. */
.gf-screen { position: fixed; inset: 0; z-index: 60; overflow-y: auto; -webkit-overflow-scrolling: touch; background-color: var(--bg);
  background-image: repeating-linear-gradient(0deg, rgba(120,100,70,.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(120,100,70,.03) 0 1px, transparent 1px 4px);
  padding: env(safe-area-inset-top) 0 calc(40px + env(safe-area-inset-bottom)); }
.gf-screen[hidden] { display: none; }
body.gf-open { overflow: hidden; }
.gf-wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 24px; }
.gf-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.gf-back { width: 48px; height: 48px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); }
.gf-back svg { width: 22px; height: 22px; }
.gf-title { font-family: var(--font-title); font-weight: 500; font-size: 28px; letter-spacing: .18em; text-transform: uppercase; text-align: center; margin: 4px 0 0; line-height: 1.15; }
.gf-sub { text-align: center; color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.gf-orn { display: flex; align-items: center; gap: 10px; color: var(--accent); margin: 12px auto 18px; max-width: 220px; }
.gf-orn::before, .gf-orn::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.gf-orn svg { width: 16px; height: 16px; }
.gf-sheet { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 0 0 16px; }
.gf-sheet h3 { font-family: var(--font-title); font-weight: 600; font-size: 22px; margin: 0 0 8px; }
.gf-label { display: block; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.gf-field { margin: 0 0 14px; }
.gf-input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; font: 17px/1.4 var(--font-ui); color: var(--ink); }
textarea.gf-input { min-height: 120px; resize: vertical; }
.gf-hint { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.gf-muted { color: var(--muted); }
.gf-small { font-size: 13px; }
.gf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--paper); font: 500 17px var(--font-ui); text-decoration: none; cursor: pointer; }
.gf-btn.wide { width: 100%; }
.gf-btn.ghost { background: transparent; color: var(--accent); }
.gf-btn.quiet { background: transparent; border-color: transparent; color: var(--accent); min-height: 48px; }
.gf-btn.danger { background: transparent; color: var(--over); border-color: var(--over); }
.gf-btn.danger.armed { background: var(--over); color: var(--paper); }
.gf-btn.wa { background: #25D366; border-color: #25D366; color: #fff; }
.gf-btn:disabled { opacity: .5; cursor: default; }
.gf-btn + .gf-btn { margin-top: 10px; }
.gf-stack > * + * { margin-top: 10px; }
.gf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gf-chip { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; color: var(--ink); font: 16px var(--font-ui); }
.gf-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.gf-check { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 10px 0; font-size: 16px; }
.gf-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.gf-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-size: 16px; }
.gf-switch input { width: 46px; height: 26px; accent-color: var(--accent); flex: none; }
.gf-row { display: flex; gap: 10px; align-items: center; }
.gf-row > .grow { flex: 1; min-width: 0; }
.gf-card { display: flex; width: 100%; text-align: left; align-items: center; gap: 12px; min-height: 64px; padding: 14px 16px; margin: 0 0 10px; border: 0; border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow); color: var(--ink); font: 16px var(--font-ui); cursor: pointer; }
.gf-card .t { display: block; font-family: var(--font-title); font-size: 21px; font-weight: 600; }
.gf-card .m { display: block; color: var(--muted); font-size: 14px; }
.gf-card svg { width: 18px; height: 18px; color: var(--muted); flex: none; margin-left: auto; }
.gf-plan { text-align: center; font-family: var(--font-title); font-size: 20px; margin: 0 0 14px; }
.gf-code { font-family: var(--font-title); font-size: 40px; letter-spacing: .3em; text-align: center; margin: 4px 0; }
.gf-qr { width: 220px; max-width: 70%; margin: 10px auto; display: block; }
.gf-qr svg { width: 100%; height: auto; display: block; border-radius: 4px; }
.gf-link { width: 100%; font-size: 14px; }
.gf-note { font-family: var(--font-hand); font-size: 19px; line-height: 1.5; white-space: pre-wrap; margin: 8px 0 0; }
.gf-from { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.gf-bar { height: 12px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; margin: 10px 0 6px; }
.gf-bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.gf-progress { font-size: 16px; margin: 0; }
.gf-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 12px; }
.gf-amounts .gf-chip { padding: 0 6px; }
.gf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.gf-two > div { min-width: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px; font-size: 14px; }
.gf-two ul, .gf-two ol { margin: 4px 0 0; padding-left: 18px; }
.gf-two li { margin: 0 0 4px; overflow-wrap: anywhere; }
.gf-two pre { white-space: pre-wrap; font: 14px/1.45 var(--font-ui); margin: 0; overflow-wrap: anywhere; }
@media (max-width: 340px) { .gf-two { grid-template-columns: 1fr; } }
.gf-photo { display: block; width: 100%; max-height: 320px; object-fit: contain; border-radius: var(--radius); background: #fff; margin: 8px 0; }
.gf-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gf-status { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.gf-ok { color: var(--accent); font-weight: 500; }
.gf-err { color: var(--over); }
.gf-banner { background: var(--accent-soft); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 16px; font-size: 16px; }
.gf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gf-plan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.gf-plan-row:last-of-type { border-bottom: 0; }
.gf-plan-row .t { font-family: var(--font-title); font-size: 21px; font-weight: 600; }
.gf-done { text-align: center; padding: 8px 0; }
.gf-done .gf-title { font-size: 24px; letter-spacing: .1em; }
.gf-list { list-style: none; margin: 0; padding: 0; }
.gf-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.gf-list li:last-child { border-bottom: 0; }
.gf-lang { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: var(--paper); }
.gf-lang button { min-height: 48px; min-width: 48px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 15px var(--font-ui); }
.gf-lang button[aria-pressed="true"] { background: var(--accent); color: var(--paper); }
/* recipes.js: gifted recipe note */
.rcp-gift { border-left: 3px solid var(--accent); }
.rcp-gift .gf-note { font-size: 18px; }

/* pick-your-own packs */
.gf-packs h3 { margin: 0 0 4px; }
.gf-pack { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gf-pack.on { border-color: var(--accent); background: var(--accent-soft); }
.gf-pack .grow { flex: 1; }
.gf-pack-tick { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); }
.gf-pack-price { flex: none; font-weight: 600; }
