#fooevents_seating_dialog .fe-visual-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:10px;margin:8px 0;background:#f4f6f9;border:1px solid #d6dce5;border-radius:8px}
#fooevents_seating_dialog .fe-visual-toolbar strong{font-size:12px;letter-spacing:.04em;margin-right:8px;color:#182230}
#fooevents_seating_dialog .fe-visual-status{flex:1 1 260px;font-size:12px;color:#526071;margin-left:6px}
#fooevents_seating_dialog .fe-visual-status.is-error{color:#b42318}
#fooevents_seating_dialog .fe-visual-workspace{display:flex;align-items:stretch;gap:12px;min-width:0;max-height:72vh}
#fooevents_seating_dialog .fe-visual-canvas{position:relative;flex:1 1 auto;min-width:0;min-height:560px;overflow:auto;background-color:#fff;background-image:linear-gradient(#e9edf3 1px,transparent 1px),linear-gradient(90deg,#e9edf3 1px,transparent 1px);background-size:24px 24px;border:1px solid #cbd3df;border-radius:7px}
#fooevents_seating_dialog .fe-visual-surface{position:relative;min-height:1050px;min-width:1500px}
#fooevents_seating_dialog .fe-visual-surface>.seat_container{position:relative;box-sizing:border-box;overflow:visible}
#fooevents_seating_dialog .fe-visual-stage{position:absolute;z-index:3;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border:2px solid #536273;border-radius:5px;color:#273444;font-weight:700;cursor:move;user-select:none;box-shadow:0 2px 5px rgba(0,0,0,.12)}
#fooevents_seating_dialog .fe-visual-stage.fe-selected,#fooevents_seating_dialog .fe-visual-object.fe-selected{outline:3px solid #2271b1;outline-offset:2px}
#fooevents_seating_dialog .fe-visual-surface .row_container{z-index:4;cursor:default}
#fooevents_seating_dialog .fe-visual-surface .row_container.fe-selected{outline:2px dashed #2271b1;outline-offset:4px}
#fooevents_seating_dialog .fe-visual-surface .fooevents_seating_chart_view_row_name{cursor:move;user-select:none}
#fooevents_seating_dialog .fe-visual-surface .row_container.ui-draggable-dragging{z-index:50;opacity:.86}
#fooevents_seating_dialog .fe-visual-object{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;box-sizing:border-box;cursor:move;user-select:none;text-align:center;overflow:visible;border:1px solid #8995a5;color:#334155;font-size:13px;font-weight:600}
#fooevents_seating_dialog .fe-visual-object span{pointer-events:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 8px}
#fooevents_seating_dialog .fe-visual-object-aisle{border:1px dashed #8995a5;border-radius:4px;background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.35),rgba(255,255,255,.35) 8px,transparent 8px,transparent 16px)}
#fooevents_seating_dialog .fe-visual-object-zone{border:2px dashed #70a58b;border-radius:12px;background-color:rgba(220,239,228,.55);color:#236044}
#fooevents_seating_dialog .fe-visual-object-label{border:1px dashed #8a96a5;background:rgba(255,255,255,.85);color:#334155}
#fooevents_seating_dialog .fe-visual-inspector{flex:0 0 220px;width:220px;max-height:72vh;overflow:auto;background:#f8fafc;border:1px solid #d6dce5;border-radius:7px;padding:12px;box-sizing:border-box}
#fooevents_seating_dialog .fe-visual-inspector h3{margin:0 0 12px;font-size:14px}
#fooevents_seating_dialog .fe-visual-inspector label{display:block;font-size:12px;font-weight:600;margin:0 0 10px;color:#344054}
#fooevents_seating_dialog .fe-visual-inspector input[type=number],#fooevents_seating_dialog .fe-visual-inspector input[type=text]{display:block;width:100%;margin-top:4px;min-height:32px}
#fooevents_seating_dialog .fe-visual-inspector input[type=color]{display:block;width:100%;height:34px;margin-top:4px}
#fooevents_seating_dialog .fe-visual-inspector .fe-check-label{display:flex;gap:7px;align-items:center}
#fooevents_seating_dialog .fe-visual-inspector .description,.fe-inspector-empty{font-size:11px;color:#667085;line-height:1.45}
#fooevents_seating_dialog .fe-inspector-empty{padding:12px 3px}
#fooevents_seating_dialog .fe-delete-object{margin-top:8px;color:#b42318;border-color:#f0b7b3}
#fooevents_seating_dialog .fe-visual-surface .fooevents-seating-row-inverted{direction:rtl}
#fooevents_seating_dialog .fe-visual-surface .fooevents-seating-row-inverted span{direction:ltr}
/* Customer map: positions affect only presentation; native FooEvents seat spans and IDs remain intact. */
#fooevents_seating_dialog .fe-customer-map-viewport{max-width:100%;overflow:auto;max-height:70vh}
#fooevents_seating_dialog .seat_container.fe-customer-layout{position:relative!important;box-sizing:border-box;overflow:visible!important}
#fooevents_seating_dialog .seat_container.fe-customer-layout>.row_container{position:absolute!important;margin:0!important;z-index:4}
#fooevents_seating_dialog .fe-customer-stage{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border:2px solid #536273;border-radius:5px;color:#273444;font-weight:700;pointer-events:none}
#fooevents_seating_dialog .fe-customer-object{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;text-align:center;overflow:hidden;pointer-events:none;font-size:12px;font-weight:600;color:#334155}
#fooevents_seating_dialog .fe-customer-object-aisle{border:1px dashed #8995a5;border-radius:4px;background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.35),rgba(255,255,255,.35) 8px,transparent 8px,transparent 16px)}
#fooevents_seating_dialog .fe-customer-object-zone{border:2px dashed #70a58b;border-radius:12px;background-color:rgba(220,239,228,.55);color:#236044}
#fooevents_seating_dialog .fe-customer-object-label{border:1px dashed #8a96a5;background:rgba(255,255,255,.85)}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents-seating-row-inverted{direction:rtl}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents-seating-row-inverted span{direction:ltr}
@media(max-width:850px){#fooevents_seating_dialog .fe-visual-workspace{display:block}#fooevents_seating_dialog .fe-visual-inspector{width:100%;max-height:none;margin-top:10px}#fooevents_seating_dialog .fe-visual-canvas{min-height:480px}}
#fooevents_seating_dialog .fe-visual-zoom-label{display:inline-block;min-width:42px;text-align:center;font-size:12px;color:#526071}
#fooevents_seating_dialog .fe-visual-surface>.seat_container{max-height:none!important;overflow:visible!important}
#fooevents_seating_dialog .seat_container.fe-customer-layout{max-height:none!important}

/* Visual-editor V2: single canvas and per-seat editing. */
#fooevents_seating_dialog.fe-visual-dialog-ready #seating_chart_manager,
#fooevents_seating_dialog.fe-visual-dialog-ready .fooevents_seating_chart_disclaimer,
#fooevents_seating_dialog.fe-visual-dialog-ready .fooevents_seating_chart_front{display:none!important}
#fooevents_seating_dialog .fe-visual-surface .fooevents_seating_chart_view_row span.fe-selected-seat{outline:2px solid #1769aa!important;outline-offset:2px;position:relative;z-index:20;box-shadow:0 0 0 2px rgba(23,105,170,.18)}
#fooevents_seating_dialog .fe-visual-surface .fooevents_seating_chart_view_row span.fe-hidden-seat{visibility:hidden!important;pointer-events:none!important}
#fooevents_seating_dialog .fe-visual-surface .fooevents_seating_chart_view_row span.fe-hidden-seat-preview{visibility:visible!important;opacity:.32!important;outline:2px dashed #b45309!important;outline-offset:2px;cursor:pointer}
#fooevents_seating_dialog .fe-visual-inspector [data-seat-action]{display:block;width:100%;margin:0 0 7px;white-space:normal}
#fooevents_seating_dialog .fe-seat-state{padding:8px;background:#eef2f7;border-radius:5px;font-size:12px}
#fooevents_seating_dialog .fe-visual-surface .fooevents_seating_chart_view_row span{cursor:pointer}
#fooevents_seating_dialog .fe-customer-seat-hidden{visibility:hidden!important;pointer-events:none!important}

/* Customer-facing chart styles are intentionally global: FooEvents may render
   its selection dialog in different wrappers depending on theme/checkout mode. */
.fe-customer-map-viewport{max-width:100%;overflow:auto;max-height:70vh;overscroll-behavior:contain}
.seat_container.fe-customer-layout{position:relative!important;box-sizing:border-box;overflow:visible!important;max-height:none!important}
.seat_container.fe-customer-layout>.row_container{position:absolute!important;margin:0!important;z-index:4}
.seat_container.fe-customer-layout>.fe-customer-stage{position:absolute;z-index:3}
.seat_container.fe-customer-layout>.fe-customer-object{position:absolute;z-index:1}
.seat_container.fe-customer-layout .fooevents-seating-row-inverted{direction:rtl}
.seat_container.fe-customer-layout .fooevents-seating-row-inverted span{direction:ltr}
.fe-customer-seat-hidden{visibility:hidden!important;pointer-events:none!important}


/* Customer selection: keep the plan in a true in-page modal instead of
   allowing themes to render the dialog content inline below the product. */
.ui-widget-overlay {
  z-index: 100000 !important;
  background: rgba(0,0,0,.72) !important;
  opacity: 1 !important;
}
.ui-dialog[aria-describedby="fooevents_seating_dialog"] {
  position: fixed !important;
  z-index: 100001 !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(110.4vw, 1380px) !important;
  max-width: 98vw !important;
  max-height: 94vh !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  box-shadow: 0 18px 60px rgba(0,0,0,.38) !important;
}
.ui-dialog[aria-describedby="fooevents_seating_dialog"] .ui-dialog-content {
  max-height: calc(94vh - 76px) !important;
  overflow: auto !important;
  box-sizing: border-box !important;
}
#fooevents_seating_dialog .fe-customer-map-viewport {
  max-width: 100% !important;
  max-height: calc(94vh - 190px) !important;
  overflow: auto !important;
  overscroll-behavior: contain;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout {
  max-height: none !important;
  overflow: visible !important;
}
#fooevents_seating_dialog .fe-customer-stage,
#fooevents_seating_dialog .fe-customer-object {
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .ui-dialog[aria-describedby="fooevents_seating_dialog"] {
    width: 96vw !important;
    max-width: 96vw !important;
  }
  .ui-dialog[aria-describedby="fooevents_seating_dialog"] .ui-dialog-content {
    padding: 10px !important;
  }
}


