/* The gift card page (tools/gift_card_page.cjs). Built only from the shop's own components and tokens, nothing invented:
   - choices (amount, where to post): the product page's outlined pill, .v2-buy__pay (ink hairline, 999px, Hanken 600 tracked
     capitals); the chosen one fills like the Pre-order button, .mk-atb (burgundy, cream type)
   - fields: the product page's white rounded field, .v2-buy__field (white, hairline, 12px radius, 52px), with its small burgundy
     label, .v2-buy__k
   - gallery: the product page's thumbnails on the left and one large photo (Darius, 28 Nov 2026: "use the CTA's that we
     actually use in the rest of the website", "make it pretty"). */

.gc { --gc-ink: var(--mk-ink, #2a2620); --gc-ink2: var(--mk-ink-2, #55503f); --gc-burg: var(--mk-burgundy, #6e2833); --gc-cream: #f4efe6; }
.gc .mk-pdp { align-items: start; }

/* ---------------------------------------------------------------- gallery */
.gc-gal { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; position: sticky; top: 96px; }
.gc-thumbs { display: flex; flex-direction: column; gap: 10px; }
.gc-thumb { all: unset; box-sizing: border-box; display: block; width: 76px; aspect-ratio: 1100 / 1365; cursor: pointer; opacity: .62; outline: 1px solid transparent; outline-offset: 2px; transition: opacity .3s ease, outline-color .3s ease; }
.gc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gc-thumb[aria-current="true"] { opacity: 1; outline-color: var(--gc-ink); }
@media (hover: hover) { .gc-thumb:hover { opacity: 1; } }
.gc-thumb:focus-visible { opacity: 1; outline: 2px solid var(--gc-burg); }
.gc-main { position: relative; aspect-ratio: 1100 / 1365; overflow: hidden; background: var(--mk-sand-2, #e9e2d6); }
.gc-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.gc-slide.is-on { opacity: 1; }
.gc-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gc-count { position: absolute; top: 14px; right: 14px; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(250, 249, 246, .86);
  font: 500 10.5px/1.4 var(--mk-label); letter-spacing: .08em; color: var(--gc-ink); }

/* ---------------------------------------------------------------- words */
.gc-info > * { order: 0 !important; }
.gc-eye { margin: 0 0 14px; font: 600 10.5px/1.4 var(--mk-label); letter-spacing: .22em; text-transform: uppercase; color: var(--gc-ink); }
.gc-line { margin: 18px 0 0; font: 300 15px/1.6 var(--mk-sans); color: var(--gc-ink); }
.gc-desc { margin: 10px 0 0; max-width: 46ch; }
.gc-desc p { margin: 0 0 8px; font: 300 14px/1.7 var(--mk-sans); color: var(--gc-ink2); }

/* ---------------------------------------------------------------- choices */
.gc-form { margin: 26px 0 0; }
.gc-choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.gc-choice legend { margin: 0 0 12px; padding: 0; font: 300 12.5px/1.8 var(--mk-sans); letter-spacing: .02em; color: var(--gc-ink2); }
.gc-pills { display: grid; gap: 10px; }
.gc-pills--amt { grid-template-columns: repeat(5, minmax(0, 1fr)); } /* $150 to $1,000 (Darius, 28 Nov 2026: "start at $150") */
.gc-pills--to { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gc-pill { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gc-pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.gc-pill span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px; border: 1px solid var(--gc-ink); border-radius: 999px;
  font: 600 11px/1 var(--mk-label); letter-spacing: .16em; text-transform: uppercase; color: var(--gc-ink); white-space: nowrap;
  transition: background-color .3s var(--mk-ease, ease), color .3s var(--mk-ease, ease), border-color .3s var(--mk-ease, ease), transform .3s var(--mk-ease, ease); }
@media (hover: hover) { .gc-pill:hover span { background: rgba(42, 38, 32, .05); transform: translateY(-1px); } }
.gc-pill input:checked + span { background: var(--gc-burg); border-color: var(--gc-burg); color: var(--gc-cream); transform: none; }
.gc-pill input:focus-visible + span { outline: 2px solid var(--gc-burg); outline-offset: 3px; }
.gc-pill input:disabled + span { opacity: .35; cursor: default; }
.gc-wait { grid-column: 1 / -1; margin: 0; font: 300 13px/1.6 var(--mk-sans); color: var(--gc-ink2); }

.gc-price { margin: 22px 0 0; }
.gc-price[hidden] { display: none; }
.gc-arrives { margin: 26px 0 0; }
.gc-note { margin: 16px 0 0; max-width: 48ch; font: 300 13.5px/1.7 var(--mk-sans); color: var(--gc-ink); }
.gc-note--xmas { color: var(--gc-burg); }
.gc-note[hidden] { display: none; }
.gc-note + .gc-choice { margin-top: 28px; }

/* ---------------------------------------------------------------- fields */
.gc-fields { display: grid; gap: 12px; margin: 22px 0 0; }
.gc-fields[hidden] { display: none; }
.gc-fields__h { margin: 0 0 2px; font: 300 12.5px/1.8 var(--mk-sans); color: var(--gc-ink2); }
.gc-fields__h span, .gc-field__k span { text-transform: none; letter-spacing: 0; font-weight: 300; color: var(--gc-ink2); }
.gc-fields__s { margin: -2px 0 0; font: 300 12px/1.6 var(--mk-sans); color: var(--gc-ink2); }
.gc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gc-field { display: block; min-width: 0; }
.gc-field__k { display: block; margin: 0 0 7px; font: 600 10px/1 var(--mk-label); letter-spacing: .2em; text-transform: uppercase; color: var(--gc-burg); }
.gc-field input, .gc-field select { box-sizing: border-box; display: block; width: 100%; min-height: 52px; margin: 0; padding: 0 14px; border: 1px solid rgba(42, 38, 32, .16); border-radius: 12px;
  background-color: #fff; box-shadow: inset 0 1px 2px rgba(42, 38, 32, .05); font: 300 15px/1.3 var(--mk-sans); color: var(--gc-ink); outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .25s ease, box-shadow .25s ease; }
.gc-field select { padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
@media (hover: hover) { .gc-field input:hover, .gc-field select:hover { border-color: rgba(110, 40, 51, .45); } }
.gc-field input:focus, .gc-field select:focus { border-color: var(--gc-burg); box-shadow: 0 0 0 3px rgba(110, 40, 51, .12); }
.gc-field.is-missing input, .gc-field.is-missing select { border-color: var(--gc-burg); }

.gc-error { margin: 14px 0 0; font: 300 13px/1.6 var(--mk-sans); color: var(--gc-burg); }
.gc-error[hidden] { display: none; }
.gc-buy { margin-top: 24px; }
.gc-buy[disabled] { opacity: .45; cursor: default; }
.gc-assure { margin-top: 18px; }
.gc-acc { margin-top: 28px; }
.gc-acc .mk-acc__a p { margin: 0 0 10px; font: 300 13.5px/1.7 var(--mk-sans); color: var(--gc-ink2); }
.gc-sign { margin: 30px 0 0; font: 300 14px/1.6 var(--mk-sans); color: var(--gc-ink); }

/* ---------------------------------------------------------------- phones (most of the shop's visits) */
@media (max-width: 760px) {
  .gc-gal { position: static; grid-template-columns: 1fr; gap: 10px; }
  .gc-main { order: 1; }
  .gc-thumbs { order: 2; flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .gc-thumbs::-webkit-scrollbar { display: none; }
  .gc-thumb { flex: none; width: 62px; }
  .gc-pills, .gc-row { gap: 8px; }
  .gc-pill span { min-height: 46px; padding: 0 6px; letter-spacing: .1em; font-size: 10.5px; }
}
@media (max-width: 760px) { .gc-pills--amt { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .gc-slide, .gc-pill span { transition: none; } }
