.wcst-seat-map-section {
  --wcst-seat-size-base: 28px;
  --wcst-seat-size: var(--wcst-seat-size-base);
  --wcst-map-max-width: 100%;
  width: 100%;
  clear: both;
  float: none;
  display: block !important;
  margin: 20px 0 !important;
  padding: 0;
  position: relative !important;
  isolation: isolate;
  z-index: 1;
  max-width: 100%;
}

.wcst-seat-map-section.wcst-display-modal {
  display: none !important;
}

.single-product div.product .wcst-seat-map-section {
  flex: 0 0 100%;
}

.wcst-seat-map-section * {
  box-sizing: border-box;
}

.wcst-seat-map {
  margin: 0;
  width: 100%;
}

.wcst-map-card {
  --wcst-available: #7edc72;
  --wcst-selected: #f7c600;
  --wcst-sold: #b8bec7;
  --wcst-blocked: #cdcdcd;
  --wcst-seat-text: #111;
  background: #f9f9f9;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  padding: 14px;
  width: 100%;
  max-width: var(--wcst-map-max-width, 100%);
  margin: 0 auto;
  overflow: visible;
}

.wcst-seat-map-section.wcst-display-modal .wcst-map-card,
.wcst-modal-dialog .wcst-seat-map,
.wcst-modal-dialog .wcst-map-card {
  --wcst-seat-size-base: var(--wcst-seat-size-base, 28px);
}

.wcst-map-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  color: #2f1a8a;
  text-align: center;
}

.wcst-map-subtitle {
  margin: 6px 0 10px;
  text-align: center;
  font-size: 17px;
  color: #2a2a2a;
}

.wcst-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.wcst-map-zoom-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
}

.wcst-zoom-btn {
  border: 1px solid #c6c6c6;
  border-radius: 999px;
  background: #fff;
  color: #1e1e1e;
  min-height: 34px;
  min-width: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.wcst-modal-dialog .wcst-zoom-btn,
.wcst-modal-dialog .wcst-zoom-btn span,
.wcst-modal-dialog .wcst-modal-close,
.wcst-modal-dialog .wcst-modal-close span,
.wcst-modal-dialog .wcst-btn,
.wcst-modal-dialog .wcst-btn span {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  text-shadow: none !important;
}

.wcst-modal-dialog .wcst-zoom-btn:hover,
.wcst-modal-dialog .wcst-zoom-btn:focus,
.wcst-modal-dialog .wcst-zoom-btn:active,
.wcst-modal-dialog .wcst-modal-close:hover,
.wcst-modal-dialog .wcst-modal-close:focus,
.wcst-modal-dialog .wcst-modal-close:active,
.wcst-modal-dialog .wcst-btn:hover,
.wcst-modal-dialog .wcst-btn:focus,
.wcst-modal-dialog .wcst-btn:active {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

.wcst-zoom-btn.is-active {
  border-color: #111;
}

.wcst-map-canvas {
  overflow: hidden;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  background: #fff;
  direction: ltr;
}

.wcst-map-canvas.wcst-map-canvas-zoomed {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
}

.wcst-map-canvas-inner {
  width: max-content;
  min-width: 100%;
  margin-inline: auto;
  padding: 10px;
  direction: ltr;
}

.wcst-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ececec;
  color: #222;
  border: 1px solid #dadada;
}

.wcst-legend .lg .lg-marker {
  width: 22px;
  height: 18px;
  min-width: 22px;
  min-height: 18px;
  border-radius: 6px 6px 5px 5px;
  background: #999;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.22);
}

.wcst-legend .available .lg-marker {
  background: var(--wcst-available);
  color: #111;
  border-color: #529a49;
}

.wcst-legend .selected .lg-marker {
  background: var(--wcst-selected);
  color: #111;
  border-color: #8e7200;
}

.wcst-legend .sold .lg-marker {
  background: var(--wcst-sold);
  color: #111;
  border-color: #8d949f;
}

.wcst-legend .blocked .lg-marker {
  background: var(--wcst-blocked);
  border-color: #969696;
  color: #666;
}

.wcst-legend .accessible .lg-marker {
  background: var(--wcst-available);
  color: #111;
  border-color: #529a49;
}

.wcst-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 980px;
  direction: ltr;
}

.wcst-row {
  display: grid;
  grid-template-columns: 32px max-content 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  direction: ltr;
}

.wcst-row-axis {
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  color: #2f2f2f;
  white-space: nowrap;
  text-align: center;
}

