/*
 * Event ticket page (single-product-ticket.php). Plain CSS, enqueued only on that template,
 * every rule scoped under body.dtc-ticket-page. Not part of the legacy gulp/SCSS build:
 * see docs/superpowers/specs/2026-10-12-order-labels-and-ticket-page-design.md §"Styling".
 * Brand values mirror assets/styles/common/_variables.scss.
 */

.dtc-ticket-page {
  --dtc-primary: #01aeb8;
  --dtc-primary-dark: #018a92;
  --dtc-primary-tint: #e8f7f8;
  --dtc-primary-tint-2: #f4fbfb;
  --dtc-text: #565656;
  --dtc-heading: #2f3a3b;
  --dtc-muted: #888988;
  --dtc-border: #dfe7e8;
  --dtc-warning-bg: #fff4e0;
  --dtc-warning-text: #9a5b00;
  --dtc-warning-edge: #f0ad4e;
  --dtc-deal: #e2504c;          /* brand-danger #f86d6a, darkened for white text */
  --dtc-deal-tint: #fff3f2;
  --dtc-radius: 14px;
  --dtc-font-heading: "omnes-pro", "aller", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --dtc-font-body: "aller", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------ page shell */

.dtc-ticket-page .dtc-ticket {
  background: linear-gradient(180deg, var(--dtc-primary-tint-2) 0, #fff 420px);
  padding: 40px 0 72px;
  color: var(--dtc-text);
  font-family: var(--dtc-font-body);
}

.dtc-ticket-page .dtc-ticket .container {
  max-width: 1180px;
}

.dtc-ticket-page .dtc-ticket__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 56px;
  align-items: start;
  margin: 0;
}

/* ------------------------------------------------------------------ header */

.dtc-ticket-page .dtc-ticket__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--dtc-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dtc-ticket-page .dtc-ticket__title {
  margin: 0 0 12px;
  color: var(--dtc-heading);
  font-family: var(--dtc-font-heading);
  font-size: 44px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
}

.dtc-ticket-page .dtc-ticket__value {
  margin: 0 0 8px;
  max-width: 34em;
  color: var(--dtc-text);
  font-size: 19px;
  line-height: 1.5;
}

/* Facts line and lead quote are phone-only; on desktop they live in the side column. */
.dtc-ticket-page .dtc-ticket__facts-line,
.dtc-ticket-page .dtc-ticket__lead-quote {
  display: none;
}

.dtc-ticket-page .dtc-ticket__facts-line {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  gap: 4px 0;
  color: var(--dtc-primary-dark);
  font-size: 15px;
  font-weight: 700;
}

.dtc-ticket-page .dtc-ticket__facts-line li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
}

.dtc-ticket-page .dtc-ticket__facts-line li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dtc-primary);
}

/* ------------------------------------------------------------------ side column */

.dtc-ticket-page .dtc-ticket__aside-inner {
  position: sticky;
  top: 24px;
}

.dtc-ticket-page .dtc-ticket__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--dtc-radius);
  box-shadow: 0 12px 32px rgba(1, 80, 85, .18);
}

.dtc-ticket-page .dtc-ticket__details {
  margin: 20px 0 0;
  padding: 0;
}

.dtc-ticket-page .dtc-ticket__detail {
  display: flex;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.4;
}

.dtc-ticket-page .dtc-ticket__detail dt {
  flex: 0 0 auto;
  min-width: 3.6em;
  margin: 0;
  color: var(--dtc-primary-dark);
  font-weight: 700;
}

.dtc-ticket-page .dtc-ticket__detail dd {
  margin: 0;
  color: var(--dtc-heading);
  font-weight: 700;
}

.dtc-ticket-page .dtc-ticket__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 8px;
  padding: 0;
  list-style: none;
}

.dtc-ticket-page .dtc-ticket__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--dtc-primary-tint);
  color: var(--dtc-primary-dark);
  font-size: 14px;
  font-weight: 700;
}

.dtc-ticket-page .dtc-ticket__facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dtc-primary);
}

.dtc-ticket-page .dtc-ticket__quotes {
  margin-top: 20px;
}

.dtc-ticket-page .dtc-ticket-quote {
  position: relative;
  margin: 0 0 14px;
  padding: 20px 22px 18px 54px;
  border-radius: var(--dtc-radius);
  background: #fff;
  border: 1px solid var(--dtc-border);
}