/* Visual-editor V4: alignment controls sit vertically centred beside the map. */
#fooevents_seating_dialog .fe-visual-align-tools{
  flex:0 0 104px;
  width:104px;
  display:flex;
  flex-direction:column;
  align-self:stretch;
  justify-content:center;
  gap:8px;
  padding:10px 8px;
  box-sizing:border-box;
  background:#f8fafc;
  border:1px solid #d6dce5;
  border-radius:7px;
}
#fooevents_seating_dialog .fe-visual-align-tools strong{
  display:block;
  text-align:center;
  font-size:11px;
  letter-spacing:.04em;
  color:#344054;
  margin-bottom:3px;
}
#fooevents_seating_dialog .fe-visual-align-tools .button{
  width:100%;
  min-width:0;
  white-space:normal;
  line-height:1.25;
  padding:6px 4px;
  text-align:center;
}
/* Reverse actual seat order (N...3,2,1), not merely the text direction. */
#fooevents_seating_dialog .fe-visual-surface .fooevents_seating_chart_view_row.fooevents-seating-row-inverted,
.seat_container.fe-customer-layout .fooevents_seating_chart_view_row.fooevents-seating-row-inverted{
  display:flex!important;
  flex-direction:row-reverse!important;
  justify-content:flex-start!important;
  direction:ltr!important;
}
#fooevents_seating_dialog .fe-visual-surface .fooevents_seating_chart_view_row.fooevents-seating-row-inverted span,
.seat_container.fe-customer-layout .fooevents_seating_chart_view_row.fooevents-seating-row-inverted span{
  direction:ltr!important;
}
@media(max-width:850px){
  #fooevents_seating_dialog .fe-visual-workspace{display:flex;flex-wrap:wrap}
  #fooevents_seating_dialog .fe-visual-canvas{flex:1 1 100%;min-height:480px}
  #fooevents_seating_dialog .fe-visual-align-tools{flex:1 1 100%;width:100%;flex-direction:row;align-items:center;justify-content:center;flex-wrap:wrap}
  #fooevents_seating_dialog .fe-visual-align-tools strong{width:100%}
  #fooevents_seating_dialog .fe-visual-align-tools .button{width:auto;min-width:90px}
}


/* Visual-editor V5: large theatre plans with independently expandable workspace. */
#fooevents_seating_dialog .fe-canvas-size-control{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px;padding:3px 6px;border:1px solid #cbd3df;border-radius:6px;background:#fff}
#fooevents_seating_dialog .fe-canvas-size-control strong{font-size:11px;color:#344054;margin:0 3px}
#fooevents_seating_dialog .fe-canvas-size-control .fe-canvas-size-label{font-size:11px;font-weight:600;color:#344054;white-space:nowrap;padding:0 4px}
#fooevents_seating_dialog .fe-visual-canvas{min-width:0;min-height:560px;max-height:none;overscroll-behavior:contain}
#fooevents_seating_dialog.fe-visual-expanded{width:100%!important;max-width:none!important}
.ui-dialog.fe-visual-dialog-expanded{position:fixed!important;inset:8px!important;left:8px!important;top:8px!important;width:calc(100vw - 16px)!important;height:calc(100vh - 16px)!important;max-width:none!important;max-height:none!important;transform:none!important;margin:0!important;box-sizing:border-box!important}
.ui-dialog.fe-visual-dialog-expanded .ui-dialog-content{height:calc(100vh - 96px)!important;max-height:none!important;overflow:hidden!important;box-sizing:border-box!important}
#fooevents_seating_dialog.fe-visual-expanded .fe-visual-workspace{height:calc(100vh - 190px)!important;max-height:none!important;min-height:520px!important;align-items:stretch}
#fooevents_seating_dialog.fe-visual-expanded .fe-visual-canvas{height:100%!important;min-height:0!important;flex:1 1 auto;overflow:auto!important}
#fooevents_seating_dialog.fe-visual-expanded .fe-visual-inspector{max-height:100%!important}
#fooevents_seating_dialog.fe-visual-expanded .fe-visual-align-tools{align-self:stretch}
@media(max-width:850px){
  #fooevents_seating_dialog .fe-canvas-size-control{width:100%;justify-content:center}
  .ui-dialog.fe-visual-dialog-expanded{inset:4px!important;left:4px!important;top:4px!important;width:calc(100vw - 8px)!important;height:calc(100vh - 8px)!important}
  .ui-dialog.fe-visual-dialog-expanded .ui-dialog-content{height:calc(100vh - 82px)!important}
  #fooevents_seating_dialog.fe-visual-expanded .fe-visual-workspace{height:calc(100vh - 160px)!important}
}