.wcst-row-axis-left {
  text-align: center;
}

.wcst-row-axis-right {
  text-align: center;
  opacity: 0.8;
}

.wcst-row-seats {
  display: flex;
  justify-content: flex-start !important;
  flex-wrap: nowrap;
  gap: var(--wcst-seat-gap, 7px);
  direction: ltr;
  width: auto;
}

.wcst-seat,
.wcst-seat-gap {
  width: var(--wcst-seat-size) !important;
  height: var(--wcst-seat-size) !important;
  min-width: var(--wcst-seat-size) !important;
  min-height: var(--wcst-seat-size) !important;
}

.wcst-seat {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid #529a49 !important;
  border-radius: clamp(2px, calc(var(--wcst-seat-size) * 0.18), 8px) clamp(2px, calc(var(--wcst-seat-size) * 0.18), 8px) clamp(1px, calc(var(--wcst-seat-size) * 0.1), 5px) clamp(1px, calc(var(--wcst-seat-size) * 0.1), 5px) !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: clamp(3px, calc(var(--wcst-seat-size) * 0.34), 13px) !important;
  font-weight: 700 !important;
  color: var(--wcst-seat-text) !important;
  background: var(--wcst-available) !important;
  cursor: pointer !important;
  box-shadow: inset 0 calc(var(--wcst-seat-size) * 0.2) 0 rgba(255, 255, 255, 0.24) !important;
  text-align: center !important;
  transition: transform 0.08s ease, border-color 0.12s ease, filter 0.12s ease, background-color 0.12s ease;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 0 !important;
  overflow: hidden !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor;
}

.wcst-seat-gap {
  display: inline-block;
  border-radius: 8px;
  visibility: hidden;
}

.wcst-seat:hover:not([disabled]) {
  transform: scale(1.06);
}

.wcst-seat.wcst-selected {
  background: var(--wcst-selected) !important;
  border-color: #8e7200 !important;
  color: #111 !important;
}

.wcst-seat.wcst-held {
  background: var(--wcst-blocked) !important;
  border-color: #9a9a9a !important;
  border-style: solid !important;
  color: #666 !important;
  box-shadow: inset 0 calc(var(--wcst-seat-size) * 0.2) 0 rgba(255, 255, 255, 0.16) !important;
}

.wcst-seat.wcst-sold {
  background: var(--wcst-sold) !important;
  color: #111 !important;
  border-color: #8d949f !important;
  font-size: clamp(4px, calc(var(--wcst-seat-size) * 0.44), 14px) !important;
  font-weight: 900 !important;
  box-shadow: inset 0 calc(var(--wcst-seat-size) * 0.2) 0 rgba(255, 255, 255, 0.16) !important;
}

.wcst-seat.wcst-accessible {
  font-size: clamp(4px, calc(var(--wcst-seat-size) * 0.44), 14px) !important;
  font-weight: 800 !important;
}

.wcst-seat.wcst-blocked {
  background: var(--wcst-blocked) !important;
  color: #666 !important;
  border-color: #989898 !important;
  background-image: none !important;
}

.wcst-seat[disabled] {
  cursor: not-allowed !important;
  opacity: 0.9 !important;
}

.wcst-seat-summary {
  margin-bottom: 0.75rem;
  font-size: 17px;
  color: #212121;
}

.wcst-inline-note {
  display: inline-block;
  margin-top: 6px;
  color: #3a3a3a;
  font-size: 14px;
}

.wcst-inline-error {
  color: #ab1b1b;
}

.wcst-error {
  color: #a00;
}

.wcst-empty-state {
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: #f2f2f2;
  color: #555;
  font-size: 13px;
}

body.wcst-modal-open {
  overflow: hidden;
}

.wcst-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(23, 23, 23, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.wcst-modal-overlay[hidden] {
  display: none !important;
}

.wcst-modal-dialog {
  width: min(1380px, 94vw);
  max-height: 94vh;
  background: #ececec;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  border: 1px solid #d8d8d8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wcst-modal-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 96px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  position: relative;
  text-align: center;
}

.wcst-modal-header-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  margin: 0 auto;
}

.wcst-modal-title {
  margin: 0;
  font-size: 29px;
  line-height: 1.1;
  color: #2f1a8a;
}

.wcst-modal-subtitle {
  font-size: 16px;
  color: #353535;
  font-weight: 600;
}