.dtc-ticket-page .dtc-ticket-quote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 16px;
  color: var(--dtc-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 1;
}

.dtc-ticket-page .dtc-ticket-quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

.dtc-ticket-page .dtc-ticket-quote blockquote p {
  margin: 0;
  color: var(--dtc-heading);
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
}

.dtc-ticket-page .dtc-ticket-quote figcaption {
  margin-top: 8px;
  color: var(--dtc-muted);
  font-size: 13px;
}

/* ------------------------------------------------------------------ form: components */

.dtc-ticket-page .dtc-ticket__form {
  margin-top: 28px;
  counter-reset: dtc-step;
}

.dtc-ticket-page .composite_form .composite_component {
  scroll-margin-top: 24px;
  margin: 0 0 16px;
  padding: 22px 24px 8px;
  border: 1px solid var(--dtc-border);
  border-radius: var(--dtc-radius);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}

.dtc-ticket-page .composite_form:not(.paged) .composite_component .component_inner {
  padding-bottom: 8px;
}

.dtc-ticket-page .composite_form .component_title_wrapper {
  margin: 0 0 14px;
}

.dtc-ticket-page .composite_form h2.component_title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--dtc-heading);
  font-family: var(--dtc-font-heading);
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

.dtc-ticket-page .composite_form h2.component_title::before {
  counter-increment: dtc-step;
  content: counter(dtc-step);
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dtc-primary);
  color: #fff;
  font-family: var(--dtc-font-body);
  font-size: 15px;
  font-weight: 700;
}

.dtc-ticket-page .composite_form .component_section_title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.dtc-ticket-page .composite_form .component_options_select {
  width: 100%;
  max-width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--dtc-border);
  border-radius: 10px;
  background-color: #fff;
  color: var(--dtc-heading);
  font-size: 16px;
}

.dtc-ticket-page .composite_form .component_options_select:focus {
  border-color: var(--dtc-primary);
  outline: 2px solid rgba(1, 174, 184, .25);
}

/* Selected product summary under a component: the card already says it all. */
.dtc-ticket-page .composite_form .component_content .component_summary .composited_product_title_wrapper,
.dtc-ticket-page .composite_form .component_content .component_summary .composited_product_images,
.dtc-ticket-page .composite_form .component_content .component_summary .stock,
.dtc-ticket-page .composite_form .component_content .component_summary .woocommerce-product-details__short-description {
  display: none;
}

.dtc-ticket-page .composite_form .component_content .component_summary {
  margin: 0;
  padding: 0;
}

/* The ticket type cards show their price; don't repeat it under them. */
.dtc-ticket-page .composite_form .component_content .component_summary .price {
  display: none;
}

/* ------------------------------------------------------------------ form: option cards */

.dtc-ticket-page .composite_form .component_option_radio_buttons_container {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
}

