/* event/event_pro.css */
body {
  background: var(--custom-background-color);
  background-attachment: fixed;
  background-size: cover;
  color: var(--custom-text-color);
  font-family: var(--theme-font-body);
  line-height: 1.5;
}
.pro-shell { display: flex; flex-direction: column; min-height: 100dvh; position: relative; }
.pro-main { display: flex; flex: 1; justify-content: center; }
.pro-card {
  background: var(--custom-text-background-color);
  color: var(--custom-text-color);
  max-width: 510px;
  overflow: hidden;
  width: 100%;
}
.pro-banner { aspect-ratio: 16/9; object-fit: cover; }
.pro-content { padding: 1rem; }
.pro-header { align-items: flex-start; display: flex; gap: 1rem; }
.pro-header .event-logo { border-radius: 8px; max-height: 80px; max-width: 80px; }
.pro-card h1 {
  color: var(--custom-heading-color);
  font-family: var(--theme-font-heading);
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1.15;
  margin: 0;
}
.pro-content h2,.schedule-group h3,.step-heading { font-family: var(--theme-font-heading); }
.pro-content h2 { color: var(--custom-heading-color); font-size: 1.125rem; }
.pro-meta { color: var(--custom-text-color-muted); margin: 1rem 0 2rem; }
.pro-meta .meta-icon { margin-right: .15rem; vertical-align: -.125em; width: 1.125em; }
.pro-description { margin-bottom: 2rem; }
/* ticket-list / ticket-row — the Pro skin of the purchase construct's public
   contract (docs/themes.md §The CSS contract). The list keeps its real <ul>
   inside: the wrapper is there to give it context, not to replace it. */
ticket-list {
  display: block;

  /* An author `display:` beats the UA's [hidden] rule, so a list the step
     wizard hides stayed on the page: on a timed event the ticket rows sat
     under the date cards the whole way through (found 2026-08-10). The
     attribute is how checkout-steps.js reveals the list, so the rule that
     gives it a box has to say what hidden means. */
  &[hidden] { display: none; }

  > ul { list-style: none; margin: 0; padding: 0; }

  > ul > li {
    border-bottom: 1px solid var(--divider-color);
    padding: 1rem 0;

    &:last-child { border-bottom: 0; }
    /* An attached add-on hangs off the ticket above it: no rule between the
       two, a spur down the left instead. */
    &[data-addon-for] {
      border-left: 2px solid var(--divider-color);
      margin-left: .2rem;
      padding: .6rem 0 .6rem 1rem;
    }
    &:has(+ li[data-addon-for]) { border-bottom: 0; }
  }
}
ticket-row {
  justify-content: space-between;

  & label { font-size: 1rem; font-weight: 500; }
  & .grow > span:first-child { font-size: 1rem; font-weight: 500; }
  & .muted, & .grow .muted { font-size: .875rem; }
  & .price { color: var(--custom-text-color-muted); }
  /* Every input in a row is a box the buyer types in — except a donation
     row's tickbox, which the skin must leave as a tickbox. */
  & input:not([type="checkbox"]) {
    background: transparent;
    border: 1px solid var(--custom-control-border);
    border-radius: 4px;
    box-shadow: var(--custom-control-shadow);
    color: var(--custom-text-color);
    padding: .45rem;
  }
  & .qty button.step {
    background: color-mix(in srgb, var(--custom-text-color) 6%, var(--custom-text-background-color));
    border: 0;
    color: var(--custom-text-color);
  }
  & .qty button.step:hover:not(:disabled) {
    background: var(--custom-text-color);
    color: var(--custom-text-background-color);
  }
}
.pro-card .schedule-group select {
  background: transparent;
  border: 1px solid var(--custom-control-border);
  border-radius: 4px;
  box-shadow: var(--custom-control-shadow);
  color: var(--custom-text-color);
  padding: .6rem;
  width: 100%;
}
.pro-card .checkout-fields input,.pro-card .checkout-fields select,.pro-card .checkout-fields textarea {
  background: transparent;
  border: 1px solid var(--custom-control-border);
  border-radius: 4px;
  box-shadow: var(--custom-control-shadow);
  color: var(--custom-text-color);
  padding: .6rem;
}
.pro-card .checkout-button {
  background: var(--custom-button-background-color);
  color: var(--custom-button-text-color);
  width: 100%;
}
.pro-form-footer {
  border-top: 1px solid var(--divider-color);
  margin: 1rem -1rem -1rem;
  padding: 1rem;
}
.pro-footer { color: var(--custom-text-color-muted); padding: 1rem; text-align: center; }
.pro-footer a { color: var(--custom-link-color); }
@media (min-width:600px) {
  .pro-main { flex: none; padding: 3rem 3rem 1.5rem; }
  .pro-card {
    border-radius: var(--custom-card-border-radius);
    box-shadow: var(--custom-card-shadow);
  }
  .pro-content { padding: 2rem; }
  .pro-form-footer { margin: 1rem -2rem -2rem; padding: 1rem 2rem; }
}
/* The step wizard's palette (event_steps.css draws it). The account's own
   customisation tokens, so a timed event's Date › Time › Tickets steps theme
   with the rest of the page rather than beside it. */
.checkout-steps {
  --step-accent: var(--custom-button-background-color);
  --step-accent-ink: var(--custom-button-text-color);
  --step-heading-ink: var(--custom-heading-color);
  --step-ink: var(--custom-text-color);
  --step-ink-muted: var(--custom-text-color-muted);
  --step-line: var(--custom-control-border);
  --step-link: var(--custom-link-color);
  --step-surface: var(--custom-text-background-color);
}