.wcst-modal-timer-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.wcst-modal-timer {
  font-size: 16px;
  font-weight: 700;
  color: #17663c;
  background: #e8f7ef;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}

.wcst-modal-timer-hint {
  font-size: 15px;
  font-weight: 700;
  color: #2a2a2a;
}

.wcst-modal-close {
  border: 0;
  border-radius: 999px;
  background: #f7c600 !important;
  color: #111 !important;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: absolute;
  inset-inline-end: 16px;
  top: 12px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  z-index: 12;
  pointer-events: auto !important;
}

.wcst-modal-close span:last-child {
  font-size: 28px;
  line-height: 0.9;
}

.wcst-modal-body {
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #ececec;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wcst-modal-body .wcst-seat-map {
  width: 100%;
  overflow: visible;
}

.wcst-modal-body .wcst-map-card {
  background: #fff;
  border-color: #d4d4d4;
  border-radius: 12px;
  max-width: 100%;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.wcst-stage-wrap {
  margin: 0 auto 10px;
  width: min(760px, 100%);
}

.wcst-stage-bar {
  width: 100%;
  text-align: center;
  background: #2f2f2f;
  color: #fff;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 700;
}

.wcst-modal-footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.wcst-modal-count {
  font-size: 18px;
  color: #2a2a2a;
  font-weight: 700;
}

.wcst-modal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wcst-btn {
  border: 0;
  border-radius: 8px;
  min-height: 56px;
  padding: 0 18px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  color: #111 !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  color: #111 !important;
}

.wcst-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wcst-disabled-link {
  pointer-events: none;
  opacity: 0.5;
}

.wcst-btn-primary {
  background: #f7c600 !important;
  color: #111 !important;
}

.wcst-btn-secondary {
  background: #f0dd82 !important;
  color: #111 !important;
}

.wcst-seat-summary.wcst-selection-summary {
  width: min(1280px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  padding: 12px;
}

.wcst-summary-title {
  font-size: 16px;
  font-weight: 800;
  color: #242424;
  margin: 0 0 8px;
}

.wcst-summary-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.wcst-summary-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.wcst-summary-table th,
.wcst-summary-table td {
  text-align: center;
  padding: 10px;
  border: 1px solid #e2e2e2;
  font-size: 15px;
}

.wcst-summary-table th {
  font-weight: 700;
  background: #10b35a;
  color: #fff;
}

.wcst-summary-empty {
  color: #555;
  font-weight: 600;
}

.wcst-summary-notes {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 1024px) {
  .wcst-modal-title {
    font-size: 20px;
  }

  .wcst-row {
    grid-template-columns: 28px max-content 28px;
    gap: 5px;
  }

  .wcst-row-axis {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .wcst-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .wcst-map-card {
    padding: 10px;
  }

  .wcst-rows {
    min-width: max-content;
    width: max-content;
    margin-inline: auto;
  }

  .wcst-modal-body .wcst-legend {
    position: sticky;
    top: 0;
    z-index: 18;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 6px;
    margin-bottom: 8px;
    pointer-events: auto;
  }

  .wcst-legend .lg {
    font-size: 13px;
    padding: 5px 8px;
  }

  .wcst-map-zoom-controls {
    display: flex;
    position: sticky;
    top: 52px;
    z-index: 17;
    background: #fff;
    padding: 4px 0 8px;
    pointer-events: auto;
  }

  .wcst-map-canvas {
    border-radius: 10px;
  }

  .wcst-map-canvas-inner {
    padding: 8px;
  }

  .wcst-modal-dialog {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 16px 16px 0 0;
  }

  .wcst-modal-header {
    padding: 12px 64px 10px;
  }

  .wcst-modal-title {
    font-size: 24px;
  }

  .wcst-modal-subtitle {
    font-size: 14px;
  }

  .wcst-modal-timer {
    font-size: 14px;
    padding: 4px 9px;
  }

  .wcst-modal-body {
    padding: 10px;
    gap: 10px;
  }

  .wcst-modal-body .wcst-map-card {
    width: 100%;
    min-width: 0;
    padding: 10px;
  }

  .wcst-modal-footer {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 24;
  }

  .wcst-row {
    grid-template-columns: 24px max-content 24px;
    gap: 4px;
  }

  .wcst-row-axis {
    font-size: 13px;
  }

  .wcst-modal-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .wcst-modal-count {
    font-size: 16px;
  }

  .wcst-btn {
    width: 100%;
    min-height: 50px;
    font-size: 18px;
    padding: 0 12px;
  }
}
