/* Gift card page (giftcards.twig). Uses the tokens from shared.css, so seasons recolour it too. */
.gc { display: grid; gap: 28px; }
.gc__stage {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center;
  padding: 36px; border-radius: var(--r-lg); background: var(--wine-900); box-shadow: var(--bevel);
}
.gc__cardwrap { perspective: 900px; --rx: 0deg; --ry: 0deg; --sx: 50%; --sy: 50%; }
.gc__card {
  position: relative; aspect-ratio: 1.586; width: 100%; max-width: 460px; margin: 0 auto; padding: 22px 26px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate;
  border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, var(--g1, var(--heart-hi)) 0%, var(--g2, var(--heart)) 38%, var(--g3, var(--heart-lo)) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 2px 0 rgba(255,255,255,.28), inset 0 -6px 0 rgba(0,0,0,.22), 0 30px 50px -26px rgba(0,0,0,.9);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s var(--ease);
  animation: gcFloat 6s ease-in-out infinite;
}
.gc__cardwrap:hover .gc__card { animation-play-state: paused; }
.gc__grid {   /* faint pixel grid, the Minecraft touch */
  position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: linear-gradient(rgba(0,0,0,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.6) 1px, transparent 1px);
  background-size: 16px 16px; mix-blend-mode: multiply;
}
.gc__shine {
  position: absolute; inset: -40%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at var(--sx) var(--sy), rgba(255,255,255,.35), transparent 42%);
  mix-blend-mode: soft-light; opacity: .9;
}
.gc__top { display: flex; align-items: center; gap: 10px; }
.gc__logo { width: 36px; height: 36px; border-radius: 8px; image-rendering: pixelated; box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.gc__brand { font-weight: 900; letter-spacing: -.01em; font-size: 22px; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.gc__kind { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.32); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.gc__value { display: flex; align-items: baseline; gap: 4px; font-weight: 900; line-height: 1; text-shadow: 0 4px 0 rgba(0,0,0,.28); font-variant-numeric: tabular-nums; }
.gc__cur { font-size: clamp(26px, 4vw, 36px); opacity: .9; }
.gc__num { font-size: clamp(54px, 9vw, 84px); letter-spacing: -.03em; }
.gc__bottom { display: flex; align-items: center; justify-content: space-between; }
.gc__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .12em; opacity: .75; }
.gc__chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #ffe48a, #f2b632 55%, #b9770e); box-shadow: inset 0 0 0 1px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.5); }
@keyframes gcFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

.gc__panel { display: grid; gap: 14px; align-content: center; }
.gc__title { margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; }
.gc__amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.gc__amt {
  position: relative; display: grid; place-items: center; gap: 2px; min-height: 64px; padding: 10px 8px;
  border: 0; border-radius: var(--r-btn); cursor: pointer; text-decoration: none; font: inherit; color: var(--bone-dim);
  background: var(--wine-800); box-shadow: var(--bevel);
  transition: transform .2s var(--spring), background-color .2s, color .2s, box-shadow .2s;
}
.gc__amt:hover:not(:disabled) { transform: translateY(-3px); color: var(--bone); background: var(--wine-700); }
.gc__amt:active:not(:disabled) { transform: translateY(1px); }
.gc__amt:focus-visible { outline: 0; box-shadow: var(--ring); }
.gc__amt.is-on, .gc__amt.is-on:hover:not(:disabled) { color: #fff; background: var(--heart); box-shadow: var(--lip), 0 14px 26px -14px var(--heart); }
.gc__amt:disabled { opacity: .45; cursor: not-allowed; }
.gc__amt-v { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.gc__amt small { font-size: 11px; opacity: .75; }
.gc__amt--custom span { font-size: 16px; font-weight: 800; }
.gc__acts { margin-top: 2px; padding-top: 0; }
.gc__buy { font-size: 16px; min-height: 52px; }
.gc__buy.is-added { background: var(--ok); color: #10311a; }
.gc__note { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--bone-mute); }
.gc__note i { margin-top: 3px; color: var(--bone-dim); }

.gc__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gc__steps li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--wine-900); box-shadow: var(--bevel); }
.gc__steps b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--heart); color: #fff; font-weight: 800; box-shadow: var(--lip); }
.gc__steps strong { display: block; margin-bottom: 4px; font-size: 15px; }
.gc__steps span { font-size: 13.5px; line-height: 1.5; color: var(--bone-mute); }
.gc__balance { margin: 0; text-align: center; font-size: 14px; color: var(--bone-mute); }
.gc__balance a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .gc__stage { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .gc__steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .gc__card { animation: none; transition: none; }
  .gc__amt { transition: none; }
}

