/* New Year's Eve ticket page: frontend/nye-tickets.php (loaded only on that page) */

/* Desktop: details and the extra cards on the left, tickets on the right.
   Phone: details, then tickets, then the extra cards. */
.nye__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "details tickets"
    "more    tickets";
  column-gap: 40px;
  row-gap: 0;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 72px;
}
.nye__details {
  grid-area: details;
}
.nye__tickets {
  grid-area: tickets;
}
.nye__more {
  grid-area: more;
}
@media (max-width: 900px) {
  .nye__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "details"
      "tickets"
      "more";
    row-gap: 28px;
    padding-top: 32px;
  }
}

.nye__heading {
  margin: 0 0 16px;
  font-size: 26px;
  color: var(--brand-ink);
}

/* Event facts */
.nye-facts {
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.nye-facts__row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.nye-facts dt {
  margin: 0;
  padding-top: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nye-facts dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}
.nye-facts a,
.nye__extra a {
  color: var(--brand);
  font-weight: 600;
}
@media (max-width: 520px) {
  .nye-facts__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}
.nye__extra {
  margin: 0 0 24px;
}

/* Info cards */
.nye-card {
  margin: 0 0 20px;
  padding: 20px 22px;
  background: var(--tint-soft);
  border: 1px solid var(--hairline);
  border-radius: 16px;
}
.nye-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--brand-ink);
}
.nye-card p {
  margin: 0 0 10px;
}
.nye-card__small {
  font-size: 14px;
  color: var(--ink-soft);
}
/* Soft night blue, so it doesn't look like the cream non-members ticket card */
.nye-card--hotel {
  background: #f1f4fb;
  border-color: #cdd6ec;
}
.nye-card--help p:last-child {
  margin-bottom: 0;
}
.nye-card--help a {
  color: var(--brand);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.nye-steps {
  margin: 0;
  padding-left: 20px;
}
.nye-steps li {
  margin: 4px 0;
}

/* Ticket card */
.nye__tickets {
  position: sticky;
  top: 110px;
  scroll-margin-top: 110px;
}
@media (max-width: 900px) {
  .nye__tickets {
    position: static;
  }
}
.nye-tickets {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}
.nye-tickets__title {
  margin: 0 0 4px;
  font-size: 24px;
  color: var(--brand-ink);
}
/* Each ticket group is its own tinted card: members green, non-members cream, little ones grey */
.nye-tickets__group {
  min-width: 0;
  margin: 16px 0 0;
  padding: 14px 16px 2px;
  background: #f7f8f8;
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.nye-tickets__group--member {
  background: var(--tint-soft);
  border-color: color-mix(in srgb, var(--brand) 22%, transparent);
}
.nye-tickets__group--guest {
  background: #fff8ec;
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
/* No line under the last ticket in each card */
.nye-tickets__group .nye-tickets__row:not(:has(~ .nye-tickets__row)) {
  border-bottom: 0;
}

/* "Save $69 per adult with a CDS membership" nudge in the non-members card */
.nye-tickets__upsell {
  margin: 2px 0 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: #fff;
  border: 1px dashed color-mix(in srgb, var(--accent) 65%, transparent);
  border-radius: 12px;
}
.nye-tickets__upsell p {
  margin: 0;
}
.nye-tickets__upsell p + p {
  margin-top: 4px;
}
.nye-tickets__upsell strong {
  color: var(--brand-ink);
}
.nye-tickets__upsell a {
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}
.nye-tickets__upsell a svg {
  margin-left: 3px;
  vertical-align: -2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Floated so the title sits inside the card instead of on its border */
.nye-tickets__legend {
  float: left;
  width: 100%;
  margin: 0 0 2px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.nye-tickets__legend + * {
  clear: both;
}
.nye-tickets__note {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.nye-tickets__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.nye-tickets__what {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  cursor: pointer;
}
.nye-tickets__label {
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.nye-tickets__price {
  font-size: 15px;
  line-height: 1.25;
  color: var(--ink-soft);
}

/* Quantity stepper: one pill with  -  number  +  inside.
   The parent theme (Hello Elementor) turns every button pink on hover and focus, with a slow
   transition, so each state is set here on purpose. */
.nye-qty {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 46px;
  padding: 3px;
  background: #fff;
  border: 1.5px solid color-mix(in srgb, var(--brand) 28%, #fff);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nye-qty.is-on {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}
.nye-qty:has(.nye-qty__input:focus) {
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.nye-qty .nye-qty__btn,
.nye-qty .nye-qty__btn:hover,
.nye-qty .nye-qty__btn:focus,
.nye-qty .nye-qty__btn:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  color: var(--brand);
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  outline: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
  touch-action: manipulation; /* no double-tap zoom when tapping + quickly */
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.nye-qty__btn svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  transition: transform 0.12s ease;
}
/* Hover only on devices with a mouse, so a tap on a phone doesn't leave it highlighted */
@media (hover: hover) {
  .nye-qty .nye-qty__btn:not([aria-disabled="true"]):hover {
    background: var(--tint-soft);
    color: var(--brand-dark);
  }
}
.nye-qty .nye-qty__btn:not([aria-disabled="true"]):active {
  background: color-mix(in srgb, var(--brand) 16%, #fff);
  color: var(--brand-dark);
}
.nye-qty .nye-qty__btn:not([aria-disabled="true"]):active svg {
  transform: scale(0.85);
}
.nye-qty .nye-qty__btn:focus-visible {
  background: var(--tint-soft);
  box-shadow: inset 0 0 0 2px var(--brand);
}
.nye-qty .nye-qty__btn[aria-disabled="true"] {
  color: color-mix(in srgb, var(--ink-soft) 35%, #fff);
  cursor: default;
}

.nye-qty input.nye-qty__input,
.nye-qty input.nye-qty__input:focus {
  width: 40px;
  height: 38px;
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  transition: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.nye-qty.is-on input.nye-qty__input {
  color: var(--brand-ink);
}
.nye-qty__input::-webkit-outer-spin-button,
.nye-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* "I've paid my membership" box, shown once a member ticket is added */
.nye-tickets__confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  cursor: pointer;
}
.nye-tickets__confirm[hidden] {
  display: none;
}
.nye-tickets__confirm:has(input:checked) {
  border-color: var(--brand);
}
.nye-tickets__confirm input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.nye-tickets__confirm small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
}

.nye-tickets__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 4px;
  font-size: 18px;
  color: var(--ink);
}
.nye-tickets__total strong {
  font-size: 26px;
  color: var(--brand-ink);
}
.nye-tickets__hint {
  margin: 6px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
}
.nye-tickets__hint:empty {
  margin: 0 0 12px;
}
.nye-tickets__small {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.nye-tickets__small a {
  color: var(--brand);
  font-weight: 600;
}
.nye-tickets--soon p {
  margin: 0;
  color: var(--ink-soft);
}
