/* Gift cards: the buy page, the card page, the thanks / check / my cards pages.

   Built like the site's other content pages (Contact, About): a hero band with white text at the top,
   then the page's cards on the page background below it.
   - Seasonal edition (winter, autumn; Helpers/SiteTheme.cs): the pages set ViewData["WinterPage"], so
     the band is the season's sky with Ararat (Views/Shared/_WinterHero.cshtml, css/pages/winter-pages.css)
     running up behind the floating header, and the night switch turns the page to the winter night.
   - Classic edition: the band is TripleWin's deep evergreen with a lime glow and the star.
   The card itself is lime running into mint with the TripleWin star, in every season. Never black. */

.gc-page {
  --gc-ink: #17211d;          /* deep evergreen (landing --lp-ink) */
  --gc-on-lime: #17211d;      /* text on the lime, whatever the theme */
  --gc-text: #333136;
  --gc-muted: rgba(51, 49, 54, .66);
  --gc-lime: #e5ee80;
  --gc-lime-soft: #f6fbc4;
  --gc-lime-deep: #5d6a0e;
  --gc-mint: #7fe0b8;
  --gc-tint: #f6f7ec;
  --gc-line: rgba(51, 49, 54, .1);
  --gc-panel-bg: #ffffff;
  --gc-panel-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); /* Contact's form card */
  --gc-field-bg: #f9fafb;
  --gc-band-bg: #f9fafb;
  --gc-ease: cubic-bezier(.2, .7, .2, 1);
  position: relative;
  color: var(--gc-text);
}

/* The classic edition has no page background of its own here: a soft tint under the cards */
html[data-season="classic"] .gc-page { background: var(--gc-tint); }

.gc-wrap {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.gc-wrap--narrow { max-width: 640px; }

/* ---------- The hero band ---------- */
.gc-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.gc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Classic: deep evergreen with a lime glow; the seasonal sky is drawn over it (_WinterHero) */
  background:
    radial-gradient(55% 80% at 88% 0%, rgba(229, 238, 128, .22) 0%, transparent 62%),
    radial-gradient(45% 70% at 0% 100%, rgba(127, 224, 184, .16) 0%, transparent 65%),
    linear-gradient(160deg, #17211d 0%, #1f2b26 55%, #2a3831 100%);
}

/* ---------- The season's photograph ----------
   A real place in the season behind the band at the top of every gift card page and behind the big
   card (.gc-cardscene), under the season's veil, which keeps the white text readable: the
   --season-* variables of css/winter-scene.css, which these pages load. A phone gets the narrow
   copy (-m). */
html:not([data-season="classic"]) .gc-page .gc-hero .gc-hero__bg,
html:not([data-season="classic"]) .gc-page .gc-cardscene {
  background: var(--season-veil), var(--season-photo) var(--season-photo-at) / cover no-repeat, var(--season-photo-back);
}

@media (max-width: 575.98px) {
  html:not([data-season="classic"]) .gc-page .gc-hero .gc-hero__bg,
  html:not([data-season="classic"]) .gc-page .gc-cardscene {
    background: var(--season-veil), var(--season-photo-m) center / cover no-repeat, var(--season-photo-back);
  }
}

/* Over a photograph the drawn sky has no place: its colour, the sun, the stars, the moon and the
   drawn Ararat (Views/Shared/_WinterHero.cshtml) go, and what falls in the season stays. The star in
   the corner is the classic band's. */
html:not([data-season="classic"]) .gc-page .gc-hero .tw-winter-hero {
  background: none;
}

html:not([data-season="classic"]) .gc-page .gc-hero .tw-winter-hero__sun,
html:not([data-season="classic"]) .gc-page .gc-hero .lp-night-stars,
html:not([data-season="classic"]) .gc-page .gc-hero .lp-moon,
html:not([data-season="classic"]) .gc-page .gc-hero .lp-ararat,
html:not([data-season="classic"]) .gc-page .gc-hero .gc-hero__star {
  display: none;
}

/* The site's white veil for photo heroes (.hero-bg::after): not over this band's own colours */
.gc-page .gc-hero__bg::before,
.gc-page .gc-hero__bg::after { content: none; display: none; }

.gc-hero__star {
  position: absolute;
  z-index: 1;
  right: -6%;
  top: -18%;
  width: min(46vw, 560px);
  fill: #e5ee80;
  opacity: .08;
  transform: rotate(14deg);
}

.gc-hero__content {
  position: relative;
  z-index: 3;
}

/* Classic: the band sits under the sticky header */
html[data-season="classic"] .gc-hero__content { padding: 4.5rem 0 4.75rem; }

/* Seasonal: room under the floating header, and for Ararat at the foot (winter-pages.css sets the base) */
.tw-winter-page .gc-page .gc-hero .gc-hero__content {
  padding-top: calc(var(--lp-header-h, 80px) + 3.25rem);
}

.gc-hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.gc-hero:not(.gc-hero--cards) .gc-hero__text {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.gc-hero--cards .gc-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }

.gc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(100deg, rgba(255, 255, 255, .16), rgba(229, 238, 128, .12));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), 0 10px 30px -16px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  margin-bottom: 1.25rem;
}