/* V7: inactive localities use FooEvents' native Blocked visual state. */
#fooevents_seating_dialog .seat_container.fe-customer-layout > .row_container.unavailable_variation.fe-other-variation {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout > .row_container.fe-other-variation .fooevents_seating_chart_view_row span {
  cursor: not-allowed !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout > .row_container.fe-other-variation .fooevents_seating_chart_view_row span.fe-blocked {
  background-color: #E8DDCA !important;
}

/* Keep the row-level inversion visibly deterministic in the admin editor. */
#fooevents_seating_dialog .fe-visual-surface .fooevents_seating_chart_view_row.fooevents-seating-row-inverted {
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: flex-start !important;
  direction: ltr !important;
}
#fooevents_seating_dialog .fe-visual-surface .fooevents_seating_chart_view_row.fooevents-seating-row-inverted > span {
  direction: ltr !important;
}


/* -------------------------------------------------------------------------
   BRAVO PERO FELIZ — visual identity for the seating flow and editor.
   Palette from the supplied 2025 brand manual: orange #FB3000, navy #1E2136,
   electric blue #4838FF, lime #D5FF00 and cream #E8DDCA.
   ------------------------------------------------------------------------- */
:root {
  --bravo-orange: #FB3000;
  --bravo-navy: #1E2136;
  --bravo-blue: #4838FF;
  --bravo-lime: #D5FF00;
  --bravo-cream: #E8DDCA;
  --bravo-aqua: #D2FBF4;
}

/* Brand typography: Work Sans for headings, Glancyr for body copy.
   Fonts are referenced by family name; the plugin does not bundle or
   redistribute font files. */
.ui-dialog.fe-customer-seat-dialog,
#fooevents_seating_dialog,
#fooevents_seating_dialog .fe-visual-toolbar,
#fooevents_seating_dialog .fe-visual-inspector,
.fe-customer-map-viewport {
  font-family: "Glancyr", "Work Sans", Arial, sans-serif !important;
  color: var(--bravo-navy);
}
.ui-dialog.fe-customer-seat-dialog .ui-dialog-title,
#fooevents_seating_dialog .fe-visual-toolbar > strong,
#fooevents_seating_dialog .fe-visual-inspector h3,
#fooevents_seating_dialog .fe-visual-align-tools > strong {
  font-family: "Work Sans", Arial, sans-serif !important;
  font-weight: 700 !important;
}

/* Customer modal shell and the explanatory note beside its title. */
.ui-dialog.fe-customer-seat-dialog {
  border: 1px solid var(--bravo-navy) !important;
  border-top: 4px solid var(--bravo-orange) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: var(--bravo-cream) !important;
  box-shadow: 0 22px 70px rgba(30, 33, 54, .42) !important;
}
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 12px 16px !important;
  background: var(--bravo-navy) !important;
  border: 0 !important;
  border-bottom: 2px solid var(--bravo-orange) !important;
  color: #fff !important;
}
.ui-dialog.fe-customer-seat-dialog .ui-dialog-title {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 30% !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 16px !important;
  letter-spacing: .01em;
}
.ui-dialog.fe-customer-seat-dialog .fe-seat-locality-note {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--bravo-cream);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .01em;
}
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close {
  position: static !important;
  flex: 0 0 30px;
  width: 30px !important;
  height: 30px !important;
  margin: 0 0 0 auto !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #fff !important;
}
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close:hover,
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close:focus {
  border-color: var(--bravo-lime) !important;
  background: var(--bravo-lime) !important;
  color: var(--bravo-navy) !important;
}
.ui-dialog.fe-customer-seat-dialog .ui-dialog-content {
  padding: 16px !important;
  background: var(--bravo-cream) !important;
  color: var(--bravo-navy) !important;
}

/* Modal overlay uses the brand navy, not generic black. */
.ui-widget-overlay {
  background: rgba(30, 33, 54, .88) !important;
}

/* Seating legend and map paper. */
#fooevents_seating_dialog .fooevents_seating_chart_legend {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 7px 10px !important;
  margin: 0 0 14px !important;
  padding: 10px 13px !important;
  border: 1px solid rgba(30, 33, 54, .2) !important;
  border-left: 4px solid var(--bravo-orange) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: var(--bravo-navy) !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
}
#fooevents_seating_dialog .fooevents_seating_chart_legend div {
  flex: 0 0 11px;
  width: 11px !important;
  height: 11px !important;
  margin: 0 2px 0 0 !important;
  border-radius: 2px;
}
#fooevents_seating_dialog #fooevents_seating_available { background: var(--bravo-lime) !important; }
#fooevents_seating_dialog #fooevents_seating_unavailable { background: var(--bravo-navy) !important; }
#fooevents_seating_dialog #fooevents_seating_blocked {
  background: var(--bravo-cream) !important;
  border: 1px solid #b5ad9f;
}
#fooevents_seating_dialog #fooevents_seating_blocked:after { border-top-color: var(--bravo-orange) !important; }
#fooevents_seating_dialog #fooevents_seating_unavailable_selected { background: var(--bravo-blue) !important; }
#fooevents_seating_dialog #fooevents_seating_selected { background: var(--bravo-orange) !important; }
#fooevents_seating_dialog .fooevents_seating_chart_front {
  margin: 12px auto 18px !important;
  max-width: 420px;
  border: 1px solid var(--bravo-orange) !important;
  border-radius: 7px !important;
  background: var(--bravo-navy) !important;
  color: #fff !important;
  font-family: "Work Sans", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
}
#fooevents_seating_dialog .fe-customer-map-viewport {
  padding: 18px !important;
  border: 1px solid rgba(30, 33, 54, .18) !important;
  border-radius: 8px !important;
  background-color: #fffdf8 !important;
  background-image:
    linear-gradient(rgba(30, 33, 54, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 33, 54, .055) 1px, transparent 1px) !important;
  background-size: 26px 26px !important;
  box-shadow: inset 0 1px 4px rgba(30, 33, 54, .05);
}
#fooevents_seating_dialog .seat_container.fe-customer-layout {
  background: transparent !important;
}

