/* Brings the ticket pages (Bootstrap 4 from the framework) into the SPGA design.
   Colours and fonts come from the tokens in the theme's shell.css. */
body.spga-tickets {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--salt);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}
/* The framework's sign-in card is taller than a short page, so leave it room above the footer. */
.spga-tickets main { flex: 1 0 auto; min-height: 36rem; }
.spga-tickets h1, .spga-tickets h2, .spga-tickets h3, .spga-tickets h4, .spga-tickets h5 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.spga-tickets main a:not(.btn) { color: var(--reef); text-underline-offset: .18em; }
.spga-tickets img { max-width: 100%; height: auto; }
.spga-tickets :focus-visible { outline: 3px solid var(--reef); outline-offset: 3px; }

.ticket-bar { background: var(--lagoon); color: var(--white); }
.ticket-bar ul { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin: 0; padding: .75rem 0; list-style: none; }
.ticket-bar a { color: var(--white); font-weight: 600; text-decoration: none; }
.ticket-bar a:hover { color: var(--sun); text-decoration: underline; }
.ticket-bar a:focus-visible { outline-color: var(--sun); }

.ticket-page { padding-block: 2.5rem 4rem; }
.ticket-page .page-header { margin-bottom: 1.5rem; border: 0; padding: 0; }
.ticket-page .page-header h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.ticket-page .text-center .page-header, .ticket-page .page-header h2.text-center { text-align: left !important; }
.ticket-page .container { width: auto; max-width: none; padding: 0; }
.ticket-page .row { margin-inline: 0; }

/* Buttons */
.spga-tickets main .btn {
  border-radius: 1.5em 1.2em 1.4em 1.1em;
  font-weight: 650;
  padding: .6em 1.2em;
}
.spga-tickets main .btn-primary, .spga-tickets main .btn-info, .spga-tickets main .btn-success {
  border-color: var(--lagoon);
  background: var(--lagoon);
  color: var(--white);
}
.spga-tickets main .btn-primary:hover, .spga-tickets main .btn-info:hover, .spga-tickets main .btn-success:hover {
  border-color: var(--lagoon-soft);
  background: var(--lagoon-soft);
  color: var(--white);
}

/* Panels and messages */
.spga-tickets main .card { border: 0; border-radius: 1.2rem 1rem 1.15rem .95rem; background: var(--white); box-shadow: none; }
.spga-tickets .expl { margin: 0 0 1rem; padding: 1rem 1.25rem; border-radius: .9rem .7rem .85rem .65rem; background: var(--salt); box-shadow: none; }
.spga-tickets main .alert { border: 0; border-left: 4px solid var(--reef); border-radius: .5rem; background: var(--white); color: var(--ink); }
.spga-tickets .expl .alert { margin-bottom: .75rem; }
.spga-tickets main .alert-warning { border-left-color: var(--sun); }
.spga-tickets main .alert-danger { border-left-color: #B3261E; }
.spga-tickets main .alert-success { border-left-color: var(--leaf); }
.spga-tickets main .alert-heading h4 { font-size: 1.15rem; }

/* Forms */
.spga-tickets main .form-control {
  height: auto;
  padding: .6rem .8rem;
  border: 2px solid var(--ink-soft);
  border-radius: .6rem;
  color: var(--ink);
  font-size: 1rem;
}
.spga-tickets main .form-control:focus { border-color: var(--reef); box-shadow: none; }
.spga-tickets main label { font-weight: 500; }
.spga-tickets main .control-label { font-weight: 650; }
.spga-tickets main .custom-control-input:checked ~ .custom-control-label::before { border-color: var(--lagoon); background-color: var(--lagoon); }

/* Tables */
.spga-tickets main .table { background: var(--white); }
.spga-tickets main .table th { font-weight: 650; }
.spga-tickets main .table th, .spga-tickets main .table td { border-color: var(--line); }

/* Purchase wizard steps: the one place colour shows progress */
.spga-tickets .wizard-content .wizard > .steps .current .step { border-color: var(--lagoon); background: var(--lagoon); color: var(--white); }
.spga-tickets .wizard-content .wizard > .steps .done .step { border-color: var(--leaf); background: var(--leaf); color: var(--ink); }
.spga-tickets .wizard-content .wizard > .steps .current a, .spga-tickets .wizard-content .wizard > .steps .done a { color: var(--ink); }
.spga-tickets .wizard-content .wizard.wizard-circle > .steps > ul > li::before,
.spga-tickets .wizard-content .wizard.wizard-circle > .steps > ul > li::after { background: var(--lagoon); }
.spga-tickets .wizard-content .wizard.wizard-circle > .steps > ul > li.current::after,
.spga-tickets .wizard-content .wizard.wizard-circle > .steps > ul > li.disabled::before,
.spga-tickets .wizard-content .wizard.wizard-circle > .steps > ul > li.disabled::after { background: var(--line); }
.spga-tickets .wizard-content .wizard > .actions > ul > li > a { border-radius: 1.5em 1.2em 1.4em 1.1em; background: var(--lagoon); color: var(--white); font-weight: 650; }
.spga-tickets .wizard-content .wizard > .actions > ul > li.disabled > a { background: var(--line); color: var(--ink-soft); }

.ticket-cookie-warning { margin-bottom: 1rem; }

@media (max-width: 640px) {
  .ticket-page { padding-block: 1.5rem 3rem; }
  .spga-tickets .wizard-content .wizard.wizard-circle > .steps > ul > li { display: block; float: left; width: 33.33%; font-size: .85rem; line-height: 1.25; }
  .spga-tickets main .card-body { padding: 1rem; }
  .ticket-page .wrap > .side_margins, .ticket-page .col-md-4.expl { padding-inline: .75rem; }
}