.gc-hero__badge .gc-icon { color: #e5ee80; }

.gc-page .gc-hero h1 {
  font-family: var(--font-heading, inherit);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  color: #ffffff !important;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .22);
  margin: 0 0 1rem;
}

.gc-page .gc-hero .gc-hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .9) !important;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .2);
  margin: 0;
  max-width: 36rem;
}

.gc-hero:not(.gc-hero--cards) .gc-hero__lead { margin: 0 auto; }

.gc-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

/* Two cards fanned out beside the headline */
.gc-hero__cards {
  position: relative;
  height: 340px;
}

.gc-hero__card {
  position: absolute;
  width: min(100%, 430px);
  left: 50%;
  top: 50%;
}

.gc-hero__card .gc-card { filter: drop-shadow(0 34px 36px rgba(0, 0, 0, .32)) drop-shadow(0 2px 6px rgba(0, 0, 0, .12)); }

.gc-hero__card--back {
  transform: translate(-58%, -62%) rotate(-9deg) scale(.86);
  opacity: .92;
  filter: saturate(.85);
}

.gc-hero__card--front {
  transform: translate(-42%, -40%) rotate(4deg);
  animation: gc-float 7s ease-in-out infinite;
}

@keyframes gc-float {
  0%, 100% { transform: translate(-42%, -40%) rotate(4deg); }
  50% { transform: translate(-42%, -44%) rotate(3deg); }
}

@media (max-width: 991px) {
  .gc-hero--cards .gc-hero__grid { grid-template-columns: 1fr; gap: 1rem; }
  .gc-hero--cards .gc-hero__text { text-align: center; }
  .gc-hero--cards .gc-hero__lead { margin: 0 auto; }
  .gc-hero--cards .gc-hero__links { justify-content: center; }
  .gc-hero__cards { height: 300px; }
}

@media (max-width: 575px) {
  .gc-hero__cards { display: none; }
  .gc-hero__links .gc-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .gc-hero__card--front { animation: none; }
}

/* ---------- Below the band ---------- */
.gc-body {
  position: relative;
  padding: 3.5rem 0 5.5rem;
}

.gc-section-title {
  font-family: var(--font-heading, inherit);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -.02em;
  color: var(--gc-ink);
  text-align: center;
  margin: 0 0 2rem;
}

.gc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 2.25rem;
  align-items: start;
}

.gc-grid__aside {
  position: sticky;
  top: calc(var(--lp-header-h, 80px) + 1.5rem);
}

@media (max-width: 991px) {
  .gc-grid { grid-template-columns: 1fr; }
  .gc-grid__aside { order: -1; position: static; }
}

/* The cards: as Contact's form card, white with a soft shadow and no outline */
.gc-panel {
  position: relative;
  background: var(--gc-panel-bg);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--gc-panel-shadow);
}

.gc-panel + .gc-panel { margin-top: 1.25rem; }

/* The site's outline icons (Views/GiftCard/_GcIcon.cshtml) */
.gc-icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  vertical-align: -.18em;
}