/* Seat states use the brand palette while keeping FooEvents status classes. */
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.available {
  background-color: var(--bravo-lime) !important;
  color: var(--bravo-navy) !important;
  text-shadow: none !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.unavailable {
  background-color: #777b87 !important;
  color: #fff !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.fe-blocked {
  background-color: var(--bravo-cream) !important;
  color: var(--bravo-navy) !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.unavailable_selected {
  background-color: var(--bravo-blue) !important;
  color: #fff !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.selected {
  background-color: var(--bravo-orange) !important;
  color: #fff !important;
  outline: 2px solid var(--bravo-navy);
  outline-offset: 1px;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout > .row_container.unavailable_variation.fe-other-variation {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: none !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout > .row_container.fe-other-variation .fooevents_seating_chart_view_row span {
  cursor: not-allowed !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout > .row_container.fe-other-variation .fooevents_seating_chart_view_row span.fe-blocked {
  background-color: var(--bravo-cream) !important;
  color: var(--bravo-navy) !important;
}

/* Stage and map decorations receive brand framing without replacing custom
   colours, labels or positions chosen by the event organiser. */
#fooevents_seating_dialog .fe-customer-stage {
  border: 2px solid var(--bravo-orange) !important;
  color: var(--bravo-navy) !important;
  box-shadow: 0 4px 12px rgba(30, 33, 54, .12);
  font-family: "Work Sans", Arial, sans-serif !important;
  letter-spacing: .04em;
}
#fooevents_seating_dialog .fe-customer-object-zone {
  border-color: var(--bravo-orange) !important;
}
#fooevents_seating_dialog .fe-customer-object-aisle {
  border-color: var(--bravo-blue) !important;
}
#fooevents_seating_dialog .fe-customer-object-label {
  border-color: var(--bravo-navy) !important;
  color: var(--bravo-navy) !important;
}

/* Locality / row / seat selectors shown before opening the map. */
.single-product .variations_form .variations select,
.single-product .seating-class-row select,
.single-product .seating-class-seat select,
.seating-class-row select,
.seating-class-seat select {
  min-height: 44px !important;
  padding: 10px 40px 10px 14px !important;
  border: 1px solid var(--bravo-navy) !important;
  border-left: 4px solid var(--bravo-orange) !important;
  border-radius: 7px !important;
  background-color: #fff !important;
  color: var(--bravo-navy) !important;
  font-family: "Glancyr", "Work Sans", Arial, sans-serif !important;
  font-size: 14px !important;
  box-shadow: 0 2px 5px rgba(30, 33, 54, .06) !important;
}
.single-product .seating-class-row label,
.single-product .seating-class-seat label,
.seating-class-row label,
.seating-class-seat label {
  color: var(--bravo-navy) !important;
  font-family: "Work Sans", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.single-product .variations_form .variations select:focus,
.single-product .seating-class-row select:focus,
.single-product .seating-class-seat select:focus,
.seating-class-row select:focus,
.seating-class-seat select:focus {
  outline: 2px solid var(--bravo-blue) !important;
  outline-offset: 2px !important;
}
a.fooevents_seating_chart.button,
#fooevents_seating_select_seats,
.ui-dialog.fe-customer-seat-dialog .button {
  border: 1px solid var(--bravo-orange) !important;
  border-radius: 7px !important;
  background: var(--bravo-orange) !important;
  color: #fff !important;
  font-family: "Work Sans", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
  text-shadow: none !important;
  box-shadow: 0 3px 8px rgba(251, 48, 0, .18) !important;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
a.fooevents_seating_chart.button:hover,
#fooevents_seating_select_seats:hover,
.ui-dialog.fe-customer-seat-dialog .button:hover {
  border-color: var(--bravo-lime) !important;
  background: var(--bravo-lime) !important;
  color: var(--bravo-navy) !important;
  transform: translateY(-1px);
}
#fooevents_seating_select_seats:disabled,
#fooevents_seating_select_seats.disabled {
  opacity: .48 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Admin editor: toolbar, canvas, inspector and controls use the same identity. */
#fooevents_seating_dialog .fe-visual-toolbar {
  background: var(--bravo-navy) !important;
  border: 1px solid var(--bravo-navy) !important;
  border-top: 3px solid var(--bravo-orange) !important;
  border-radius: 8px !important;
  color: #fff !important;
}
#fooevents_seating_dialog .fe-visual-toolbar > strong,
#fooevents_seating_dialog .fe-visual-status,
#fooevents_seating_dialog .fe-canvas-size-control strong,
#fooevents_seating_dialog .fe-canvas-size-control .fe-canvas-size-label {
  color: #fff !important;
}
#fooevents_seating_dialog .fe-visual-status.is-error { color: #ffb4a5 !important; }
#fooevents_seating_dialog .fe-visual-toolbar .button,
#fooevents_seating_dialog .fe-visual-inspector .button,
#fooevents_seating_dialog .fe-visual-align-tools .button {
  min-height: 32px;
  border: 1px solid var(--bravo-blue) !important;
  border-radius: 6px !important;
  background: var(--bravo-blue) !important;
  color: #fff !important;
  font-family: "Work Sans", Arial, sans-serif !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
#fooevents_seating_dialog .fe-visual-toolbar .button:hover,
#fooevents_seating_dialog .fe-visual-inspector .button:hover,
#fooevents_seating_dialog .fe-visual-align-tools .button:hover {
  border-color: var(--bravo-lime) !important;
  background: var(--bravo-lime) !important;
  color: var(--bravo-navy) !important;
}
#fooevents_seating_dialog .fe-visual-toolbar .button-primary,
#fooevents_seating_dialog .fe-visual-inspector .button-primary {
  border-color: var(--bravo-orange) !important;
  background: var(--bravo-orange) !important;
  color: #fff !important;
}
#fooevents_seating_dialog .fe-canvas-size-control {
  border-color: rgba(255,255,255,.28) !important;
  background: rgba(255,255,255,.1) !important;
}
#fooevents_seating_dialog .fe-visual-canvas {
  border-color: rgba(30, 33, 54, .28) !important;
  border-radius: 8px !important;
  background-color: #fffdf8 !important;
  background-image:
    linear-gradient(rgba(30, 33, 54, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 33, 54, .07) 1px, transparent 1px) !important;
}
#fooevents_seating_dialog .fe-visual-inspector,
#fooevents_seating_dialog .fe-visual-align-tools {
  border-color: rgba(30, 33, 54, .22) !important;
  border-radius: 8px !important;
  background: var(--bravo-cream) !important;
  color: var(--bravo-navy) !important;
}
#fooevents_seating_dialog .fe-visual-inspector h3,
#fooevents_seating_dialog .fe-visual-align-tools > strong,
#fooevents_seating_dialog .fe-visual-inspector label {
  color: var(--bravo-navy) !important;
}
#fooevents_seating_dialog .fe-visual-inspector input[type=number],
#fooevents_seating_dialog .fe-visual-inspector input[type=text] {
  border: 1px solid rgba(30, 33, 54, .45) !important;
  border-radius: 5px !important;
  color: var(--bravo-navy) !important;
}
#fooevents_seating_dialog .fe-visual-surface .row_container.fe-selected,
#fooevents_seating_dialog .fe-visual-stage.fe-selected,
#fooevents_seating_dialog .fe-visual-object.fe-selected {
  outline-color: var(--bravo-orange) !important;
}
#fooevents_seating_dialog .fe-visual-object-zone {
  border-color: var(--bravo-orange) !important;
}
#fooevents_seating_dialog .fe-visual-object-aisle {
  border-color: var(--bravo-blue) !important;
}

