:root {
  --seat-magenta: #bd376f;
  --seat-magenta-dark: #972654;
  --seat-ink: #17171b;
  --seat-muted: #697180;
  --seat-line: #e5e7eb;
  --seat-surface: #f6f7f9;
  --seat-green: #49b979;
  --seat-orange: #e89542;
  --seat-gold: #d9a928;
  --seat-blue: #287bc1;
}

.clitik-seat-selection-v2 {
  min-height: calc(100vh - 72px);
  background: var(--seat-surface);
  color: var(--seat-ink);
}

.clitik-seat-selection-v2 .seat-selection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  grid-template-rows: auto 1fr;
  max-width: 1600px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  background: #fff;
}

.clitik-seat-checkout-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 40px 72px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--seat-line);
  background: #fff;
}

.clitik-seat-selection-v2 .seat-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--seat-line);
  border-radius: 8px;
  color: var(--seat-ink);
}

.clitik-seat-selection-v2 .seat-back-link svg { width: 18px; height: 18px; }

.seat-selection-event-image {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--seat-surface);
}

.clitik-seat-selection-v2 .seat-selection-event-copy {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 4px 14px;
  min-width: 0;
}

.clitik-seat-selection-v2 .seat-selection-event-copy strong {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--seat-ink);
  font-size: 1.12rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clitik-seat-selection-v2 .seat-selection-event-copy span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--seat-muted);
  font-size: .82rem;
}

.clitik-seat-selection-v2 .seat-selection-event-copy svg { width: 14px; height: 14px; }

.seat-checkout-steps {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seat-checkout-steps span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 90px;
  color: var(--seat-muted);
  font-size: .78rem;
  font-weight: 700;
}

.seat-checkout-steps span:not(:last-child)::after {
  content: "";
  width: 28px;
  height: 1px;
  margin-left: 4px;
  background: var(--seat-line);
}

.seat-checkout-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--seat-surface);
  color: var(--seat-muted);
  font-size: .72rem;
}

.seat-checkout-steps .is-active { color: var(--seat-magenta); }
.seat-checkout-steps .is-active b { background: var(--seat-magenta); color: #fff; }
.seat-checkout-steps .is-complete b { background: #e7f7ee; color: #18764a; }

.clitik-seat-selection-v2 .seat-selection-map-area {
  min-width: 0;
  padding: 28px;
  background: #fff;
}

.clitik-seat-selection-v2 .clitik-seat-map-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.clitik-seat-map-heading h1 {
  margin: 2px 0 5px;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.clitik-seat-map-heading small { display: block; max-width: 720px; color: var(--seat-muted); }

.seat-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--seat-line);
  border-radius: 8px;
  background: #fff;
  color: var(--seat-ink);
}

.seat-icon-button:hover { border-color: var(--seat-magenta); color: var(--seat-magenta); }
.seat-icon-button svg { width: 17px; height: 17px; }

.seat-filter-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.clitik-seat-selection-v2 .seat-sector-picker {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 1px 2px 5px;
  scrollbar-width: thin;
}

.clitik-seat-selection-v2 .seat-sector-chip,
.seat-type-filter,
.seat-price-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--seat-line);
  border-radius: 999px;
  background: #fff;
  color: #444b57;
  white-space: nowrap;
}

.clitik-seat-selection-v2 .seat-sector-chip { min-width: 0; }
.clitik-seat-selection-v2 .seat-sector-chip strong { font-size: .8rem; }
.clitik-seat-selection-v2 .seat-sector-chip span { color: var(--seat-muted); font-size: .7rem; }
.clitik-seat-selection-v2 .seat-sector-chip.active,
.seat-type-filter.active,
.seat-price-filter.active { border-color: var(--seat-magenta); background: #fff2f7; color: var(--seat-magenta-dark); }

.seat-sort-select { width: 210px; min-height: 40px; border-color: var(--seat-line); font-size: .82rem; }
.seat-filter-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; white-space: nowrap; }
.seat-filter-toggle svg { width: 16px; height: 16px; }

.seat-filter-panel {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--seat-line);
  border-radius: 8px;
  background: var(--seat-surface);
}

.seat-type-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.seat-type-filter { min-height: 34px; padding: 6px 11px; font-size: .78rem; }

.clitik-seat-selection-v2 .public-seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.clitik-seat-selection-v2 .public-seat-legend span,
.clitik-seat-selection-v2 .public-seat-legend button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--seat-line);
  border-radius: 999px;
  background: #fff;
  color: #505866;
  font-size: .75rem;
}