/* Icon tiles, as Contact's: the brand lime with a dark icon, or a soft lime for lists */
.gc-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--gc-lime);
  color: var(--gc-on-lime);
}

.gc-tile .gc-icon { width: 2rem; height: 2rem; }

.gc-tile--soft {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .85rem;
  background: rgba(229, 238, 128, .32);
  color: var(--gc-ink);
}

.gc-tile--soft .gc-icon { width: 1.35rem; height: 1.35rem; }

.gc-panel h2 {
  display: flex;
  align-items: center;
  font-family: var(--font-heading, inherit);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gc-ink);
  margin: 0 0 1.1rem;
}

/* The buy form: one card, its three steps divided by a line */
.gc-form { padding: 0; }

.gc-form__section { padding: 1.85rem 2rem; }

.gc-form__section + .gc-form__section { border-top: 1px solid var(--gc-line); }

@media (max-width: 575px) {
  .gc-form__section { padding: 1.5rem 1.25rem; }
  .gc-panel { padding: 1.4rem 1.25rem; }
}

.gc-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: .6rem;
  background: var(--gc-lime);
  color: var(--gc-on-lime);
  font-size: .9rem;
  font-weight: 700;
  margin-right: .75rem;
  flex: 0 0 auto;
}

/* Amount */
.gc-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-bottom: 1.1rem;
}

.gc-chip {
  border: 1.5px solid transparent;
  background: var(--gc-field-bg);
  border-radius: .75rem;
  padding: .7rem .5rem;
  font-weight: 700;
  font-size: .98rem;
  color: var(--gc-ink);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s var(--gc-ease), box-shadow .15s;
}

.gc-chip:hover { border-color: var(--gc-lime-deep); transform: translateY(-1px); }

.gc-chip.is-active {
  background: var(--gc-lime);
  border-color: var(--gc-lime);
  color: var(--gc-on-lime);
}

.gc-amount-input {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.gc-amount-input input[type=number] {
  max-width: 13rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gc-ink);
}

.gc-amount-input__currency { font-weight: 700; color: var(--gc-ink); }

.gc-range { width: 100%; margin-top: 1rem; accent-color: var(--gc-lime-deep); }

.gc-hint {
  color: var(--gc-muted);
  font-size: .85rem;
  margin-top: .4rem;
}

.gc-link,
a.gc-hint { color: var(--gc-lime-deep); font-weight: 600; text-decoration: none; }
.gc-link:hover,
a.gc-hint:hover { text-decoration: underline; color: var(--gc-lime-deep); }

.gc-secure {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  margin-top: .85rem;
  color: var(--gc-muted);
  font-size: .85rem;
}

.gc-secure .gc-icon { color: var(--gc-lime-deep); }

/* Part of the balance held for a booking payment the owner has not finished yet */
.gc-held {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-top: .85rem;
  padding: .65rem .85rem;
  border-radius: 12px;
  background: rgba(255, 217, 120, .26);
  border: 1px solid rgba(201, 150, 20, .32);
  color: var(--gc-ink);
  font-size: .85rem;
  line-height: 1.45;
  text-align: left;
}

.gc-held .gc-icon { color: #a06f00; margin-top: .1rem; }

/* Fields, as Contact's: filled, no outline, a lime ring when focused */
.gc-page .form-label { font-weight: 500; font-size: .9375rem; color: var(--gc-ink); margin-bottom: .5rem; }

.gc-page .form-control {
  border: 0;
  border-radius: .75rem;
  padding: .75rem 1rem;
  background-color: var(--gc-field-bg);
  color: var(--gc-ink);
  box-shadow: none;
  transition: box-shadow .2s;
}

.gc-page .form-control:focus { background-color: var(--gc-field-bg); box-shadow: 0 0 0 2px rgba(229, 238, 128, .9); }
.gc-page .form-control::placeholder { color: #9ca3af; }

.gc-code-input {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

/* Buttons, as the landing page's: lime with evergreen text, a light passing over on hover */
.gc-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  padding: .8rem 1.6rem;
  font-weight: 700;
  background: var(--gc-lime);
  color: var(--gc-on-lime);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--gc-ease), box-shadow .2s var(--gc-ease), background .2s;
}

.gc-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%);
  translate: -110% 0;
  transition: translate .7s var(--gc-ease);
}