@media (max-width: 760px), (pointer: coarse) {
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 7px 10px !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-title {
    max-width: calc(100% - 44px) !important;
    flex: 1 1 auto !important;
  }
  .ui-dialog.fe-customer-seat-dialog .fe-seat-locality-note {
    order: 3;
    flex: 1 1 100%;
    padding-right: 38px;
    font-size: 11px;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close {
    order: 2;
    position: absolute !important;
    right: 8px !important;
    top: 8px !important;
  }
}


/* V8 — small customer-dialog polish: centred close glyph, clearer hierarchy,
   breathing room between status legend and map, and a separated action footer. */
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar {
  min-height: 58px !important;
  box-sizing: border-box !important;
  padding: 14px 18px !important;
  gap: 18px !important;
}
.ui-dialog.fe-customer-seat-dialog .ui-dialog-title {
  flex: 0 0 auto !important;
  max-width: none !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}
.ui-dialog.fe-customer-seat-dialog .fe-seat-locality-note {
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
}
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 0 0 0 auto !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close > span,
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close .ui-button-icon,
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close .ui-button-icon-space {
  display: none !important;
}
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close::before {
  content: "×" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  color: currentColor !important;
  font-family: Arial, sans-serif !important;
  font-size: 25px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
}
.ui-dialog.fe-customer-seat-dialog .ui-dialog-content {
  padding: 18px 18px 30px !important;
}
#fooevents_seating_dialog .fooevents_seating_chart_legend {
  gap: 10px 14px !important;
  margin: 0 0 20px !important;
  padding: 13px 16px !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}
#fooevents_seating_dialog .fooevents_seating_chart_legend div {
  flex-basis: 13px !important;
  width: 13px !important;
  height: 13px !important;
  margin-right: 4px !important;
}
#fooevents_seating_dialog .fe-customer-map-viewport {
  margin-top: 4px !important;
}
#fooevents_seating_select_seats {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  margin: 20px 0 14px !important;
  padding: 12px 22px !important;
  box-sizing: border-box !important;
  line-height: 1.35 !important;
}
@media (max-width: 760px), (pointer: coarse) {
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar {
    min-height: 0 !important;
    padding: 13px 14px !important;
    gap: 9px 12px !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-title {
    font-size: 17px !important;
    white-space: normal !important;
  }
  .ui-dialog.fe-customer-seat-dialog .fe-seat-locality-note {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close {
    position: absolute !important;
    right: 9px !important;
    top: 9px !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-content {
    padding: 14px 14px 26px !important;
  }
  #fooevents_seating_dialog .fooevents_seating_chart_legend {
    gap: 9px 12px !important;
    padding: 12px !important;
    font-size: 12px !important;
    margin-bottom: 16px !important;
  }
  #fooevents_seating_select_seats {
    margin: 16px 0 12px !important;
    width: auto !important;
    max-width: 100% !important;
  }
}


/* V9 — precise close glyph alignment and Bravo brand stage treatment. */
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close {
  position: relative !important;
  display: block !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 0 0 0 auto !important;
  line-height: 0 !important;
  font-size: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close::before,
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: block !important;
  width: 14px !important;
  height: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: currentColor !important;
  transform-origin: center center !important;
  text-indent: 0 !important;
}
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}
.ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/* The stage is a fixed branded component in both editor and customer preview. */
#fooevents_seating_dialog .fe-visual-stage,
#fooevents_seating_dialog .fe-customer-stage {
  background: #1E2136 !important;
  border: 2px solid #FB3000 !important;
  color: #FFFFFF !important;
  font-family: "Work Sans", Arial, sans-serif !important;
  font-weight: 700 !important;
}
#fooevents_seating_dialog .fe-visual-stage > span {
  color: #FFFFFF !important;
}


/* V10 — row labels sit beside seat 1, following the real visual direction. */
#fooevents_seating_dialog .fe-visual-surface .row_container.fe-visual-row:not(.table):not(.table_new_row) > .fooevents_seating_chart_view_row_name,
#fooevents_seating_dialog .seat_container.fe-customer-layout > .row_container:not(.table):not(.table_new_row) > .fooevents_seating_chart_view_row_name {
  position: absolute !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  top: 50% !important;
  left: -28px !important;
  right: auto !important;
  width: auto !important;
  min-width: 20px !important;
  max-width: 70px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 2px !important;
  transform: translateY(-50%) !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-align: center !important;
  line-height: 1.2 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--bravo-navy, #1E2136) !important;
  z-index: 8 !important;
}
#fooevents_seating_dialog .fe-visual-surface .row_container.fe-visual-row-inverted:not(.table):not(.table_new_row) > .fooevents_seating_chart_view_row_name,
#fooevents_seating_dialog .seat_container.fe-customer-layout > .row_container.fe-customer-row-inverted:not(.table):not(.table_new_row) > .fooevents_seating_chart_view_row_name {
  left: auto !important;
  right: -28px !important;
}