/* the tilting card can poke out a few pixels on phones while it moves: clip it, no scrollbar */
.gc { overflow-x: clip; }

/* ---------- card designs ---------- */
.gc__amt[hidden] { display: none; }
.gc__pat { position: absolute; inset: 0; z-index: -1; opacity: .12; background-size: 34px 34px; background-repeat: space; image-rendering: pixelated; pointer-events: none; }
.gc__art { position: absolute; right: 24px; top: 50%; z-index: 0; width: 104px; height: 104px; translate: 0 -46%; background: center / contain no-repeat; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .28)); pointer-events: none; }
.gc__card[data-style="classic"] .gc__art { opacity: .55; }
.gc__dsg { display: grid; gap: 14px; }
.gc__styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.gc__sty { display: grid; justify-items: center; gap: 8px; padding: 12px 8px; border: 0; border-radius: var(--r-btn); cursor: pointer; font: inherit; color: var(--bone-dim); background: var(--wine-800); box-shadow: var(--bevel); transition: transform .2s var(--spring), background-color .2s, color .2s, box-shadow .2s; }
.gc__sty:hover { transform: translateY(-3px); color: var(--bone); background: var(--wine-700); }
.gc__sty:focus-visible { outline: 0; box-shadow: var(--ring); }
.gc__sty.is-on, .gc__sty.is-on:hover { color: #fff; background: var(--wine-700); box-shadow: inset 0 0 0 2px #fff, 0 14px 26px -16px #000; }
.gc__sty-sw { width: 64px; height: 40px; border-radius: 8px; background-size: 28px 28px, 100% 100%; background-repeat: no-repeat; background-position: center, 0 0; image-rendering: pixelated; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.gc__sty-t { font-size: 13px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .gc__sty { transition: none; } }
@media (max-width: 480px) { .gc__art { width: 76px; height: 76px; right: 16px; } }

/* ---------- picture maker ---------- */
.gc__maker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: 32px; border-radius: var(--r-lg); background: var(--wine-900); box-shadow: var(--bevel); }
.gc__maker-form { display: grid; gap: 14px; }
.gc__maker-view canvas { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .9); }
.gc__f { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--bone-dim); }
.gc__f input, .gc__f select, .gc__f textarea { width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-btn); font: inherit; font-weight: 600; color: var(--bone); background: var(--wine-950); box-shadow: var(--bevel-in); }
.gc__f input:focus-visible, .gc__f select:focus-visible, .gc__f textarea:focus-visible { outline: 0; box-shadow: var(--ring); }
.gc__f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gc__macts { display: flex; flex-wrap: wrap; gap: 10px; }
.gc__macts .button[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 860px) { .gc__maker { grid-template-columns: 1fr; padding: 22px; gap: 22px; } .gc__maker-view { order: -1; } }

/* ---------- custom amount ---------- */
.gc__custom { display: grid; gap: 8px; }
.gc__custom[hidden] { display: none; }
.gc__f small { font-weight: 600; color: var(--bone-mute); }
.gc__cin { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border-radius: var(--r-btn); background: var(--wine-950); box-shadow: var(--bevel-in); }
.gc__cin i { font-style: normal; font-size: 22px; font-weight: 800; color: var(--bone-dim); }
.gc__cin input { flex: 1; min-width: 0; min-height: 48px; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; font-size: 24px; font-weight: 800; color: var(--bone); }
.gc__cin input:focus-visible { outline: 0; box-shadow: none; }
.gc__cin:focus-within { box-shadow: var(--ring); }
.gc__cerr { color: var(--heart-hi); }
.gc__amt--custom.is-on span { color: #fff; }

/* ---------- picture maker banner (under the buy button) ---------- */
.gc__mk { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--wine-850); box-shadow: var(--bevel-in); color: inherit; text-decoration: none; transition: transform .15s steps(3), background .15s; }
.gc__mk:hover { background: var(--wine-800, var(--wine-900)); transform: translateY(-1px); }
.gc__mk-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--wine-950); box-shadow: var(--bevel-in); }
.gc__mk-ic i { width: 32px; height: 32px; font-size: 32px; vertical-align: 0; }
.gc__mk-t { display: grid; gap: 2px; min-width: 0; }
.gc__mk-t strong { font-size: 15px; }
.gc__mk-t small { font-size: 13px; line-height: 1.4; color: var(--bone-mute); }
.gc__mk b { margin-left: auto; flex: none; font-size: 20px; color: var(--heart-hi); }

.gc__sample { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--bone-mute); }
.gc__f textarea { min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.45; }