.gc-btn:hover {
  color: var(--gc-on-lime);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -16px rgba(170, 186, 40, .85);
}

.gc-btn:hover::after { translate: 110% 0; }
.gc-btn:active { transform: translateY(0); }
.gc-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.gc-btn--block { width: 100%; }

/* The site's main button: the brand lime, as Contact's "Send Message" */
.gc-btn--lime { background: var(--gc-lime); }

.gc-btn--ghost {
  background: var(--gc-panel-bg);
  color: var(--gc-ink);
  border: 1.5px solid var(--gc-line);
}

.gc-btn--ghost:hover { color: var(--gc-ink); border-color: var(--gc-lime-deep); box-shadow: 0 12px 26px -16px rgba(23, 33, 29, .35); }
.gc-btn--ghost::after { display: none; }

/* On the hero: glass with white text */
.gc-btn--glass {
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gc-btn--glass:hover { color: #ffffff; background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1.5px #ffffff; }
.gc-btn--glass::after { display: none; }

.gc-alert {
  border-radius: 12px;
  padding: .85rem 1rem;
  font-size: .95rem;
  margin-top: 1rem;
}

.gc-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.gc-alert--ok { background: var(--gc-lime-soft); color: var(--gc-on-lime); border: 1px solid rgba(93, 106, 14, .3); }
.gc-alert--info { background: var(--gc-tint); color: var(--gc-ink); border: 1px solid var(--gc-line); }

/* The key facts beside the preview, as Contact's details: a soft lime tile and a line of text */
.gc-facts {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.1rem;
}

.gc-facts li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gc-text);
  font-size: .95rem;
  line-height: 1.45;
}

/* How it works, as Contact's "Why contact us": a light band, a centred title, three steps */
.gc-how {
  background: var(--gc-band-bg);
  padding: 5rem 0;
}

.gc-how__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.gc-how__header h2 {
  font-family: var(--font-heading, inherit);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--gc-ink);
  margin: 0 0 1rem;
}

.gc-how__header p {
  color: var(--gc-muted);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

.gc-how__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.gc-how__item { text-align: center; }
.gc-how__item .gc-tile { margin-bottom: 1.5rem; }

.gc-how__item h3 {
  font-family: var(--font-heading, inherit);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gc-ink);
  margin: 0 0 .75rem;
}

.gc-how__item p { margin: 0 auto; max-width: 20rem; color: var(--gc-muted); line-height: 1.6; }