/* V10 — compact, branded zoom controls for buyers. */
.fe-customer-zoom-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
  padding: 9px 12px !important;
  border: 1px solid rgba(30, 33, 54, .24) !important;
  border-left: 4px solid var(--bravo-orange, #FB3000) !important;
  border-radius: 7px !important;
  background: var(--bravo-navy, #1E2136) !important;
  color: #fff !important;
  box-sizing: border-box !important;
}
.fe-customer-zoom-title {
  margin-right: auto !important;
  color: #fff !important;
  font-family: "Work Sans", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.fe-customer-zoom-value {
  min-width: 52px !important;
  text-align: center !important;
  color: var(--bravo-lime, #D5FF00) !important;
  font-family: "Work Sans", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
}
.fe-customer-zoom-toolbar .fe-customer-zoom-button,
.fe-customer-zoom-toolbar .fe-customer-zoom-reset {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 5px 10px !important;
  border: 1px solid var(--bravo-orange, #FB3000) !important;
  border-radius: 6px !important;
  background: var(--bravo-orange, #FB3000) !important;
  color: #fff !important;
  font-family: "Work Sans", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-shadow: none !important;
  cursor: pointer !important;
}
.fe-customer-zoom-toolbar .fe-customer-zoom-reset {
  padding: 5px 12px !important;
  background: var(--bravo-blue, #4838FF) !important;
  border-color: var(--bravo-blue, #4838FF) !important;
  font-size: 12px !important;
}
.fe-customer-zoom-toolbar button:hover:not(:disabled) {
  background: var(--bravo-lime, #D5FF00) !important;
  border-color: var(--bravo-lime, #D5FF00) !important;
  color: var(--bravo-navy, #1E2136) !important;
}
.fe-customer-zoom-toolbar button:disabled {
  opacity: .4 !important;
  cursor: not-allowed !important;
}
.fe-customer-map-zoom-stage {
  position: relative;
  display: block;
  min-width: 1px;
  min-height: 1px;
}
@media (max-width: 600px) {
  .fe-customer-zoom-toolbar {
    justify-content: center !important;
  }
  .fe-customer-zoom-title {
    flex: 1 1 100%;
    text-align: left;
  }
  #fooevents_seating_dialog .seat_container.fe-customer-layout > .row_container:not(.table):not(.table_new_row) > .fooevents_seating_chart_view_row_name {
    left: -24px !important;
    font-size: 12px !important;
  }
  #fooevents_seating_dialog .seat_container.fe-customer-layout > .row_container.fe-customer-row-inverted:not(.table):not(.table_new_row) > .fooevents_seating_chart_view_row_name {
    left: auto !important;
    right: -24px !important;
  }
}


/* V11 — multi-row selection, group dragging and precise row spacing. */
#fooevents_seating_dialog .fe-visual-surface .row_container.fe-group-selected {
  outline: 2px solid #FB3000 !important;
  outline-offset: 5px !important;
  box-shadow: 0 0 0 3px rgba(251, 48, 0, .12) !important;
}
#fooevents_seating_dialog .fe-row-gap-control {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(30, 33, 54, .22);
  border-radius: 7px;
  background: #fff;
}
#fooevents_seating_dialog .fe-row-gap-control label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #1E2136;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
#fooevents_seating_dialog .fe-row-gap-input {
  width: 62px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 3px 5px !important;
  border: 1px solid #c8cbd4 !important;
  border-radius: 5px !important;
  color: #1E2136 !important;
  font-weight: 600;
}
#fooevents_seating_dialog .fe-row-gap-control.is-disabled {
  opacity: .58;
}
#fooevents_seating_dialog .fe-visual-toolbar [data-fe-action="distribute-rows"]:disabled {
  opacity: .45;
  cursor: not-allowed;
}
#fooevents_seating_dialog .fe-visual-toolbar [data-fe-action="multi-select-rows"].button-primary {
  background: #1E2136 !important;
  border-color: #FB3000 !important;
  color: #fff !important;
}
@media (max-width: 850px) {
  #fooevents_seating_dialog .fe-row-gap-control {
    flex: 1 1 100%;
    justify-content: center;
  }
}


/* V13 — buyer map fit, white canvas, full-width confirmation and mouse-wheel scroll. */
#fooevents_seating_dialog .fe-customer-map-viewport {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  overscroll-behavior: contain !important;
  scroll-behavior: auto !important;
  touch-action: pan-x pan-y !important;
}
#fooevents_seating_dialog .fe-customer-map-zoom-stage {
  box-sizing: content-box !important;
}
#fooevents_seating_dialog #fooevents_seating_select_seats {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 100% !important;
  flex: 0 0 100% !important;
  box-sizing: border-box !important;
  margin: 16px 0 18px !important;
}
@media (max-width: 760px), (pointer: coarse) {
  #fooevents_seating_dialog #fooevents_seating_select_seats {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 14px 0 16px !important;
  }
}


/* V15 — reservation timer, clearer temporary hold explanation, and one modal scrollbar. */
#fooevents_seating_dialog .fooevents_seating_chart_legend {
  min-height: 53px !important;
  padding: 13px 17px !important;
  gap: 8px 13px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}
#fooevents_seating_dialog .fe-temporary-block-legend {
  display: inline-block;
  flex: 0 1 auto;
  max-width: 100%;
  color: #1E2136 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}
#fooevents_seating_dialog .fe-customer-reservation-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 0 0 10px !important;
  padding: 10px 16px !important;
  box-sizing: border-box !important;
  border: 1px solid #FB3000 !important;
  border-left: 4px solid #FB3000 !important;
  border-radius: 4px !important;
  background: #1E2136 !important;
  color: #FB3000 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
  line-height: 1.25 !important;
}
#fooevents_seating_dialog .fe-customer-reservation-timer-label {
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
#fooevents_seating_dialog .fe-customer-reservation-timer-value {
  color: #FB3000 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#fooevents_seating_dialog .fe-customer-reservation-timer.is-expired {
  background: #1E2136 !important;
  border-color: #FB3000 !important;
}

/* The dialog content is the only scroll container. The white map viewport
   grows with its content and no longer shows an independent scrollbar. */
.ui-dialog.fe-customer-seat-dialog .ui-dialog-content {
  overflow-x: auto !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable;
}
#fooevents_seating_dialog .fe-customer-map-viewport {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  overscroll-behavior: auto !important;
  scrollbar-width: none !important;
}
#fooevents_seating_dialog .fe-customer-map-viewport::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
#fooevents_seating_dialog .fe-customer-map-zoom-stage {
  position: relative !important;
}
@media (max-width: 760px), (pointer: coarse) {
  #fooevents_seating_dialog .fe-temporary-block-legend {
    flex: 1 1 100%;
  }
  #fooevents_seating_dialog .fe-customer-reservation-timer {
    min-height: 46px;
    gap: 8px;
    padding: 9px 11px !important;
  }
  #fooevents_seating_dialog .fe-customer-reservation-timer-label {
    font-size: 11px !important;
  }
  #fooevents_seating_dialog .fe-customer-reservation-timer-value {
    font-size: 17px !important;
  }
}

/* V16 — distinguish completed sales from temporary cart holds, while keeping
   other localities visibly locked without hiding their underlying seat state. */
#fooevents_seating_dialog #fooevents_seating_unavailable {
  background: #1E2136 !important;
  border: 1px solid #1E2136 !important;
}
#fooevents_seating_dialog #fooevents_seating_temporary {
  display: inline-block !important;
  flex: 0 0 11px !important;
  width: 11px !important;
  height: 11px !important;
  margin: 0 2px 0 12px !important;
  border: 1px solid #9EA2AD !important;
  border-radius: 2px !important;
  background: #B8BAC2 !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.unavailable {
  background-color: #1E2136 !important;
  color: #FFFFFF !important;
  background-image: none !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.fe-temporary {
  background-color: #B8BAC2 !important;
  color: #1E2136 !important;
  background-image: none !important;
  cursor: not-allowed !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.fe-other-variation-seat {
  position: relative !important;
  display: inline-block !important;
  background-image: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.fe-other-variation-seat.fe-preview-available {
  background-color: rgba(213, 255, 0, .42) !important;
  color: #1E2136 !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.fe-other-variation-seat.fe-preview-temporary {
  background-color: #B8BAC2 !important;
  color: #1E2136 !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.fe-other-variation-seat.fe-preview-purchased {
  background-color: #1E2136 !important;
  color: #FFFFFF !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.fe-other-variation-seat.fe-preview-manually-blocked {
  background-color: #E8DDCA !important;
  color: #1E2136 !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.fe-other-variation-seat::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 5 !important;
  display: block !important;
  pointer-events: none !important;
  background: linear-gradient(135deg, transparent 42%, #FB3000 46%, #FB3000 53%, transparent 57%) !important;
}


/* V18 — Other localities keep their real status colour. They remain
   non-selectable because they do not have FooEvents' .available class. */
#fooevents_seating_dialog .seat_container.fe-customer-layout > .row_container.unavailable_variation.fe-other-variation {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout > .row_container.fe-other-variation .fooevents_seating_chart_view_row,
#fooevents_seating_dialog .seat_container.fe-customer-layout > .row_container.fe-other-variation .fooevents_seating_chart_view_row span.fe-other-variation-seat {
  pointer-events: auto !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.fe-other-variation-seat {
  position: relative !important;
  display: inline-block !important;
  background-image: none !important;
  cursor: help !important;
  pointer-events: auto !important;
}
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.fe-other-variation-seat::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
#fe-seat-locality-tooltip {
  position: fixed !important;
  z-index: 1000005 !important;
  display: none;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 13px;
  border: 1px solid #FB3000;
  border-radius: 7px;
  background: #1E2136;
  color: #FFFFFF;
  box-shadow: 0 6px 22px rgba(0,0,0,.24);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  pointer-events: none !important;
  white-space: pre-line;
}

/* V19 — stable customer zoom: keep the scaled map inside an expanding white canvas. */
#fooevents_seating_dialog .fe-customer-map-viewport {
  display: block !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  max-width: none !important;
  max-height: none !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}
#fooevents_seating_dialog .fe-customer-map-zoom-stage {
  position: relative !important;
  display: block !important;
  flex: 0 0 auto !important;
  box-sizing: content-box !important;
  overflow: visible !important;
}
#fooevents_seating_dialog .fe-customer-map-zoom-stage > .seat_container.fe-customer-layout {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  transform-origin: top left !important;
  max-width: none !important;
  max-height: none !important;
}


