/* Organiser seating setup on the account page. Builds on styles.css, system.css and market.css. */

.seat-panel summary { min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; }
.seat-panel summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.seat-summary-hint { color: #51647c; font-weight: 600; }
.seat-body { display: grid; gap: 14px; padding-top: 10px; min-width: 0; }
.seat-body h4 { margin: 0 0 6px; color: var(--navy); font-size: 16px; }
.seat-intro { margin: 0; color: #3f5269; font-size: 15px; }

.seat-saved { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.seat-saved p { margin: 0 0 6px; color: var(--ink); font-size: 14.5px; }
.seat-saved-list { margin: 0; padding-left: 18px; color: var(--ink); font-size: 14.5px; }
.seat-locked { margin: 0; padding: 10px 14px; border-left: 4px solid var(--gold); border-radius: 6px; background: #fff7dc; color: #4a3500; font-weight: 700; }

.seat-builder { display: grid; gap: 14px; min-width: 0; }
.seat-rows { display: grid; gap: 12px; min-width: 0; }
.seat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.seat-row legend { padding: 0 6px; color: var(--navy); font-size: 14px; font-weight: 750; }
.seat-f-name { grid-column: 1 / -1; }
.seat-field label { color: var(--navy); font-size: 14px; font-weight: 700; }
.seat-field input { width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #b9c9dc; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.seat-field input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.seat-field input[aria-invalid="true"] { border-color: #b3261e; }
.seat-field input:disabled { background: var(--paper); color: #3f5269; }
.seat-err { min-height: 0; color: #b3261e; font-weight: 650; }
.seat-err:empty { display: none; }
.seat-remove { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
.seat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.seat-actions .button, .seat-builder .button { min-height: 44px; }
.seat-note { font-size: 14px; }
.seat-alert { margin: 0; color: #b3261e; font-size: 14.5px; font-weight: 700; }
.seat-alert[hidden], .seat-warn[hidden] { display: none; }
.seat-warn { margin: 0; padding: 10px 14px; border-radius: 8px; background: #fff4cf; color: #6b4300; font-weight: 700; }
.seat-form-note { margin: 0 0 8px; }
#add-ticket-type[hidden] { display: none; }

/* live preview */
.seat-preview-wrap { display: grid; gap: 8px; min-width: 0; }
.seat-totals { margin: 0; color: var(--navy); font-size: 15px; font-weight: 750; }
.seat-preview { display: grid; gap: 14px; min-width: 0; padding: 12px; border: 1px dashed #b9c9dc; border-radius: 10px; background: var(--paper); }
.seat-block { min-width: 0; }
.seat-block h5 { margin: 0 0 8px; color: var(--navy); font-size: 15px; font-weight: 780; overflow-wrap: anywhere; }
.seat-block h5 small { color: #51647c; font-size: 13.5px; font-weight: 600; }
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; min-width: 0; }
.seat-table { display: grid; gap: 6px; justify-items: center; min-width: 0; padding: 8px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.seat-table b { color: var(--navy); font-size: 12.5px; font-weight: 750; }
.seat-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 92px; }
.seat-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); }

@media (min-width: 640px) {
  .seat-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .seat-f-name { grid-column: auto; }
  .seat-remove { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .seat-panel *, .seat-panel *::before, .seat-panel *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