@media (max-width: 767px) {
  .gc-how { padding: 3.5rem 0; }
  .gc-how__list { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- The card: a voucher in TripleWin's colours ----------
   The brand lime above (the star, the name, the amount), a perforated tear line with notches cut in
   both edges, and a white stub below (code, expiry date, QR code). The notches are cut with a mask on
   .gc-card__body; the shadow sits on .gc-card as a drop shadow, so it follows the notches. */
.gc-card {
  --gc-card-ink: #17211d;
  --gc-split: 63%;          /* where the tear line runs */
  --gc-notch: 11px;
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  color: var(--gc-card-ink);
  filter: drop-shadow(0 22px 28px rgba(23, 33, 29, .2)) drop-shadow(0 2px 4px rgba(23, 33, 29, .08));
}

.gc-card__body {
  position: relative;
  aspect-ratio: 1.586;
  display: grid;
  grid-template-rows: var(--gc-split) calc(100% - var(--gc-split));
  border-radius: 22px;
  overflow: hidden;
  -webkit-mask:
    radial-gradient(circle var(--gc-notch) at 0 var(--gc-split), transparent 97%, #000 100%),
    radial-gradient(circle var(--gc-notch) at 100% var(--gc-split), transparent 97%, #000 100%);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle var(--gc-notch) at 0 var(--gc-split), transparent 97%, #000 100%),
    radial-gradient(circle var(--gc-notch) at 100% var(--gc-split), transparent 97%, #000 100%);
  mask-composite: intersect;
}

/* The lime face */
.gc-card__face {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.3rem 1.5rem 1.1rem;
  background:
    radial-gradient(110% 120% at 0% 0%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(70% 90% at 100% 100%, rgba(127, 224, 184, .55) 0%, rgba(127, 224, 184, 0) 62%),
    #e5ee80;
}

/* The TripleWin star across the face, a shade darker than the lime */
.gc-card__watermark {
  position: absolute;
  z-index: -1;
  width: 58%;
  right: -12%;
  top: -34%;
  fill: var(--gc-card-ink);
  opacity: .06;
  transform: rotate(14deg);
  pointer-events: none;
}

.gc-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.gc-card__brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.gc-card__mark { width: 1.45rem; height: 1.45rem; fill: var(--gc-card-ink); }

.gc-card__wordmark {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -.01em;
}

.gc-card__label {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #e5ee80;
  background: var(--gc-card-ink);
  padding: .34rem .7rem;
  border-radius: 999px;
}

.gc-card__amount {
  font-family: var(--font-heading, inherit);
  font-size: clamp(1.8rem, 5vw, 2.55rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.gc-card__for { font-size: .9rem; margin-top: .35rem; color: rgba(23, 33, 29, .78); }

.gc-card__message {
  margin-top: .2rem;
  font-size: .82rem;
  font-style: italic;
  color: rgba(23, 33, 29, .72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The white stub under the tear line */
.gc-card__stub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.5rem;
  background: #ffffff;
}

/* The perforation: a dashed line between the notches */
.gc-card__stub::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(var(--gc-notch) + 6px);
  right: calc(var(--gc-notch) + 6px);
  border-top: 2px dashed rgba(23, 33, 29, .16);
}

.gc-card__details {
  display: flex;
  gap: 1.5rem;
  min-width: 0;
}

.gc-card__small {
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(23, 33, 29, .5);
  margin-bottom: .15rem;
}

.gc-card__code {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-weight: 700;
  font-size: clamp(.8rem, 2.4vw, .98rem);
  letter-spacing: .05em;
  white-space: nowrap;
}

.gc-card__date { font-weight: 700; font-size: .9rem; white-space: nowrap; }

.gc-card__qr {
  width: 4.2rem;
  height: 4.2rem;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #fff;
}

.gc-card__qr--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6e4;
  color: rgba(23, 33, 29, .35);
  padding: .65rem;
}

.gc-card__qr--placeholder svg { width: 100%; height: 100%; }

.gc-card[hidden], .gc-card [hidden] { display: none !important; }

/* Phones: a little taller, smaller type, the note left out */
@media (max-width: 520px) {
  .gc-card { --gc-split: 60%; --gc-notch: 9px; }
  .gc-card__body { aspect-ratio: 1.42; border-radius: 18px; }
  .gc-card__face { padding: 1rem 1.1rem .85rem; }
  .gc-card__stub { padding: .6rem 1.1rem; }
  .gc-card__amount { font-size: 1.75rem; }
  .gc-card__wordmark { font-size: 1rem; }
  .gc-card__label { font-size: .55rem; padding: .28rem .55rem; }
  .gc-card__message { display: none !important; }
  .gc-card__details { flex-direction: column; gap: .3rem; }
  .gc-card__qr { width: 3.6rem; height: 3.6rem; }
}

/* ---------- Card page ---------- */
.gc-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
}

.gc-status--active { background: rgba(127, 224, 184, .35); color: #135c3f; }
.gc-status--waiting { background: rgba(255, 217, 120, .45); color: #6b4e05; }
.gc-status--off { background: rgba(51, 49, 54, .07); color: rgba(51, 49, 54, .8); }
.gc-status--blocked { background: #fee2e2; color: #991b1b; }

.gc-balance {
  font-family: var(--font-heading, inherit);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--gc-ink);
  margin: .6rem 0 .2rem;
}

.gc-share {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.gc-share .gc-btn { min-height: 44px; padding: .55rem 1rem; font-size: .92rem; }

.gc-linkbox {
  display: flex;
  gap: .5rem;
  margin-bottom: .75rem;
}

.gc-linkbox input { font-size: .85rem; }
.gc-linkbox .gc-btn { min-height: auto; }

.gc-steps {
  counter-reset: gc;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .8rem;
}

.gc-steps li {
  counter-increment: gc;
  display: flex;
  gap: .75rem;
  color: var(--gc-text);
}

.gc-steps li::before {
  content: counter(gc);
  flex: 0 0 2rem;
  height: 2rem;
  border-radius: .6rem;
  background: var(--gc-lime);
  color: var(--gc-on-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}

/* ---------- Card page: one column, the card big (Views/GiftCard/Card.cshtml) ---------- */
.gc-cardpage {
  max-width: 680px; /* the card 640px wide inside the side padding */
}

.gc-cardpage .gc-card {
  max-width: 640px;
  --gc-notch: 14px;
}

.gc-cardpage .gc-card__body { border-radius: 28px; }
.gc-cardpage .gc-card__face { padding: 1.9rem 2.2rem 1.6rem; }
.gc-cardpage .gc-card__stub { padding: 1rem 2.2rem; }
.gc-cardpage .gc-card__mark { width: 1.9rem; height: 1.9rem; }
.gc-cardpage .gc-card__wordmark { font-size: 1.45rem; }
.gc-cardpage .gc-card__label { font-size: .72rem; padding: .42rem .9rem; }
.gc-cardpage .gc-card__amount { font-size: clamp(2.2rem, 7vw, 3.6rem); }
.gc-cardpage .gc-card__for { font-size: 1.1rem; margin-top: .5rem; }
.gc-cardpage .gc-card__small { font-size: .66rem; }
.gc-cardpage .gc-card__code { font-size: clamp(.9rem, 2.8vw, 1.2rem); }
.gc-cardpage .gc-card__date { font-size: 1.05rem; }
.gc-cardpage .gc-card__qr { width: 5.6rem; height: 5.6rem; }

/* The giver's message on the card's face, a little larger on the big card */
.gc-cardpage .gc-card__message { font-size: 1rem; margin-top: .35rem; }

/* Behind the big card: the season's photograph under its veil (css/winter-scene.css: --season-*), running up behind the floating header and filling the screen, so the page is never
   plain white. The classic edition, which has no photograph, keeps a soft sky. */
.gc-cardscene {
  margin-top: calc(-1 * var(--lp-header-h, 80px));
  padding: calc(var(--lp-header-h, 80px) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(3rem, 7vw, 5rem);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #2b78c0 0%, #559fd9 55%, #bfe0f5 100%);
}

.gc-cardscene > .gc-wrap { width: 100%; }

.gc-cardpage__panel { margin-top: 2rem; }

/* How to use it: frosted over the photograph, so the page stays warm */
.gc-cardpage__how {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

html[data-theme="dark"] .gc-cardpage__how { background: rgba(13, 30, 48, 0.88); }

/* What to do with the card: one wide button under it */
.gc-cardpage__action {
  max-width: 420px;
  margin: 2rem auto 0;
}

.gc-cardpage__action .gc-btn--block {
  min-height: 54px;
  font-size: 1.02rem;
  box-shadow: 0 14px 30px -12px rgba(30, 10, 4, 0.55);
}

.gc-cardpage__action .gc-alert {
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 575px) {
  .gc-cardpage .gc-card { --gc-notch: 10px; }
  .gc-cardpage .gc-card__body { border-radius: 20px; }
  .gc-cardpage .gc-card__face { padding: 1.15rem 1.25rem 1rem; }
  .gc-cardpage .gc-card__stub { padding: .7rem 1.25rem; }
  .gc-cardpage .gc-card__wordmark { font-size: 1.1rem; }
  .gc-cardpage .gc-card__mark { width: 1.5rem; height: 1.5rem; }
  .gc-cardpage .gc-card__label { font-size: .58rem; padding: .3rem .6rem; }
  .gc-cardpage .gc-card__for { font-size: .95rem; }
  .gc-cardpage .gc-card__qr { width: 4rem; height: 4rem; }
}

/* ---------- My gift cards ---------- */
.gc-mine {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
  gap: 2.25rem;
}

.gc-mine__item { color: inherit; text-decoration: none; display: block; }
.gc-mine__item:hover { color: inherit; }
.gc-mine__item .gc-card { transition: transform .25s var(--gc-ease); }
.gc-mine__item:hover .gc-card { transform: translateY(-4px) rotate(-.6deg); }

.gc-mine__balance {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .5rem;
  margin-top: 1rem;
  color: var(--gc-muted);
}

.gc-mine__balance strong { color: var(--gc-ink); font-size: 1.1rem; }
.gc-mine__state { font-size: .82rem; }
.gc-mine__item .gc-held { max-width: 460px; margin-left: auto; margin-right: auto; }

.gc-mine__added { display: flex; align-items: center; gap: .5rem; margin: 0 0 2rem; }

/* Gift cards you bought: one line each, where the card is and a way back to share it */
.gc-bought { margin-top: 4rem; }
.gc-bought .gc-section-title { margin-bottom: .5rem; }
.gc-bought__lead { text-align: center; color: var(--gc-muted); margin: 0 0 2rem; }

.gc-bought__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 820px;
  display: grid;
  gap: .75rem;
}

.gc-bought__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--gc-panel-bg);
  border-radius: 1rem;
  box-shadow: var(--gc-panel-shadow);
}

.gc-bought__main { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.gc-bought__main strong { color: var(--gc-ink); font-size: 1.05rem; }
.gc-bought__who { color: var(--gc-muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-bought__open { min-height: 40px; padding: .45rem .9rem; font-size: .88rem; }

@media (max-width: 575px) {
  .gc-bought__item { flex-wrap: wrap; }
  .gc-bought__open { width: 100%; }
}

.gc-empty {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  max-width: 560px;
  margin: 0 auto;
}

.gc-spinner {
  width: 2.6rem;
  height: 2.6rem;
  border: 3px solid var(--gc-lime-soft);
  border-top-color: var(--gc-lime-deep);
  border-radius: 50%;
  animation: gc-spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes gc-spin { to { transform: rotate(360deg); } }

/* ---------- Night (the seasonal edition's night switch): the winter night's colours ---------- */
html[data-theme="dark"] .gc-page {
  --gc-ink: #eef4fa;
  --gc-text: rgba(233, 242, 249, .86);
  --gc-muted: rgba(222, 235, 245, .6);
  --gc-line: rgba(160, 205, 235, .16);
  --gc-lime-deep: #e5ee80;
  --gc-panel-bg: #11253b;
  --gc-panel-shadow: 0 28px 56px -30px rgba(0, 6, 14, .9);
  --gc-field-bg: rgba(255, 255, 255, .06);
  --gc-band-bg: rgba(255, 255, 255, .03);
}

html[data-theme="dark"] .gc-page .form-control {
  background-color: rgba(255, 255, 255, .06);
  border-color: rgba(160, 205, 235, .26);
  color: #e9f2f9;
}

html[data-theme="dark"] .gc-page .form-control::placeholder { color: rgba(222, 235, 245, .45); }
html[data-theme="dark"] .gc-held { background: rgba(255, 217, 120, .1); border-color: rgba(255, 217, 120, .28); }
html[data-theme="dark"] .gc-held .bi { color: #ffd978; }
html[data-theme="dark"] .gc-status--off { background: rgba(255, 255, 255, .08); color: rgba(233, 242, 249, .8); }
html[data-theme="dark"] .gc-alert--info { background: rgba(255, 255, 255, .05); }

/* Print: the card alone, with its code and QR code, in its colours */
@media print {
  body * { visibility: hidden; }
  .gc-print, .gc-print * { visibility: visible; }
  .gc-print { position: absolute; left: 0; top: 0; width: 100%; }
  .gc-print .gc-card { width: 110mm; max-width: none; filter: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