.dtc-ticket-page .composite_form .component_option_radio_buttons_container > li {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.dtc-ticket-page .composite_form .component_option_radio_buttons_container > li.hidden {
  display: none;
}

.dtc-ticket-page .composite_form .component_option_radio_button {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--dtc-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.dtc-ticket-page .composite_form .component_option_radio_button:hover {
  border-color: var(--dtc-primary);
}

.dtc-ticket-page .composite_form .component_option_radio_button.selected {
  border-color: var(--dtc-primary);
  background: var(--dtc-primary-tint-2);
  box-shadow: 0 0 0 3px rgba(1, 174, 184, .15);
}

.dtc-ticket-page .composite_form .component_option_radio_button.disabled {
  opacity: 1;
  cursor: not-allowed;
  background: #f7f7f7;
}

.dtc-ticket-page .composite_form .component_option_radio_button.disabled:hover {
  border-color: var(--dtc-border);
}

.dtc-ticket-page .composite_form .component_option_radio_button .radio_button_input {
  position: static; /* Composite's label must cover the card, not just the input */
  flex: 0 0 auto;
  float: none;
  width: 22px;
  margin: 2px 0 0;
  padding: 0;
}

.dtc-ticket-page .composite_form .component_option_radio_button input.radio_button {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--dtc-primary);
  cursor: inherit;
}

/* Composite's label already covers the whole card (position: absolute; inset 0), so the
   whole card is the click target. */

.dtc-ticket-page .composite_form .component_option_radio_button .radio_button_description {
  flex: 1 1 auto;
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.dtc-ticket-page .composite_form ul.component_option_radio_buttons_container li.component_option_radio_button_container {
  width: 100%;
}

/* "Please choose a stream option" link target: a brief highlight once scrolled to. */
.dtc-ticket-page .composite_form .composite_component.dtc-attention {
  border-color: var(--dtc-primary);
  box-shadow: 0 0 0 4px rgba(1, 174, 184, .25);
  transition: box-shadow .3s ease, border-color .3s ease;
}

.dtc-ticket-page .composite_form .component_option_radio_button .radio_button_title {
  margin: 0;
  color: var(--dtc-heading);
  font-family: var(--dtc-font-body);
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.dtc-ticket-page .composite_form .dtc-option-card__one-liner {
  margin: 4px 0 0;
  color: var(--dtc-text);
  font-size: 15px;
  line-height: 1.45;
}

.dtc-ticket-page .composite_form .dtc-option-card__sponsor {
  margin: 6px 0 0;
  color: var(--dtc-muted);
  font-size: 13px;
}

.dtc-ticket-page .composite_form .dtc-option-card__badge {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.dtc-ticket-page .composite_form .dtc-option-card__badge--limited {
  background: var(--dtc-warning-bg);
  color: var(--dtc-warning-text);
}

.dtc-ticket-page .composite_form .dtc-option-card__badge--sold_out {
  background: #e9e9e9;
  color: #6b6b6b;
}

/* ------------------------------------------------------------------ form: ticket type cards */

/* Ticket types (priced options) sit side by side. Price rules go through
   .component_option_radio_button to outrank WooCommerce's "div.product span.price" (olive, 300). */
.dtc-ticket-page .composite_form .component_option_radio_buttons_container:has(.dtc-option-card--priced) {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.dtc-ticket-page .composite_form .component_option_radio_button:has(.dtc-option-card--priced) {
  height: 100%;
  min-height: 112px;
  padding: 20px 18px 16px;
}

.dtc-ticket-page .composite_form .dtc-option-card--priced {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.dtc-ticket-page .composite_form .dtc-option-card--priced .radio_button_title {
  font-size: 18px;
}


/* Composite sets .radio_button_description .price to 0.9em !important. */
.dtc-ticket-page .composite_form .component_option_radio_button .radio_button_description.dtc-option-card .dtc-option-card__price {
  margin: 0 !important; /* WooCommerce gives span.price a bottom margin */
  font-size: 28px !important;
}

.dtc-ticket-page .composite_form .component_option_radio_button .dtc-option-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  padding-top: 8px;
  color: var(--dtc-heading);
  font-family: var(--dtc-font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.dtc-ticket-page .composite_form .component_option_radio_button .dtc-option-card__price del {
  order: 2;
  color: var(--dtc-muted);
  font-size: inherit; /* same size as the sale price */
  font-weight: 400;
  text-decoration-thickness: 2px;
}

.dtc-ticket-page .composite_form .component_option_radio_button .dtc-option-card__price ins {
  order: 1;
  font-weight: 700;
  text-decoration: none;
}

/* The theme colours .amount and del; the card sets its own. */
.dtc-ticket-page .composite_form .component_option_radio_button .dtc-option-card__price .amount {
  color: inherit;
}

.dtc-ticket-page .composite_form .component_option_radio_button .dtc-option-card__price del,
.dtc-ticket-page .composite_form .component_option_radio_button .dtc-option-card__price del .amount {
  color: var(--dtc-muted);
}

.dtc-ticket-page .composite_form .component_option_radio_button .dtc-option-card__price .woocommerce-price-suffix,
.dtc-ticket-page .composite_form .component_option_radio_button .dtc-option-card__price small {
  order: 3;
  color: var(--dtc-muted);
  font-family: var(--dtc-font-body);
  font-size: 13px;
  font-weight: 400;
}

/* The discounted ticket: warm accent, sale price in the accent colour, ribbon top-right. */
.dtc-ticket-page .composite_form .component_option_radio_button:has(.dtc-option-card--deal) {
  border-color: rgba(226, 80, 76, .45);
  background: linear-gradient(160deg, var(--dtc-deal-tint) 0, #fff 70%);
}

.dtc-ticket-page .composite_form .component_option_radio_button:has(.dtc-option-card--deal):hover,
.dtc-ticket-page .composite_form .component_option_radio_button.selected:has(.dtc-option-card--deal) {
  border-color: var(--dtc-deal);
}

.dtc-ticket-page .composite_form .component_option_radio_button.selected:has(.dtc-option-card--deal) {
  box-shadow: 0 0 0 3px rgba(226, 80, 76, .18), 0 10px 24px rgba(226, 80, 76, .12);
}

.dtc-ticket-page .composite_form .component_option_radio_button .dtc-option-card--deal .dtc-option-card__price ins {
  color: var(--dtc-deal);
}

.dtc-ticket-page .composite_form .dtc-option-card__saving {
  position: absolute;
  top: 14px;
  right: -6px;
  padding: 5px 12px 5px 14px;
  border-radius: 999px 4px 4px 999px;
  background: var(--dtc-deal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.3;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(226, 80, 76, .3);
  pointer-events: none;
}

/* Ribbon fold */
.dtc-ticket-page .composite_form .dtc-option-card__saving::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  border-style: solid;
  border-width: 6px 6px 0 0;
  border-color: #a8302d transparent transparent transparent;
}

.dtc-ticket-page .composite_form .dtc-option-card--deal .radio_button_title {
  padding-right: 96px; /* clear of the saving ribbon */
}

/* "Early-Bird Special": the sale label under the price. */
.dtc-ticket-page .composite_form .dtc-option-card__sale-label,
.dtc-ticket-page .composite_form .dtc-option-card__countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--dtc-deal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dtc-ticket-page .composite_form .dtc-option-card__sale-label::before,
.dtc-ticket-page .composite_form .dtc-option-card__countdown::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Countdown to the sales close: a second bullet under the sale label, styled like it
   (ticket-page.js fills it in and ticks it every second). Tabular digits keep it from jittering. */
.dtc-ticket-page .composite_form .dtc-option-card__countdown {
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.dtc-ticket-page .composite_form .dtc-option-card__countdown[hidden] {
  display: none;
}

.dtc-ticket-page .composite_form .dtc-option-card--sold-out .radio_button_title,
.dtc-ticket-page .composite_form .dtc-option-card--sold-out .dtc-option-card__one-liner,
.dtc-ticket-page .composite_form .dtc-option-card--sold-out .dtc-option-card__sponsor {
  opacity: .55;
}

/* ------------------------------------------------------------------ form: total, notice, attendee, button */

.dtc-ticket-page .composite_form .composite_data {
  margin-top: 8px;
  padding: 24px;
  border-radius: var(--dtc-radius);
  background: var(--dtc-primary-tint-2);
  border: 1px solid var(--dtc-border);
}

.dtc-ticket-page .composite_form .composite_price {
  margin: 0 0 6px;
}

/* ticket-page.js renders the price breakdown (.dtc-summary) in place of Composite's total. */
.dtc-ticket-page .composite_form .composite_data .composite_price {
  display: none !important;
}

.dtc-ticket-page .dtc-summary {
  margin: 0 0 20px;
  padding: 18px 20px 14px;
  border: 1px solid var(--dtc-border);
  border-radius: 12px;
  background: #fff;
}

.dtc-ticket-page .dtc-summary[hidden] {
  display: none;
}

.dtc-ticket-page .dtc-summary__title {
  margin: 0 0 10px;
  color: var(--dtc-heading);
  font-family: var(--dtc-font-heading);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
}

.dtc-ticket-page .dtc-summary__table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.dtc-ticket-page .dtc-summary__table th,
.dtc-ticket-page .dtc-summary__table td {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--dtc-heading);
  font-weight: 400;
  line-height: 1.4;
  vertical-align: baseline;
}

.dtc-ticket-page .dtc-summary__table th {
  padding-right: 16px;
  text-align: left;
}

.dtc-ticket-page .dtc-summary__table td {
  text-align: right;
  white-space: nowrap;
}

.dtc-ticket-page .dtc-summary__lines tr:first-child th {
  font-weight: 700;
}

.dtc-ticket-page .dtc-summary__discount th,
.dtc-ticket-page .dtc-summary__discount td {
  color: var(--dtc-deal);
  font-weight: 700;
}

.dtc-ticket-page .dtc-summary__included th,
.dtc-ticket-page .dtc-summary__included td {
  padding-top: 2px;
  padding-bottom: 2px;
  color: var(--dtc-muted);
  font-size: 14px;
}

.dtc-ticket-page .dtc-summary__included th {
  padding-left: 14px;
}

.dtc-ticket-page .dtc-summary__totals tr:first-child th,
.dtc-ticket-page .dtc-summary__totals tr:first-child td {
  padding-top: 12px;
  border-top: 1px solid var(--dtc-border);
}

.dtc-ticket-page .dtc-summary__total th,
.dtc-ticket-page .dtc-summary__total td {
  padding-top: 12px;
  border-top: 2px solid var(--dtc-heading);
  font-family: var(--dtc-font-heading);
  font-size: 22px;
  font-weight: 700;
}

.dtc-ticket-page .dtc-summary__total small {
  color: var(--dtc-muted);
  font-family: var(--dtc-font-body);
  font-size: 13px;
  font-weight: 400;
}

.dtc-ticket-page .dtc-summary__table .amount {
  color: inherit;
}

.dtc-ticket-page .dtc-summary__note {
  margin: 10px 0 0;
  color: var(--dtc-muted);
  font-size: 13px;
  line-height: 1.45;
}

.dtc-ticket-page .composite_form .composite_price .price {
  color: var(--dtc-heading);
  font-family: var(--dtc-font-heading);
  font-size: 32px;
  font-weight: 700;
}

.dtc-ticket-page .composite_form .composite_price .price .woocommerce-price-suffix,
.dtc-ticket-page .composite_form .composite_price .price small {
  color: var(--dtc-muted);
  font-family: var(--dtc-font-body);
  font-size: 14px;
  font-weight: 400;
}

/* Ticket type price under the dropdown (sale price vs. full price). */
.dtc-ticket-page .composite_form .component_content .price {
  color: var(--dtc-heading);
  font-size: 17px;
  font-weight: 700;
}

.dtc-ticket-page .composite_form .component_content .price del {
  margin-right: 6px;
  color: var(--dtc-muted);
  font-weight: 400;
}

.dtc-ticket-page .composite_form .component_content .price ins {
  color: var(--dtc-primary-dark);
  text-decoration: none;
}

.dtc-ticket-page .composite_form .composite_price .price del {
  margin-right: 8px;
  color: var(--dtc-muted);
  font-size: 22px;
  font-weight: 400;
}

.dtc-ticket-page .composite_form .composite_price .price ins {
  color: var(--dtc-heading);
  text-decoration: none;
}

/* "Please choose an option": small and muted, not a big blue alert. */
.dtc-ticket-page .composite_form .composite_message .woocommerce-info {
  margin: 0 0 12px;
  padding: 0 !important;
  border: 0;
  background: none;
  color: var(--dtc-muted);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: none;
}

.dtc-ticket-page .composite_form .composite_message .woocommerce-info::before {
  display: none;
  content: none;
}

.dtc-ticket-page .composite_form .composite_message ul {
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

.dtc-ticket-page .composite_form .composite_message .woocommerce-info li {
  margin: 0;
  padding: 0;
}

/* "Please choose a stream option to continue" (ticket-page.js): a prominent call-out. */
.dtc-ticket-page .composite_form .composite_message .woocommerce-info li + li {
  margin-top: 8px;
}

.dtc-ticket-page .composite_form .dtc-choose-prompt {
  display: block;
  padding: 14px 16px 14px 46px;
  position: relative;
  border: 1px solid #f6d49a;
  border-left: 4px solid var(--dtc-warning-edge);
  border-radius: 10px;
  background: var(--dtc-warning-bg);
  color: var(--dtc-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.dtc-ticket-page .composite_form .dtc-choose-prompt::before {
  content: "!";
  position: absolute;
  top: 50%;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--dtc-warning-edge);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.dtc-ticket-page .composite_form .dtc-choose-prompt a {
  color: var(--dtc-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dtc-ticket-page .composite_form .dtc-choose-prompt a:hover,
.dtc-ticket-page .composite_form .dtc-choose-prompt a:focus {
  color: var(--dtc-heading);
}

.dtc-ticket-page .composite_form .composite_availability .stock.in-stock {
  display: none;
}

.dtc-ticket-page .composite_form .composite_availability .stock.out-of-stock {
  color: var(--dtc-warning-text);
  font-weight: 700;
}

.dtc-ticket-page .wc-box-office-ticket-form {
  margin-top: 8px;
}

.dtc-ticket-page .wc-box-office-ticket-fields {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.dtc-ticket-page .wc-box-office-ticket-fields-title {
  margin: 8px 0 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--dtc-border);
  font-family: var(--dtc-font-heading);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
}

.dtc-ticket-page .wc-box-office-ticket-fields-title a {
  color: var(--dtc-heading);
  text-decoration: none;
  pointer-events: none;
}

.dtc-ticket-page .wc-box-office-ticket-fields-title a::before {
  content: "Attendee details";
  font-size: 20px;
}

.dtc-ticket-page .wc-box-office-ticket-fields-title a {
  display: block;
  margin: 0;
  padding: 0 !important;
  font-size: 0;
}

/* main.css sets this to display: flex !important (three classes deep). */
.dtc-ticket-page .wc-box-office-ticket-form .wc-box-office-ticket-fields .wc-box-office-ticket-fields-body {
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}

.dtc-ticket-page .wc-box-office-ticket-form .wc-box-office-ticket-fields .wc-box-office-ticket-fields-body > .form-row {
  float: none;
  width: auto;
  margin: 0 0 12px;
  padding: 0;
}

/* Everything takes the full row except the short text fields, which pair up (lib/woocommerce/ticket-form.php
   marks them .dtc-field--half): first | last name, email | workplace, school | graduation date. */
.dtc-ticket-page .wc-box-office-ticket-form .wc-box-office-ticket-fields .wc-box-office-ticket-fields-body > * {
  grid-column: 1 / -1;
}

.dtc-ticket-page .wc-box-office-ticket-form .wc-box-office-ticket-fields .wc-box-office-ticket-fields-body > .dtc-field--half {
  grid-column: auto;
}

/* The badge note under "Attendee details". */
.dtc-ticket-page .wc-box-office-ticket-fields-body .dtc-badge-note {
  margin: -4px 0 14px;
  color: var(--dtc-muted);
  font-size: 14px;
  line-height: 1.5;
}

.dtc-ticket-page .wc-box-office-ticket-fields-body label {
  display: block;
  margin: 0 0 6px;
  color: var(--dtc-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.dtc-ticket-page .wc-box-office-ticket-fields-body label .required {
  color: #d9534f;
  text-decoration: none;
}

.dtc-ticket-page .wc-box-office-ticket-fields-body input.input-text,
.dtc-ticket-page .wc-box-office-ticket-fields-body select,
.dtc-ticket-page .wc-box-office-ticket-fields-body textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--dtc-border);
  border-radius: 10px;
  background: #fff;
  color: var(--dtc-heading);
  font-size: 16px;
  box-shadow: none;
}

.dtc-ticket-page .wc-box-office-ticket-fields-body input.input-text:focus,
.dtc-ticket-page .wc-box-office-ticket-fields-body select:focus,
.dtc-ticket-page .wc-box-office-ticket-fields-body textarea:focus {
  border-color: var(--dtc-primary);
  outline: 2px solid rgba(1, 174, 184, .25);
}

.dtc-ticket-page .wc-box-office-ticket-fields-body .ticket-field-option-label {
  font-size: 15px;
}

.dtc-ticket-page .wc-box-office-ticket-fields-body .ticket-field-option-label a {
  color: var(--dtc-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dtc-ticket-page .wc-box-office-ticket-fields-body input[type="checkbox"],
.dtc-ticket-page .wc-box-office-ticket-fields-body input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -3px;
  accent-color: var(--dtc-primary);
}

.dtc-ticket-page .composite_form .composite_button button.single_add_to_cart_button {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 8px 0 0;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--dtc-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 8px 20px rgba(1, 174, 184, .3);
  transition: background-color .15s ease, transform .15s ease;
}

.dtc-ticket-page .composite_form .composite_button button.single_add_to_cart_button:hover,
.dtc-ticket-page .composite_form .composite_button button.single_add_to_cart_button:focus {
  background: var(--dtc-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.dtc-ticket-page .composite_form .composite_button button.single_add_to_cart_button.disabled,
.dtc-ticket-page .composite_form .composite_button button.single_add_to_cart_button:disabled {
  padding: 14px 24px;
  background: #b9dfe2 !important; /* theme's disabled .button rules use !important */
  color: #fff !important;
  opacity: 1;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.dtc-ticket-page .composite_form .composite_button button.dtc-add-another {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 12px 0 0;
  padding: 12px 24px;
  border: 2px solid var(--dtc-primary);
  border-radius: 999px;
  background: #fff;
  color: var(--dtc-primary-dark);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: none;
  transition: background-color .15s ease, transform .15s ease;
}

.dtc-ticket-page .composite_form .composite_button button.dtc-add-another:hover,
.dtc-ticket-page .composite_form .composite_button button.dtc-add-another:focus {
  background: var(--dtc-primary-tint);
  color: var(--dtc-primary-dark);
  transform: translateY(-1px);
}

.dtc-ticket-page .composite_form .composite_button button.dtc-add-another.disabled {
  border-color: #b9dfe2 !important; /* theme's disabled .button rules use !important */
  background: #fff !important;
  color: #8fc5ca !important;
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

/* ------------------------------------------------------------------ phones and tablets */

@media (max-width: 991px) {
  .dtc-ticket-page .dtc-ticket {
    padding: 24px 0 48px;
  }

  .dtc-ticket-page .dtc-ticket__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .dtc-ticket-page .dtc-ticket__title {
    font-size: 32px;
  }

  .dtc-ticket-page .dtc-ticket__value {
    font-size: 17px;
  }

  .dtc-ticket-page .dtc-ticket__facts-line {
    display: flex;
  }

  .dtc-ticket-page .dtc-ticket__lead-quote {
    display: block;
    margin-top: 20px;
  }

  .dtc-ticket-page .dtc-ticket__form {
    margin-top: 20px;
  }

  .dtc-ticket-page .dtc-ticket__aside-inner {
    position: static;
  }

  /* Facts and the first quote already appear above the form. */
  .dtc-ticket-page .dtc-ticket__facts,
  .dtc-ticket-page .dtc-ticket-quote--first {
    display: none;
  }
}

@media (max-width: 575px) {
  .dtc-ticket-page .composite_form .composite_component {
    padding: 18px 16px 4px;
  }

  .dtc-ticket-page .composite_form .composite_data {
    padding: 18px 16px;
  }

  .dtc-ticket-page .wc-box-office-ticket-form .wc-box-office-ticket-fields .wc-box-office-ticket-fields-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .dtc-ticket-page .composite_form .component_option_radio_button {
    padding: 14px;
  }
}

/* ------------------------------------------------------------------ phase 2: cart, close */

.dtc-ticket-page .dtc-ticket__in-cart {
  background: var(--dtc-primary-tint);
  border-left: 4px solid var(--dtc-primary);
  border-radius: var(--dtc-radius);
  padding: 14px 18px;
  margin: 0 0 24px;
}

.dtc-ticket-page .dtc-ticket__in-cart p {
  margin: 0;
}

.dtc-ticket-page .dtc-ticket__in-cart a {
  font-weight: 600;
  margin-left: .25em;
  white-space: nowrap;
}

.dtc-ticket-page .dtc-ticket__in-cart .dtc-ticket__in-cart-hint {
  color: var(--dtc-muted);
  font-size: .9em;
  margin-top: 4px;
}

.dtc-ticket-page .dtc-ticket__closed {
  background: #fff;
  border: 1px solid var(--dtc-border);
  border-radius: var(--dtc-radius);
  padding: 24px;
  font-size: 1.1em;
  color: var(--dtc-heading);
}

.dtc-ticket-page .dtc-ticket__closed p:last-child {
  margin-bottom: 0;
}

.dtc-ticket-page .dtc-ticket__purchase {
  scroll-margin-top: 16px;
}

/* ------------------------------------------------------------------ component description (section intro) */

/* Composite's component description, e.g. "Only 75 spots per breakfast": a tinted note with an
   info icon under the section heading. Staff edit the wording on the component. */
.dtc-ticket-page .composite_form .component_description_wrapper {
  margin: 0 0 16px;
}

.dtc-ticket-page .composite_form .component_description {
  position: relative;
  padding: 12px 16px 12px 46px;
  border: 1px solid #bfe6e9;
  border-radius: 10px;
  background: var(--dtc-primary-tint);
  color: var(--dtc-heading);
  font-size: 15px;
  line-height: 1.5;
}

.dtc-ticket-page .composite_form .component_description::before {
  content: "i";
  content: "i" / ""; /* decorative: not read out where supported */
  position: absolute;
  top: 12px;
  left: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dtc-primary-dark);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.dtc-ticket-page .composite_form .component_description p {
  margin: 0;
}

.dtc-ticket-page .composite_form .component_description p + p {
  margin-top: 6px;
}