/* ========================================================================
   V22 — responsive customer seating dialog (mobile, tablet and laptop).
   These rules change only the presentation shell and responsive zoom. The
   FooEvents seat nodes, row coordinates, seat names and click handlers stay
   untouched.
   ======================================================================== */

/* Phones: dialog becomes a near-full-screen sheet with a non-overlapping
   two-line title bar, compact controls and a map that auto-fits its width. */
@media (max-width: 760px), (pointer: coarse) {
  .ui-dialog.fe-customer-seat-dialog,
  .ui-dialog[aria-describedby="fooevents_seating_dialog"] {
    position: fixed !important;
    top: max(6px, env(safe-area-inset-top)) !important;
    left: 6px !important;
    right: 6px !important;
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
    /* jQuery UI owns wrapper visibility. Never force display on this element. */
    overflow: hidden !important;
    border-radius: 8px !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar {
    display: grid !important;
    flex: 0 0 auto !important;
    grid-template-columns: minmax(0, 1fr) 36px !important;
    grid-template-areas: "title close" "note note" !important;
    align-items: start !important;
    gap: 7px 8px !important;
    min-height: 0 !important;
    padding: 10px 12px 11px !important;
    box-sizing: border-box !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-title {
    grid-area: title !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
  }
  .ui-dialog.fe-customer-seat-dialog .fe-seat-locality-note {
    grid-area: note !important;
    display: block !important;
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #E8DDCA !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close {
    grid-area: close !important;
    position: relative !important;
    justify-self: end !important;
    align-self: start !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-content {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: calc(100dvh - 118px) !important;
    max-height: calc(100dvh - 118px) !important;
    margin: 0 !important;
    padding: 9px 10px 14px !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-gutter: auto !important;
  }
  #fooevents_seating_dialog {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #fooevents_seating_dialog .fooevents_seating_chart_legend {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 7px 9px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 0 10px !important;
    padding: 10px 10px !important;
    box-sizing: border-box !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
  }
  #fooevents_seating_dialog .fooevents_seating_chart_legend > div {
    flex: 0 0 10px !important;
    width: 10px !important;
    height: 10px !important;
    margin: 0 1px 0 0 !important;
  }
  #fooevents_seating_dialog .fe-temporary-block-legend {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
  }
  #fooevents_seating_dialog .fe-customer-reservation-timer {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 5px 9px !important;
    min-height: 42px !important;
    margin: 0 0 8px !important;
    padding: 8px 9px !important;
  }
  #fooevents_seating_dialog .fe-customer-reservation-timer-label {
    flex: 1 1 180px !important;
    font-size: 10px !important;
    text-align: center !important;
  }
  #fooevents_seating_dialog .fe-customer-reservation-timer-value {
    font-size: 17px !important;
  }
  #fooevents_seating_dialog .fe-customer-zoom-toolbar {
    display: grid !important;
    grid-template-columns: 42px minmax(34px, 1fr) 42px minmax(88px, auto) !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 8px !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }
  #fooevents_seating_dialog .fe-customer-zoom-title {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
  #fooevents_seating_dialog .fe-customer-zoom-button,
  #fooevents_seating_dialog .fe-customer-zoom-reset {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 6px 7px !important;
    box-sizing: border-box !important;
  }
  #fooevents_seating_dialog .fe-customer-zoom-value {
    min-width: 0 !important;
    font-size: 12px !important;
  }
  #fooevents_seating_dialog .fe-customer-zoom-reset {
    white-space: nowrap !important;
    font-size: 10px !important;
  }
  #fooevents_seating_dialog .fe-customer-map-viewport {
    display: block !important;
    width: 100%;
    max-width: none !important;
    min-width: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 7px !important;
    box-sizing: border-box !important;
    border-radius: 6px !important;
    overflow: visible !important;
    background: #fff !important;
    background-image: none !important;
    touch-action: pan-x pan-y !important;
  }
  #fooevents_seating_dialog .fe-customer-map-zoom-stage {
    max-width: none !important;
    margin-right: 0 !important;
  }
  #fooevents_seating_dialog #fooevents_seating_select_seats {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 12px 0 10px !important;
  }
}

/* Landscape phones: preserve the same full-width sheet while reserving enough
   vertical room for the seat map and the confirmation button. */
@media (max-width: 760px) and (orientation: landscape), (pointer: coarse) and (orientation: landscape) {
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-content {
    height: calc(100dvh - 92px) !important;
    max-height: calc(100dvh - 92px) !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar {
    grid-template-columns: minmax(0, 1fr) 32px !important;
    gap: 4px 8px !important;
    padding: 7px 10px !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-title {
    font-size: 14px !important;
  }
  .ui-dialog.fe-customer-seat-dialog .fe-seat-locality-note {
    font-size: 10px !important;
  }
  #fooevents_seating_dialog .fooevents_seating_chart_legend {
    padding: 7px 9px !important;
    margin-bottom: 7px !important;
  }
  #fooevents_seating_dialog .fe-customer-reservation-timer {
    min-height: 36px !important;
    margin-bottom: 6px !important;
    padding: 5px 8px !important;
  }
}


