/* NHRDA tickets (Traxsyd headless): picker, cart, checkout, confirmation.
   Built on the XRiders look: --gt-theme red, --gt-header dark, gt-theme-btn buttons. */

.nh-tix { scroll-margin-top: 110px; }
.nh-tix-state { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #eee; color: #333; }
.nh-tix-state--on_sale { background: #16a34a; color: #fff; }
.nh-tix-state--upcoming { background: #2563eb; color: #fff; }
.nh-tix-state--sold_out { background: #6b7280; color: #fff; }
.nh-tix-state--traxsyd { background: var(--gt-header, #1d1d1d); color: #fff; }
.nh-tix-state--ended { background: #e5e7eb; color: #374151; }

.nh-tix-cat__title { text-transform: uppercase; font-size: 16px; letter-spacing: .05em; border-bottom: 2px solid var(--gt-theme, #E63946); padding-bottom: 6px; margin-bottom: 0; }
.nh-tix-list { border: 1px solid #e5e7eb; border-top: 0; }
.nh-tix-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px 20px; align-items: center; padding: 14px 16px; border-top: 1px solid #e5e7eb; background: #fff; }
.nh-tix-row--off .nh-tix-row__name { color: #4b5563; }
.nh-tix-row__name { font-weight: 700; color: #111; }
.nh-tix-row__desc { font-size: 14px; color: #6b7280; }
.nh-tix-row__tags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.nh-tix-row__price { text-align: right; line-height: 1.2; white-space: nowrap; }
.nh-tix-row__price strong { display: block; font-size: 18px; color: #111; }
.nh-tix-row__price small { color: #6b7280; font-size: 12px; }
.nh-tix-row__act { min-width: 92px; text-align: right; }
.nh-tix-row__act .nh-qty { width: 84px; margin-left: auto; }
.nh-traxsyd-btn { white-space: nowrap; }
.nh-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: #f3f4f6; color: #374151; }
.nh-tag--bad { background: #fee2e2; color: #991b1b; }
.nh-tag--warn { background: #fef3c7; color: #92400e; }
.nh-tag--info { background: #dbeafe; color: #1e40af; }
.nh-tag--good { background: #dcfce7; color: #166534; }
.nh-tag--muted { background: #f3f4f6; color: #4b5563; }
.nh-tix-foot { margin-top: 8px; }
.nh-tix-foot .gt-theme-btn[disabled] { opacity: .5; cursor: not-allowed; }
.nh-seller { color: #4b5563; }
.nh-seller a { color: inherit; text-decoration: underline; }

.nh-tix-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--gt-header, #1d1d1d); color: #fff; box-shadow: 0 -4px 14px rgba(0,0,0,.25); }
.nh-tix-sticky[hidden] { display: none; }
.nh-tix-sticky .btn { background: var(--gt-theme, #E63946); border-color: var(--gt-theme, #E63946); }

@media (max-width: 575px) {
    .nh-tix-row { grid-template-columns: 1fr auto; }
    .nh-tix-row__act { grid-column: 1 / -1; text-align: left; }
    .nh-tix-row__act .nh-qty { margin-left: 0; }
}

/* cart / checkout / confirmation pages */
.nh-tix-page .nh-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 20px; margin-bottom: 16px; }
.nh-event-head__img { width: 96px; height: 64px; object-fit: cover; border-radius: 4px; }
.nh-event-head h4 a { color: #111; }
.nh-hold { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 20px; border-radius: 6px; background: #f3f4f6; border: 1px solid #e5e7eb; }
.nh-hold--low { background: #fef3c7; border-color: #f59e0b; }
.nh-cart-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.nh-cart-table .nh-qty { width: 120px; margin: 0 auto; }
.nh-totals li { padding: 4px 0; }
.nh-totals__total { border-top: 1px solid #e5e7eb; margin-top: 6px; padding-top: 10px !important; font-weight: 800; font-size: 18px; }
.nh-discount .input-group .btn { background: var(--gt-header, #1d1d1d); }
.nh-card { min-height: 90px; }
.nh-field--bad .form-control, .nh-field--bad .form-select, .nh-field--bad .form-check-input { border-color: #dc2626; }
.nh-suggest { margin-top: 4px; }
.nh-attendee legend { font-weight: 700; }
#nhPayBtn[disabled] { opacity: .6; cursor: wait; }

.nh-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); padding: 16px; }
.nh-overlay[hidden] { display: none; }
.nh-overlay__box { background: #fff; border-radius: 8px; padding: 28px; max-width: 460px; width: 100%; }
.nh-spinner { width: 42px; height: 42px; border: 4px solid #e5e7eb; border-top-color: var(--gt-theme, #E63946); border-radius: 50%; animation: nh-spin .9s linear infinite; }
.nh-spinner[hidden] { display: none; }
@keyframes nh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nh-spinner { animation-duration: 3s; } }

.nh-ticket { border: 2px dashed #d1d5db; border-radius: 8px; padding: 16px; text-align: center; height: 100%; }
.nh-ticket__qr { width: 160px; height: 160px; background: #fff; }
.nh-ticket__name { font-weight: 700; margin-top: 8px; }
.nh-ticket__code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .08em; font-size: 15px; }

/* Cart table on phones: stack each line (name, then price · qty · total) instead of a
   sideways-scrolling table that hides the quantity and total. */
@media (max-width: 575px) {
    /* Beats XRiders' .common-table { min-width: max-content } and its flex rows. */
    /* also beats .cart-list-area .table-responsive .table { width: 900px } (≤991px) */
    .cart-list-area .table-responsive .common-table.nh-cart-table { min-width: 0; display: block; width: 100%; }
    .common-table.nh-cart-table thead { display: none; }
    .common-table.nh-cart-table tbody { display: block; width: 100%; }
    .common-table.nh-cart-table tbody tr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid #e5e7eb; width: 100%; }
    .common-table.nh-cart-table tbody td { display: block; width: auto; border: 0 !important; padding: 0 !important; }
    .common-table.nh-cart-table tbody td:first-child { grid-column: 1 / -1; }
    .common-table.nh-cart-table tbody td:nth-child(2) { text-align: left !important; }
    .common-table.nh-cart-table tbody td:last-child { font-weight: 700; }
    .common-table.nh-cart-table .nh-qty { width: 110px; }
}
@media (min-width: 576px) and (max-width: 991px) {
    /* XRiders forces .cart-list-area tables to 900px here (sideways scroll); our 4 columns fit. */
    .cart-list-area .table-responsive .common-table.nh-cart-table { width: 100%; min-width: 0; }
}

/* Event banner on the detail page. Promoter art has text in it: show it whole at its own
   shape. A tall poster is capped and letterboxed on dark, never cropped. */
.nh-event-banner { margin: 0 0 28px; border-radius: 6px; overflow: hidden; text-align: center; }
/* Same width as the event info box below; 680px cap fits a ~2.14:1 banner at the widest
   container (1320px -> ~617px) uncropped, and keeps a tall poster from taking over. */
.nh-event-banner img { display: block; width: 100%; height: auto; max-height: 680px; object-fit: contain; margin: 0 auto; background: var(--gt-header, #1d1d1d); }

/* Previous / next event cards (detail page). Banners shown whole: promoter art has text. */
.nh-adjacent { display: flex; flex-direction: column; }
.nh-adjacent__img { display: block; background: var(--gt-header, #1d1d1d); }
.nh-adjacent__img img { display: block; width: 100%; aspect-ratio: 2.14 / 1; object-fit: contain; }
.nh-adjacent__label { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gt-theme, #E63946); margin-bottom: 8px; }
.nh-adjacent--next .gt-event-content { text-align: right; }
.nh-adjacent--next .gt-date-list { justify-content: flex-end; }
.nh-adjacent h3 a { color: inherit; }
@media (max-width: 767px) { .nh-adjacent--next .gt-event-content { text-align: left; } .nh-adjacent--next .gt-date-list { justify-content: flex-start; } }

/* /events cards: LEARN MORE + BUY TICKETS wrap under the text instead of squashing when the
   venue line is long (some venue names from Traxsyd are full street addresses). */
.gt-event-box-items .gt-title-item { flex-wrap: wrap; row-gap: 12px; }
.gt-event-box-items .gt-title-item > .gt-content { flex: 1 1 260px; min-width: 0; }
.gt-event-box-items .gt-title-item > .gt-theme-btn { white-space: nowrap; flex: 0 0 auto; }