.legend-dot { width: 10px; height: 10px; border-radius: 4px; }
.legend-dot.available { background: var(--seat-green); }
.legend-dot.selected { background: var(--seat-magenta); }
.legend-dot.held { background: var(--seat-orange); }
.legend-dot.blocked, .legend-dot.unavailable { background: #b8bec8; }
.legend-dot.vip { background: var(--seat-gold); }
.legend-dot.pmr { background: var(--seat-blue); }

.seat-ui-feedback {
  display: none;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
}

.seat-ui-feedback.is-visible { display: block; }
.seat-ui-feedback.is-error { background: #fff0ef; color: #a42e29; }
.seat-ui-feedback.is-warning { background: #fff7e8; color: #8a5a0b; }

.clitik-seat-selection-v2 .seat-selection-map-shell {
  position: relative;
  height: min(700px, calc(100vh - 330px));
  min-height: 500px;
  overflow: auto;
  border: 1px solid var(--seat-line);
  border-radius: 8px;
  background: #fff;
  cursor: grab;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.clitik-seat-selection-v2 .seat-selection-map-shell.is-dragging { cursor: grabbing; user-select: none; }
.clitik-seat-selection-v2 .public-seat-map { position: relative; margin: 0 auto; transform-origin: top left; }

.clitik-seat-selection-v2 .public-map-element.stage,
.clitik-seat-selection-v2 .public-map-element.screen,
.clitik-seat-selection-v2 .public-map-element.field,
.clitik-seat-selection-v2 .public-map-element.track {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #222329;
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 23, 27, .13);
  font-weight: 850;
  text-transform: uppercase;
}

.clitik-seat-selection-v2 .public-map-element.sector {
  border: 1px dashed #d9dce2;
  border-radius: 8px;
  background: rgba(246, 247, 249, .58);
  color: #596170;
}

.clitik-seat-selection-v2 .public-seat {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 6px 6px 4px 4px;
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(23, 23, 27, .12);
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}

.clitik-seat-selection-v2 .public-seat.available { cursor: pointer; }
.clitik-seat-selection-v2 .public-seat.available:hover,
.clitik-seat-selection-v2 .public-seat.available:focus-visible { z-index: 20; transform: translateY(-2px) scale(1.18) !important; box-shadow: 0 6px 15px rgba(23, 23, 27, .22); }
.clitik-seat-selection-v2 .public-seat:focus-visible { outline: 3px solid rgba(189, 55, 111, .32); outline-offset: 2px; }
.clitik-seat-selection-v2 .public-seat.selected { z-index: 18; background: var(--seat-magenta) !important; outline: 3px solid rgba(189, 55, 111, .25); animation: seat-pop .18s ease-out; }
.clitik-seat-selection-v2 .public-seat.held,
.clitik-seat-selection-v2 .public-seat.reserved { background: var(--seat-orange) !important; opacity: .82; }
.clitik-seat-selection-v2 .public-seat.sold { background: #808793 !important; opacity: .62; }
.clitik-seat-selection-v2 .public-seat.blocked { background: #cbd0d7 !important; opacity: .72; }
.clitik-seat-selection-v2 .public-seat.is-vip:not(.selected) { background: var(--seat-gold) !important; }
.clitik-seat-selection-v2 .public-seat.is-accessible:not(.selected) { background: var(--seat-blue) !important; }
.clitik-seat-selection-v2 .public-seat.filtered-out { opacity: .12; pointer-events: none; filter: grayscale(1); }

@keyframes seat-pop { 0% { transform: scale(.78); } 100% { transform: scale(1); } }

.clitik-seat-selection-v2 .seat-map-tools { position: sticky; left: 12px; top: 12px; z-index: 30; display: inline-grid; gap: 6px; float: left; }
.clitik-seat-selection-v2 .seat-map-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--seat-line);
  border-radius: 8px;
  background: #fff;
  color: var(--seat-ink);
  box-shadow: 0 5px 14px rgba(23, 23, 27, .08);
}
.clitik-seat-selection-v2 .seat-map-tools button:hover { border-color: var(--seat-magenta); background: #fff; color: var(--seat-magenta); }
.clitik-seat-selection-v2 .seat-map-tools svg { width: 17px; height: 17px; }

.clitik-seat-selection-v2 .seat-mini-map {
  position: sticky;
  left: 58px;
  top: 12px;
  z-index: 29;
  display: none;
  width: 184px;
  padding: 6px;
  border: 1px solid var(--seat-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 23, 27, .12);
}
.clitik-seat-selection-v2 .seat-mini-map.is-open, .clitik-seat-selection-v2 .seat-mini-map.is-active { display: block; }
.seat-mini-map-inner { position: relative; overflow: hidden; background: var(--seat-surface); }
.mini-map-dot { position: absolute; display: block; background: #d4d8df; }
.mini-map-dot.seat { border-radius: 50%; }
.mini-map-viewport { position: absolute; border: 2px solid var(--seat-magenta); background: rgba(189, 55, 111, .09); }
.mini-map-sector-active { position: absolute; border: 2px solid var(--seat-magenta); background: rgba(189, 55, 111, .12); }

.public-seat-loading {
  display: grid;
  place-items: center;
  min-height: 460px;
  color: var(--seat-muted);
}
.public-seat-loading::before {
  content: "";
  width: min(70%, 620px);
  height: 180px;
  border-radius: 8px;
  background: #eef0f3;
  animation: seat-skeleton 1.1s ease-in-out infinite alternate;
}
@keyframes seat-skeleton { to { opacity: .45; } }

.seat-tooltip {
  position: fixed;
  z-index: 1090;
  display: grid;
  width: 220px;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--seat-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(23, 23, 27, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity .12s ease, transform .12s ease;
}
.seat-tooltip.is-visible { opacity: 1; transform: translateY(0); }
.seat-tooltip strong { font-size: .84rem; }
.seat-tooltip span, .seat-tooltip small { color: var(--seat-muted); font-size: .72rem; }
.seat-tooltip b { margin-top: 4px; color: var(--seat-magenta-dark); font-size: .9rem; }

.clitik-seat-selection-v2 .seat-selection-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 26px 24px;
  border-left: 1px solid var(--seat-line);
  background: #fff;
}

.selected-seat-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.selected-seat-title div { display: grid; }
.selected-seat-title small { color: var(--seat-magenta); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.selected-seat-title span { font-size: 1.05rem; font-weight: 850; }
.selected-seat-title strong { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--seat-ink); color: #fff; }
.selected-seat-list { display: grid; gap: 8px; }
.selected-seat-empty { padding: 18px; border: 1px dashed #d8dce3; border-radius: 8px; color: var(--seat-muted); text-align: center; }
.selected-seat-card { padding: 12px; border: 1px solid var(--seat-line); border-radius: 8px; background: #fff; }
.selected-seat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 9px; }
.selected-seat-grid small { display: block; color: var(--seat-muted); font-size: .66rem; }
.selected-seat-grid strong { font-size: .82rem; }
.selected-seat-card-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto 30px; align-items: center; gap: 8px; }
.selected-seat-card-foot span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.selected-seat-card-foot i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 3px; }
.selected-seat-remove { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--seat-surface); color: var(--seat-muted); font-size: 18px; }
.selected-seat-remove:hover { background: #fff0ef; color: #a42e29; }

.seat-hold-timer { display: block; margin-bottom: 10px; padding: 9px 11px; border: 1px solid #f0d7df; border-radius: 8px; background: #fff3f7; color: var(--seat-magenta-dark); font-size: .78rem; font-weight: 800; }
.clitik-seat-selection-v2 .totals { margin-top: 16px; padding: 14px; border: 1px solid var(--seat-line); border-radius: 8px; background: var(--seat-surface); }
.clitik-seat-selection-v2 .totals > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: .82rem; }
.clitik-seat-selection-v2 .totals .total-line { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #d9dde3; font-size: 1.02rem; }
.seat-hold-note, .checkout-note { display: flex; align-items: flex-start; gap: 7px; margin: 12px 0 0; color: var(--seat-muted); font-size: .72rem; line-height: 1.4; }
.seat-hold-note svg, .checkout-note svg { width: 15px; height: 15px; flex: 0 0 15px; }

.seat-data-only { display: none !important; }
.seat-selection-layout[data-checkout-step="data"] .seat-data-only,
.seat-selection-layout[data-checkout-step="payment"] .seat-data-only { display: block !important; }
.seat-selection-layout[data-checkout-step="data"] #seatContinueButton,
.seat-selection-layout[data-checkout-step="payment"] #seatContinueButton { display: none; }
.seat-buyer-fields { gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--seat-line); }
.seat-selection-layout[data-checkout-step="data"] #seatBuyerStep,
.seat-selection-layout[data-checkout-step="payment"] #seatBuyerStep { display: grid !important; }
.seat-buyer-fields h2 { margin: 0 0 4px; font-size: 1.2rem; }
.seat-buyer-fields .form-control { min-height: 42px; }
.checkout-consent { margin-top: 8px; font-size: .78rem; line-height: 1.35; }

.seat-summary-handle, .seat-summary-close { display: none; }
.clitik-seat-mobile-summary { display: none; }

@media (max-width: 1100px) {
  .clitik-seat-selection-v2 .seat-selection-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .seat-checkout-steps span { min-width: 72px; }
  .seat-checkout-steps span:not(:last-child)::after { width: 12px; }
  .clitik-seat-selection-v2 .seat-selection-map-area { padding: 22px; }
}

@media (max-width: 767.98px) {
  .clitik-seat-selection-v2 { padding-bottom: 84px; }
  .clitik-seat-selection-v2 .seat-selection-layout { display: block; min-height: 100vh; }
  .clitik-seat-checkout-header {
    display: grid;
    grid-template-columns: 34px 54px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 12px 14px 10px;
  }
  .clitik-seat-selection-v2 .seat-back-link { width: 34px; height: 34px; }
  .seat-selection-event-image { width: 54px; height: 54px; }
  .clitik-seat-selection-v2 .seat-selection-event-copy { display: block; }
  .clitik-seat-selection-v2 .seat-selection-event-copy strong { display: block; margin-bottom: 3px; font-size: .9rem; }
  .clitik-seat-selection-v2 .seat-selection-event-copy span { display: flex; margin-top: 2px; font-size: .68rem; }
  .seat-checkout-steps { grid-column: 1 / -1; justify-content: center; width: 100%; margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--seat-line); }
  .seat-checkout-steps span { min-width: 0; font-size: .7rem; }
  .seat-checkout-steps span:not(:last-child)::after { width: 30px; }
  .seat-checkout-steps b { width: 21px; height: 21px; }
  .clitik-seat-selection-v2 .seat-selection-map-area { padding: 18px 14px 8px; }
  .clitik-seat-selection-v2 .clitik-seat-map-heading { margin-bottom: 12px; }
  .clitik-seat-map-heading .eyebrow, .clitik-seat-map-heading small { display: none; }
  .clitik-seat-map-heading h1 { margin: 0; font-size: 1.35rem; }
  .seat-filter-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .clitik-seat-selection-v2 .seat-sector-picker { grid-column: 1 / -1; order: 3; }
  .seat-sort-select { width: 100%; }
  .seat-filter-toggle { width: 42px; padding: 0; justify-content: center; }
  .seat-filter-toggle { font-size: 0; }
  .clitik-seat-selection-v2 .public-seat-legend { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .clitik-seat-selection-v2 .public-seat-legend span, .clitik-seat-selection-v2 .public-seat-legend button { flex: 0 0 auto; }
  .clitik-seat-selection-v2 .seat-selection-map-shell {
    height: 58vh;
    min-height: 430px;
    max-height: 640px;
    margin: 0 -14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .clitik-seat-selection-v2 .seat-selection-map-shell.is-sector-open { height: 66vh; min-height: 500px; }
  .clitik-seat-selection-v2 .seat-map-tools { left: 10px; top: 10px; }
  .clitik-seat-selection-v2 .seat-map-tools button { width: 40px; height: 40px; }
  .clitik-seat-selection-v2 .seat-mini-map { left: 58px; top: 10px; width: 154px; }
  .seat-tooltip { display: none; }
  .clitik-seat-selection-v2 .seat-selection-sidebar {
    position: fixed;
    z-index: 1060;
    right: 0;
    bottom: 0;
    left: 0;
    top: auto;
    width: 100%;
    height: auto;
    max-height: 88vh;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    border: 1px solid var(--seat-line);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -18px 44px rgba(23, 23, 27, .16);
    transform: translateY(105%);
    transition: transform .24s ease;
  }
  .clitik-seat-selection-v2 .seat-selection-sidebar.is-open { transform: translateY(0); }
  .seat-summary-handle { display: block; width: 44px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: #d4d7dd; }
  .seat-summary-close { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--seat-surface); color: var(--seat-ink); }
  .seat-summary-close svg { width: 17px; height: 17px; }
  .selected-seat-title { padding-right: 40px; }
  .selected-seat-list { display: flex; overflow-x: auto; }
  .selected-seat-card { min-width: 260px; }
  .clitik-seat-mobile-summary {
    position: fixed;
    z-index: 1040;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 10px 12px 10px 15px;
    border: 1px solid var(--seat-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(23, 23, 27, .2);
  }
  .clitik-seat-mobile-summary span { display: grid; text-align: left; }
  .clitik-seat-mobile-summary small { color: var(--seat-muted); font-size: .66rem; }
  .clitik-seat-mobile-summary strong { font-size: .88rem; }
  .clitik-seat-mobile-summary b { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 9px 13px; border-radius: 7px; background: var(--seat-magenta); color: #fff; font-size: .78rem; }
  .clitik-seat-mobile-summary b svg { width: 15px; height: 15px; }
  .clitik-seat-mobile-summary.is-empty b { background: #cdd1d8; }
  .seat-summary-open .clitik-seat-mobile-summary { opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .clitik-seat-selection-v2 *,
  .seat-tooltip { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