/* V28 — mobile titlebar spacing. Desktop rules remain unchanged. */
@media (max-width: 760px), (pointer: coarse) {
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar {
    position: relative !important;
    display: block !important;
    height: auto !important;
    min-height: 82px !important;
    padding: 11px 58px 13px 13px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-title {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 7px 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }
  .ui-dialog.fe-customer-seat-dialog .fe-seat-locality-note {
    position: static !important;
    float: none !important;
    display: block !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar-close {
    position: absolute !important;
    top: 9px !important;
    right: 9px !important;
    left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    z-index: 5 !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-content {
    height: calc(100dvh - 150px) !important;
    max-height: calc(100dvh - 150px) !important;
    min-height: 0 !important;
  }
}

@media (max-width: 760px) and (orientation: landscape), (pointer: coarse) and (orientation: landscape) {
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-titlebar {
    min-height: 68px !important;
    padding-top: 8px !important;
    padding-bottom: 9px !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-content {
    height: calc(100dvh - 126px) !important;
    max-height: calc(100dvh - 126px) !important;
  }
}

#fe-seat-locality-tooltip .fe-locality-tooltip-price {
  display: block;
  margin-top: 5px;
  color: #D5FF00;
  font-size: 13px;
  font-weight: 700;
}


/* V29 — mobile zoom containment.
   The viewport width must follow the same calculated footprint as the scaled
   map stage. Earlier width:100% !important rules kept the white surface narrow
   while the map grew, making seats spill outside the canvas on phone zoom. */
@media (max-width: 760px), (pointer: coarse) {
  #fooevents_seating_dialog .fe-customer-map-viewport {
    width: var(--fe-customer-map-canvas-width, 100%) !important;
    min-width: var(--fe-customer-map-canvas-width, 100%) !important;
    max-width: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
  }
  #fooevents_seating_dialog .fe-customer-map-zoom-stage {
    width: auto;
    max-width: none !important;
    flex: 0 0 auto !important;
  }
  .ui-dialog.fe-customer-seat-dialog .ui-dialog-content {
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}


/* V30 — dark green for available seats in other localities (still non-selectable). */
#fooevents_seating_dialog .seat_container.fe-customer-layout .fooevents_seating_chart_view_row span.fe-other-variation-seat.fe-preview-available {
  background-color: #247F6B !important;
  color: #FFFFFF !important;
}

/* V30 — fixed mobile map window; the enlarged drawing scrolls inside the white area.
   Header, timer, zoom bar and confirmation button stay outside the zoomed layer. */
@media (max-width: 760px), (pointer: coarse) {
  #fooevents_seating_dialog .fe-customer-map-viewport {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: clamp(210px, 52dvh, 500px) !important;
    min-height: 210px !important;
    max-height: 52dvh !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    position: relative !important;
    box-sizing: border-box !important;
    padding: 7px !important;
    background: #FFFFFF !important;
    background-image: none !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: auto !important;
    touch-action: pan-x pan-y !important;
    scrollbar-width: none !important;
  }
  #fooevents_seating_dialog .fe-customer-map-viewport::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  #fooevents_seating_dialog .fe-customer-map-zoom-stage {
    position: relative !important;
    display: block !important;
    width: var(--fe-customer-map-scaled-width, auto) !important;
    height: var(--fe-customer-map-scaled-height, auto) !important;
    min-width: var(--fe-customer-map-scaled-width, 0) !important;
    min-height: var(--fe-customer-map-scaled-height, 0) !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
  }
  #fooevents_seating_dialog .fe-customer-map-viewport > .fe-customer-map-zoom-stage {
    transform: none !important;
  }
}

@media (max-width: 760px) and (orientation: landscape), (pointer: coarse) and (orientation: landscape) {
  #fooevents_seating_dialog .fe-customer-map-viewport {
    height: clamp(170px, 48dvh, 360px) !important;
    max-height: 48dvh !important;
  }
}


/* V31 — mobile map centering, bounded zoom controls and locality legend. */
#fooevents_seating_dialog #fooevents_seating_other_locality {
  background: #247F6B !important;
  border: 1px solid #1E2136 !important;
}
@media (max-width: 760px), (pointer: coarse) {
  #fooevents_seating_dialog .fe-customer-map-viewport {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: auto !important;
    box-sizing: border-box !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
  }
  #fooevents_seating_dialog .fe-customer-map-zoom-stage {
    flex: 0 0 auto !important;
    max-width: none !important;
  }
}


/* V33 width-only adjustment — align the mobile white map viewport with the
   rendered zoom toolbar width. Seat scaling, map height and interactions stay
   controlled by the V33 JavaScript. */
@media (max-width: 760px), (pointer: coarse) {
  #fooevents_seating_dialog .fe-customer-map-viewport {
    width: var(--fe-customer-map-canvas-width, 100%) !important;
    min-width: var(--fe-customer-map-canvas-width, 100%) !important;
    max-width: var(--fe-customer-map-canvas-width, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}


/* V34 — same bounded map frame on desktop, tablet and mobile. The white
   viewport matches the zoom toolbar; enlarged content scrolls inside it. */
#fooevents_seating_dialog .fe-customer-zoom-toolbar {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
#fooevents_seating_dialog .fe-customer-map-viewport {
  display: block !important;
  width: var(--fe-customer-map-canvas-width, 100%) !important;
  min-width: var(--fe-customer-map-canvas-width, 100%) !important;
  max-width: var(--fe-customer-map-canvas-width, 100%) !important;
  height: clamp(240px, 52vh, 560px) !important;
  min-height: 220px !important;
  max-height: 65vh !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 7px !important;
  box-sizing: border-box !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  background: #FFFFFF !important;
  background-image: none !important;
  cursor: grab !important;
  scrollbar-gutter: stable;
}
#fooevents_seating_dialog .fe-customer-map-zoom-stage {
  flex: 0 0 auto !important;
  max-width: none !important;
  overflow: visible !important;
}
#fooevents_seating_dialog .fe-customer-map-viewport.fe-customer-map-panning {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
#fooevents_seating_dialog .fe-customer-map-viewport.fe-customer-map-panning * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
@media (max-width: 760px), (pointer: coarse) {
  #fooevents_seating_dialog .fe-customer-map-viewport {
    height: clamp(210px, 52dvh, 500px) !important;
    min-height: 210px !important;
    max-height: 52dvh !important;
    touch-action: pan-x pan-y !important;
  }
}
@media (max-width: 760px) and (orientation: landscape), (pointer: coarse) and (orientation: landscape) {
  #fooevents_seating_dialog .fe-customer-map-viewport {
    height: clamp(170px, 48dvh, 360px) !important;
    max-height: 48dvh !important;
  }
}


/* V35 — compact mobile map frame. At the default zoom, the white panel follows
   the rendered map height with a small bottom margin instead of leaving a tall
   empty area. When zoomed in, the existing capped viewport remains scrollable. */
@media (max-width: 760px), (pointer: coarse) {
  #fooevents_seating_dialog .fe-customer-map-viewport {
    height: var(--fe-customer-map-viewport-height, clamp(210px, 52dvh, 500px)) !important;
  }
}
@media (max-width: 760px) and (orientation: landscape), (pointer: coarse) and (orientation: landscape) {
  #fooevents_seating_dialog .fe-customer-map-viewport {
    height: var(--fe-customer-map-viewport-height, clamp(210px, 48dvh, 360px)) !important;
  }
}


/* V36 — avoid a stale first tap before the live availability snapshot returns. */
#fooevents_seating_dialog.fe-live-status-loading .fooevents_seating_chart_view_row span {
  pointer-events: none !important;
}
