.wcet-seat-map {
  --wcet-seat-size: 28px;
  font-family: system-ui, -apple-system, sans-serif;
  color: #e2e8f0;
  background: #0f172a;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #1e293b;
  max-width: 100%;
  box-sizing: border-box;
}
.wcet-seat-map *, .wcet-seat-map *::before, .wcet-seat-map *::after { box-sizing: border-box; }
.wcet-seat-toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.wcet-mode-btn {
  background: #1e293b; border: 1px solid #334155; color: #94a3b8;
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.wcet-mode-btn.is-active { background: #2563eb; color: #fff; border-color: #2563eb; }
.wcet-seat-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 960px) {
  .wcet-seat-layout { grid-template-columns: 1fr; }
}
.wcet-seat-side {
  background: #1e293b;
  border-radius: 12px;
  padding: 14px;
  position: sticky;
  top: 12px;
}
.wcet-range-label {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #94a3b8; margin-top: 8px;
}
.wcet-brush-panel input[type=range] {
  width: 100%; accent-color: #2563eb; margin: 4px 0 8px;
}
.wcet-brush, .wcet-checkout-btn {
  display: block; width: 100%; margin: 4px 0; padding: 8px 10px;
  border-radius: 8px; border: 1px solid #334155; background: #0f172a;
  color: #cbd5e1; cursor: pointer; text-align: left; font-size: 12px;
}
.wcet-brush.is-active { outline: 2px solid #3b82f6; background: rgba(37,99,235,.2); }
.wcet-checkout-btn {
  background: #2563eb; color: #fff; text-align: center; font-weight: 600; margin-top: 12px;
}
.wcet-checkout-btn:disabled { opacity: .5; cursor: wait; }
.wcet-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: #94a3b8; margin: 10px 0 4px;
}
.wcet-seat-side input[type=text],
.wcet-seat-side input[type=email] {
  width: 100%; margin: 4px 0; padding: 8px 10px; border-radius: 6px;
  border: 1px solid #334155; background: #0f172a; color: #fff; font-size: 14px;
}
.wcet-stats {
  font-size: 12px; color: #94a3b8; margin-top: 12px;
  display: grid; gap: 4px; border-top: 1px solid #334155; padding-top: 10px;
}
.wcet-grid-panel {
  background: #1e293b;
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  max-height: min(75vh, 720px);
}
.wcet-stage {
  flex: 0 0 auto;
  text-align: center;
  background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 3px;
  color: #cbd5e1;
  border: 1px solid #475569;
}
.wcet-grid-scroll {
  flex: 1 1 auto;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  padding: 8px;
  min-height: 320px;
  max-height: 100%;
}
.wcet-grid {
  display: grid;
  gap: 3px;
  width: max-content;
  min-width: 100%;
}
.wcet-hdr {
  width: 28px;
  height: 28px;
  font-size: 9px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.wcet-hdr.row { font-weight: 700; color: #94a3b8; width: 32px; }
.wcet-cell {
  width: var(--wcet-seat-size, 28px) !important;
  height: var(--wcet-seat-size, 28px) !important;
  min-width: var(--wcet-seat-size, 28px);
  min-height: var(--wcet-seat-size, 28px);
  max-width: var(--wcet-seat-size, 28px);
  max-height: var(--wcet-seat-size, 28px);
  border-radius: 5px;
  font-size: 7px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  color: #e0f2fe;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transform: none !important;
  /* Single blue color for all sellable zones */
  background: rgba(37, 99, 235, 0.32);
  border-color: #3b82f6;
}
.wcet-cell:hover:not(.is-sold):not(.zone-aisle) {
  z-index: 2;
  filter: brightness(1.15);
}
.wcet-cell.zone-aisle {
  background: #0f172a !important;
  border-color: #1e293b !important;
  cursor: default;
  color: transparent;
}
.wcet-cell.is-selected {
  background: #1d4ed8 !important;
  border-color: #93c5fd !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.55);
  color: #fff;
  z-index: 3;
}
.wcet-cell.is-sold {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
  opacity: .75;
  text-decoration: line-through;
}
.wcet-selected-list {
  font-size: 12px; margin-top: 8px; max-height: 140px; overflow: auto;
  border: 1px solid #334155; border-radius: 6px; padding: 6px;
}
.wcet-msg { font-size: 12px; margin-top: 8px; color: #93c5fd; min-height: 1.2em; }
.wcet-msg.is-error { color: #fb7185; }
.wcet-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #9f1239; color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 13px; z-index: 99999; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  display: none;
}
.wcet-toast.is-on { display: block; }

.wcet-hint{font-size:11px;color:#64748b;line-height:1.4;margin:4px 0 8px;}

#wcet_renumber, #wcet_fill_zone, #wcet_save_map {
  cursor: pointer !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  user-select: none;
}
#wcet_renumber:active, #wcet_fill_zone:active, #wcet_save_map:active {
  transform: scale(0.98);
  filter: brightness(0.92);
}
