/* ── Holiday event voucher tickets (unlisted /voucher page) ────────────────── */
/* Two ticket-shaped choices modelled on the Nailology Social Club "Holiday Perks"
   flyer: notched corners, burgundy price and date pill, green description.
   They are the page's #gc-amounts radio buttons, so gift-card.js drives them.

   The notched outline is two stacked layers cut with the same corner mask:
     ::before — the outline colour, full size
     ::after  — the ticket fill, inset by the line width
   The fill's notch circles share the outer corner as centre with a radius grown
   by the line width, so the line keeps an even thickness around each notch. */

.gc-tickets {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gc-ticket {
  --tk-burgundy: #7d1a20;
  --tk-green:    #1f3d2b;
  --tk-cream:    #faf6ef;
  --tk-line:     rgba(125, 26, 32, 0.45);
  --tk-fill:     var(--tk-cream);
  --tk-r:        16px;     /* notch radius */
  --tk-w:        1.5px;    /* line width */

  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 14px 24px;
  background: none; border: 0; border-radius: 0;
  color: var(--tk-burgundy); text-align: center;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease;
}

/* Beat the generic .gc-amount tile styles (incl. its selected state), which would
   paint a box behind the notched corners. */
.gc-ticket.gc-amount,
.gc-ticket.gc-amount:hover,
.gc-ticket.gc-amount[aria-checked="true"] { background: none; border: 0; border-radius: 0; }

/* Serif like the flyer. Ivy's custom.css sets a sans-serif on `body *` with
   !important, so the ticket text needs !important (and a class selector) to win. */
.gc-ticket-price,
.gc-ticket-date,
.gc-ticket-desc { font-family: 'GaramondPremierPro', Georgia, 'Times New Roman', serif !important; }

.gc-ticket::before,
.gc-ticket::after {
  content: '';
  position: absolute; z-index: -1;
  -webkit-mask-size: 51% 51%;         mask-size: 51% 51%;
  -webkit-mask-repeat: no-repeat;     mask-repeat: no-repeat;
  transition: background .18s ease;
}
.gc-ticket::before {
  inset: 0;
  background: var(--tk-line);
  --m-r: var(--tk-r);
  -webkit-mask-image:
    radial-gradient(circle at 0 0,       #0000 var(--m-r), #000 calc(var(--m-r) + .5px)),
    radial-gradient(circle at 100% 0,    #0000 var(--m-r), #000 calc(var(--m-r) + .5px)),
    radial-gradient(circle at 0 100%,    #0000 var(--m-r), #000 calc(var(--m-r) + .5px)),
    radial-gradient(circle at 100% 100%, #0000 var(--m-r), #000 calc(var(--m-r) + .5px));
          mask-image:
    radial-gradient(circle at 0 0,       #0000 var(--m-r), #000 calc(var(--m-r) + .5px)),
    radial-gradient(circle at 100% 0,    #0000 var(--m-r), #000 calc(var(--m-r) + .5px)),
    radial-gradient(circle at 0 100%,    #0000 var(--m-r), #000 calc(var(--m-r) + .5px)),
    radial-gradient(circle at 100% 100%, #0000 var(--m-r), #000 calc(var(--m-r) + .5px));
  -webkit-mask-position: top left, top right, bottom left, bottom right;
          mask-position: top left, top right, bottom left, bottom right;
}
.gc-ticket::after {
  inset: var(--tk-w);
  background: var(--tk-fill);
  --m-r: calc(var(--tk-r) + var(--tk-w));
  --m-o: calc(-1 * var(--tk-w));
  --m-f: calc(100% + var(--tk-w));
  -webkit-mask-image:
    radial-gradient(circle at var(--m-o) var(--m-o), #0000 var(--m-r), #000 calc(var(--m-r) + .5px)),
    radial-gradient(circle at var(--m-f) var(--m-o), #0000 var(--m-r), #000 calc(var(--m-r) + .5px)),
    radial-gradient(circle at var(--m-o) var(--m-f), #0000 var(--m-r), #000 calc(var(--m-r) + .5px)),
    radial-gradient(circle at var(--m-f) var(--m-f), #0000 var(--m-r), #000 calc(var(--m-r) + .5px));
          mask-image:
    radial-gradient(circle at var(--m-o) var(--m-o), #0000 var(--m-r), #000 calc(var(--m-r) + .5px)),
    radial-gradient(circle at var(--m-f) var(--m-o), #0000 var(--m-r), #000 calc(var(--m-r) + .5px)),
    radial-gradient(circle at var(--m-o) var(--m-f), #0000 var(--m-r), #000 calc(var(--m-r) + .5px)),
    radial-gradient(circle at var(--m-f) var(--m-f), #0000 var(--m-r), #000 calc(var(--m-r) + .5px));
  -webkit-mask-position: top left, top right, bottom left, bottom right;
          mask-position: top left, top right, bottom left, bottom right;
}

.gc-ticket:hover { --tk-line: rgba(125, 26, 32, 0.75); }
.gc-ticket:active { transform: scale(.985); }
.gc-ticket:focus-visible { outline: 2px solid var(--tk-burgundy); outline-offset: 4px; }

/* Selected: solid burgundy outline and a warmer fill. */
.gc-ticket[aria-checked="true"] {
  --tk-line: var(--tk-burgundy);
  --tk-w:    2.5px;
  --tk-fill: #f6ede1;
}

.gc-ticket-price {
  font-weight: 600; line-height: 1;
  font-size: clamp(2.3rem, 6.5vw, 3.4rem);
  color: var(--tk-burgundy);
}

.gc-ticket-date {
  display: block; max-width: 100%;
  padding: 6px 14px 5px;
  border-radius: 999px;
  background: var(--tk-burgundy); color: var(--tk-cream);
  font-weight: 600; font-size: 0.82rem; line-height: 1.2;
  letter-spacing: 2.5px; text-transform: uppercase; white-space: nowrap;
}

.gc-ticket-desc {
  display: block;
  font-weight: 600; font-size: 0.86rem; line-height: 1.45;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--tk-green);
}

/* Past its last sale day (set by the voucher page's availability script): faded,
   not clickable, with a "No longer available" note in place of nothing. */
.gc-ticket-soldout { display: none; }
.gc-ticket.is-soldout { cursor: not-allowed; --tk-line: rgba(0, 0, 0, 0.18); --tk-fill: #f1efec; }
.gc-ticket.is-soldout:hover { --tk-line: rgba(0, 0, 0, 0.18); }
.gc-ticket.is-soldout:active { transform: none; }
.gc-ticket.is-soldout .gc-ticket-price,
.gc-ticket.is-soldout .gc-ticket-date,
.gc-ticket.is-soldout .gc-ticket-desc { opacity: .35; }
.gc-ticket.is-soldout .gc-ticket-soldout {
  display: block;
  font-family: 'GaramondPremierPro', Georgia, 'Times New Roman', serif !important;
  font-weight: 600; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--tk-burgundy);
}

/* Every voucher past its last sale day: "Continue to Payment" is disabled too. */
#gc-to-payment:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* Narrow columns: keep both tickets side by side, tighten the type. */
@media (max-width: 1000px) and (min-width: 861px), (max-width: 480px) {
  .gc-tickets { gap: 10px; }
  .gc-ticket { padding: 24px 8px 20px; gap: 8px; --tk-r: 12px; }
  .gc-ticket-date { padding: 5px 9px 4px; font-size: 0.66rem; letter-spacing: 1.2px; }
  .gc-ticket-desc { font-size: 0.7rem; letter-spacing: 1.4px; }
}

@media (prefers-reduced-motion: reduce) {
  .gc-ticket, .gc-ticket::before, .gc-ticket::after { transition: none; }
}

/* ── Holiday voucher (left column) ─────────────────────────────────────────── */
/* The voucher artwork (assets/ivy-nailology/vouchers/). Both are in the page; the one matching the
   selected ticket shows (gift-card.js sets #gc-root[data-selected-amount]). */

.hv-col { display: flex; justify-content: center; align-items: flex-start; }

.hv {
  display: none;
  width: 100%; max-width: 380px; height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(20, 30, 20, .18);
}
#gc-root[data-selected-amount="150"] .hv[data-voucher="150"],
#gc-root[data-selected-amount="130"] .hv[data-voucher="130"] { display: block; }

/* Stack the voucher and the partners flyer under it. */
.hv-col { flex-direction: column; align-items: center; gap: 28px; }

.hv-partners {
  display: block;
  width: 100%; max-width: 380px; height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(20, 30, 20, .18);
}

@media (max-width: 860px) {
  .hv, .hv-partners { max-width: 400px; }
  .hv-col { gap: 20px; }
  /* Phones: the partners flyer first, the selected voucher under it. */
  .hv-partners { order: -1; }
}
