/* Hallmark · v2.0.0 · built: the project · redesign: polish · theme: brand (PitaPass DESIGN.md v2 "Poster Wall", locked) · genre: editorial · signature: the tickets you pick stack up in your hand · scope: page */
/* Hallmark · critique: the event page listed tickets but nothing answered the buyer; now picked tickets print into a pile above the total. */
/* Hallmark · waive 7b · pitapass.css uses pure white on Night throughout (contrast 17:1) · brand tokens are locked in DESIGN.md */
/* Hallmark · waive 24b · pitapass.css and pitapass-v2.css already space on 2px steps (10, 14, 18, 22) · this page matches the site it lives in */

/*
 * PitaPass event page extras (DESIGN.md v2 item 9). Loaded only on the event page, after pitapass-v2.css.
 * Behaviour lives in js/pitapass-play.js. The ticket form itself is not changed: the script only reads it.
 */
:root {
  --ppe-white: #fff;
  --ppe-on-night-2: rgb(255 255 255 / 0.8);
  --ppe-on-night-line: rgb(255 255 255 / 0.24);
  --ppe-perf: rgb(18 12 43 / 0.45);
  --ppe-shadow: rgb(18 12 43 / 0.35);
}

/* ---------- The tickets you picked, stacking up above the total ---------- */
.pp2e-stack {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px 16px 16px;
  border-radius: var(--pp-radius-card);
  background: var(--pp-night);
  color: var(--ppe-white);
}

.pp2e-stack[hidden] {
  display: none;
}

.pp2e-stack__count {
  margin: 0;
  font-weight: 600;
}

.pp2e-stack .pp2e-stack__count b {
  display: inline;
  margin-right: 4px;
  color: var(--pp-sunrise) !important; /* the booking card forces its own colour on bold text */
  font-family: var(--pp-font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.pp2e-stack__pile {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-left: 12px;
}

.pp2e-mini {
  position: relative;
  flex: none;
  width: 48px;
  height: 36px;
  margin-left: -12px;
  border-radius: 7px;
  background: var(--pp-paper);
  box-shadow: 0 4px 10px var(--ppe-shadow);
  rotate: var(--r, 0deg);
}

.pp2e-mini::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 14px;
  border-left: 2px dashed var(--ppe-perf);
  border-radius: 0 7px 7px 0;
  background: var(--pp-sunrise);
}

.pp2e-stack__more {
  margin-left: 10px;
  font-weight: 600;
}

/* ---------- Link from "Getting there" to the venue's own page ---------- */
.pp2e-venuelink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  color: var(--pp-tanzanite);
  font-weight: 600;
  text-decoration: underline;
}

.pp2e-venuelink:focus-visible {
  outline: 3px solid var(--pp-tanzanite);
  outline-offset: 3px;
}

/* ---------- Motion (extras only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pp2e-mini.is-in {
    animation: pp2e-print 360ms var(--pp-ease-out) both;
  }
}

@keyframes pp2e-print {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Ticket stepper: round buttons, drawn minus and plus, the count centred between them ----------
   style.css drew the signs as text (a 40px "-" in a 34px box, so it fell below the box). The signs are now
   drawn with CSS and the text glyph is kept only for script.js, which finds the field with prev()/next(). */
.event-details-information .price-count .quantity-input {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 15px;
  padding: 3px;
  border: 1px solid var(--pp-line);
  border-radius: 999px;
  background: var(--ppe-white);
}

.event-details-information .price-count .quantity-input button {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pp-mist);
  color: var(--pp-tanzanite);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s var(--pp-ease-out);
}

.event-details-information .price-count .quantity-input .quantity-up {
  background: var(--pp-tanzanite);
  color: var(--ppe-white);
}

.event-details-information .price-count .quantity-input button::before,
.event-details-information .price-count .quantity-input .quantity-up::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.event-details-information .price-count .quantity-input .quantity-up::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.event-details-information .price-count .quantity-input button:hover {
  background: #e9e3ff;
}

.event-details-information .price-count .quantity-input .quantity-up:hover {
  background: var(--pp-tanzanite-press);
}

.event-details-information .price-count .quantity-input button:active {
  transform: scale(0.92);
}

/* At 0 the minus has nothing to take away: it stays focusable but reads and looks switched off */
.event-details-information .price-count .quantity-input button[aria-disabled="true"],
.event-details-information .price-count .quantity-input button[aria-disabled="true"]:hover {
  background: var(--pp-chalk);
  color: #a6a2b5;
  cursor: default;
  transform: none;
}

.event-details-information .price-count .quantity-input input.quantity {
  width: 34px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pp-night);
  font-family: var(--pp-font-ui);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 40px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.event-details-information .price-count .quantity-input input.quantity::-webkit-outer-spin-button,
.event-details-information .price-count .quantity-input input.quantity::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

@media (prefers-reduced-motion: reduce) {
  .event-details-information .price-count .quantity-input button {
    transition: none;
  }
}
