/* Native Event Tickets selector. Scoped to the event ticket section. */
#tickets {
  scroll-margin-top: 190px;
  --tec-font-family-sans-serif: "Inter", system-ui, sans-serif;
  --tec-color-accent-primary: #166534;
  --tec-color-button-primary: #c2410c;
}

#tickets .section-header { margin-bottom: 24px; }
#tickets .section-note { font-size: 14px; line-height: 1.6; }
#tickets .ticket-tabs-wrap { margin-bottom: 18px; }
#tickets .ticket-tabs {
  padding: 5px;
  gap: 4px;
  border: 1px solid #d5e5da;
  background: #edf5ef;
}
#tickets .ticket-tabs .tab-btn {
  min-height: 44px;
  min-width: 140px;
  padding: 10px 24px;
  font: 600 15px/1.4 "Inter", system-ui, sans-serif;
  color: #31503e;
}
#tickets .ticket-tabs .tab-btn[aria-selected="true"] {
  color: #fff;
  background: #166534;
  box-shadow: 0 2px 5px #14532d20;
}
#tickets .tickets-panel-hint-wrap { max-width: 820px; margin-bottom: 18px; }
#tickets .tickets-panel-hint { text-align: center; font-size: 14px; color: #31503e; }
#tickets .ticket-panels, #tickets .tab-panel { margin-top: 0; }
#tickets .ticket-table {
  width: 820px;
  padding: 0;
  border: 1px solid #dce5df;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px #1639230a;
}
#tickets .ticket-table .tribe-tickets__tickets-wrapper { margin: 0; max-width: none; }
#tickets .ticket-table .tribe-tickets__tickets-form {
  margin: 0;
  padding: 8px 28px 24px;
  max-width: none;
  width: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  font-family: "Inter", system-ui, sans-serif;
}
/* The section already supplies a visible heading; retain the native form heading for readers. */
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 144px;
  grid-template-areas: "title price quantity" "description price quantity";
  column-gap: 24px;
  row-gap: 6px;
  align-items: center;
  padding: 26px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e5ebe7;
}
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-content-title-container {
  grid-area: title;
  min-width: 0;
  align-self: end;
}
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-content-title {
  margin: 0;
  color: #172e20;
  font: 700 17px/1.4 "Inter", system-ui, sans-serif;
}
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-details-content {
  grid-area: description !important;
  min-width: 0;
  padding: 0;
  margin: 0;
  align-self: start;
  font: 400 14px/1.55 "Inter", system-ui, sans-serif;
  color: #526158;
}
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-extra {
  grid-area: price !important;
  text-align: right;
  padding: 0;
  margin: 0;
}
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-extra-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  font: 700 22px/1.3 "Inter", system-ui, sans-serif;
  color: #166534;
}
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-original-price {
  font: 400 13px/1.4 "Inter", system-ui, sans-serif;
  color: #64746a;
  text-decoration: line-through;
}
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-sale-price { font-size: 22px; line-height: 1.3; }
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-extra-available {
  margin-top: 5px;
  font: 400 12px/1.4 "Inter", system-ui, sans-serif;
  color: #64746a;
}
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-content-sale-label-container { margin: 0 0 6px; }
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-content-sale-label {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: #e8f5eb;
  color: #166534;
  font: 600 11px/1.4 "Inter", system-ui, sans-serif;
  letter-spacing: .025em;
}
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-quantity {
  grid-area: quantity;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 144px;
  height: 48px;
  padding: 1px;
  margin: 0;
  border: 1px solid #c6d8cc;
  border-radius: 12px;
  background: #f6faf7;
}
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-quantity button {
  flex: 0 0 46px;
  width: 46px;
  height: 44px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #166534;
  font: 400 25px/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
}
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-quantity button:hover { background: #e2eee5; }
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-quantity button:disabled { color: #84938a; cursor: default; }
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-quantity-number { flex: 0 0 48px; width: 48px; margin: 0; }
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-quantity-number-input {
  width: 48px;
  height: 44px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #172e20;
  text-align: center;
  font: 600 18px/1 "Inter", system-ui, sans-serif;
}
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 22px 0 0;
  border: 0;
  gap: 32px;
}
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-footer-quantity,
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-footer-total { font: 400 14px/1.5 "Inter", system-ui, sans-serif; color: #526158; }
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-footer-quantity-number,
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-footer-total-wrap { font-weight: 700; color: #172e20; }
#tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-buy,
#tickets .ticket-table #tribe-tickets__tickets-submit {
  min-height: 50px;
  min-width: 190px;
  padding: 14px 26px;
  border: 1px solid #c2410c;
  border-radius: 12px;
  background: #c2410c;
  color: #fff;
  font: 700 15px/1.4 "Inter", system-ui, sans-serif;
  box-shadow: 0 4px 10px #c2410c18;
  transition: background .15s ease;
}
#tickets .ticket-table #tribe-tickets__tickets-submit:hover { background: #9a3412; border-color: #9a3412; }
#tickets button:focus-visible,
#tickets input:focus-visible { outline: 3px solid #c2410c; outline-offset: 3px; }

@media (max-width: 680px) {
  #tickets { scroll-margin-top: 140px; }
  #tickets .ticket-table { border-radius: 16px; }
  #tickets .ticket-table .tribe-tickets__tickets-form { padding: 0 20px 20px; }
  #tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item {
    grid-template-columns: minmax(0, 1fr) 144px;
    grid-template-areas: "title title" "description description" "price quantity";
    column-gap: 10px;
    row-gap: 8px;
    padding: 22px 0;
  }
  #tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-extra { text-align: left; margin-top: 8px; }
  #tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-extra-price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px; }
  #tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-item-quantity { margin-top: 8px; }
  #tickets #tribe-tickets__tickets-form .tribe-tickets__tickets-footer { flex-wrap: wrap; }
  #tickets .ticket-table #tribe-tickets__tickets-submit { width: 100%; }
  #tickets .ticket-tabs { width: 100%; max-width: 340px; }
  #tickets .ticket-tabs .tab-btn { flex: 1; min-width: 0; padding-inline: 18px; }
}

/* Registration lives inside the ticket section, but has its own row layout. */
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item {
  display: grid;
  grid-template-columns: fit-content(340px) 44px minmax(0, 1fr) 80px 60px 80px;
  grid-template-areas: "title toggle . price quantity total" "description description description description description description";
  align-items: center;
  gap: 12px;
  padding: 20px 0;
}
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-content-title-container { grid-area: title; min-width: 0; margin: 0; padding: 0; align-self: center; }
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-content-title { margin: 0; padding: 0; color: #172e20; font: 700 16px/1.45 "Inter", system-ui, sans-serif; }
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-details-summary { grid-area: toggle; padding: 0; margin: 0; }
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-details-summary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid #c6d8cc;
  border-radius: 10px;
  background: #f0f7f2;
  color: #166534;
  cursor: pointer;
}
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-details-summary-button-text,
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-details-summary-button::before { display: none; }
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-details-summary-button::after {
  content: "+";
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  background: none;
  transform: none;
  font: 400 24px/1 "Inter", system-ui, sans-serif;
}
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-details-summary-button[aria-expanded="true"]::after { content: "−"; }
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-details-summary-button:hover { background: #deede2; border-color: #166534; }
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-details-content {
  grid-area: description !important;
  padding: 0 0 4px;
  margin: 0;
  color: #526158;
  font: 400 14px/1.6 "Inter", system-ui, sans-serif;
}
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-details-content.tribe-common-a11y-hidden { display: none !important; }
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-extra { grid-area: price !important; margin: 0; padding: 0; text-align: right; }
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-quantity { grid-area: quantity; margin: 0; padding: 0; }
#tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-total-wrap { grid-area: total; margin: 0; padding: 0; justify-self: end; }
#tickets #tribe-tickets__modal-form .tribe-tickets__attendee-tickets-footer-checkout-button {
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid #166534;
  border-radius: 10px;
  background: #166534;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font: 700 15px/1.4 "Inter", system-ui, sans-serif;
}
#tickets #tribe-tickets__modal-form .tribe-tickets__attendee-tickets-footer-checkout-button:hover,
#tickets #tribe-tickets__modal-form .tribe-tickets__attendee-tickets-footer-checkout-button:focus,
#tickets #tribe-tickets__modal-form .tribe-tickets__attendee-tickets-footer-checkout-button:active {
  background: #14532d;
  border-color: #14532d;
  color: #fff !important;
}
@media (max-width: 768px) {
  #tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item {
    grid-template-columns: minmax(0, 1fr) 60px 80px;
    grid-template-areas: "title title toggle" "description description description" "price quantity total";
  }
  #tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-details-summary { justify-self: end; }
  #tickets #tribe-tickets__modal-form .tribe-tickets__tickets-item-extra { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  #tickets button { transition: none; }
}
