/* ══════════════════════════════════════
   ORDER TICKET — additional styles
   (section-selection.css loaded first)
══════════════════════════════════════ */

/* Ensure HTML `hidden` attribute always wins */
[hidden] { display: none !important; }

/* ──────────────────────────────────────
   SEAT PICKER CONTAINER
────────────────────────────────────── */
.ot-seat-picker {
  position: relative;
}

.ot-alert-wrap {
  padding-bottom: 0 !important;
}

.ot-alert {
  margin: 0 auto 12px;
  max-width: 1180px;
}

/* Wider row-label columns so numbers don't wrap */
.ot-venue-body .cn-venue-rows {
  font-size: 0.7rem;
  gap: 0.95rem;
  padding-top: 0.3rem;
}

/* ──────────────────────────────────────
   SEAT GRID WRAPPER
────────────────────────────────────── */
.ot-grid-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}

.ot-seat-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0;
}

/* ──────────────────────────────────────
   INDIVIDUAL SEAT
────────────────────────────────────── */
.ot-seat {
  width: 2.25rem;
  height: 2.5rem;
  border-radius: 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: color 0.15s, transform 0.12s, filter 0.15s;
  padding: 0;
  flex-shrink: 0;
}

.ot-seat svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}

.ot-seat-num {
  font-size: 0.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Available — bright white chair */
.ot-seat--available {
  color: #d9d9d9;
}

.ot-seat--available:hover {
  color: var(--color-primary, #d78800);
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 0 6px rgba(215, 136, 0, 0.45));
}

/* Unavailable — muted gray chair */
.ot-seat--unavailable {
  color: #3e3e3e;
  cursor: not-allowed;
}

/* Selected — gold chair */
.ot-seat--selected {
  color: var(--color-primary, #d78800);
  filter: drop-shadow(0 0 5px rgba(215, 136, 0, 0.5));
}

.ot-seat--selected:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(215, 136, 0, 0.7));
}

/* Target row seats slightly brighter available */
.ot-seat-row--target .ot-seat--available {
  color: #ececec;
}

/* Row of seats */
.ot-seat-row {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

/* Highlighted row label */
.ot-row-label--target {
  color: var(--color-primary, #d78800) !important;
  font-weight: 700 !important;
}

/* ──────────────────────────────────────
   SEAT TOOLTIP
────────────────────────────────────── */
.ot-tooltip {
  position: absolute;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-faint);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  min-width: 130px;
  z-index: 200;
  pointer-events: none;
  transform: translate(-50%, -100%);
  margin-top: -8px;
  box-shadow: var(--shadow-card-hover);
}

.ot-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 6px;
  background: var(--color-bg-elevated);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: 1px solid var(--color-border-muted);
}

.ot-tooltip-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 500;
}

.ot-tooltip-icon {
  width: 13px;
  height: 13px;
  color: var(--color-primary, #d78800);
}

.ot-tooltip-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary, #d78800);
  margin-bottom: 0.35rem;
  line-height: 1;
}

.ot-tooltip-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #666;
  gap: 0.75rem;
}

.ot-tooltip-details strong {
  color: #999;
  font-weight: 600;
}

/* ──────────────────────────────────────
   GRID FOOTER (counter + legend)
────────────────────────────────────── */
.ot-grid-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0.5rem;
}

.ot-selection-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #777;
}

.ot-selection-status svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary, #d78800);
}

.ot-selection-status strong {
  color: var(--color-primary, #d78800);
  font-weight: 700;
}

/* When all seats are selected, status turns gold */
.ot-selection-status.ot-status--ready {
  color: #bbb;
}

.ot-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.ot-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #666;
}

/* Legend chair icons — match seat state colors */
.ot-legend-icon {
  width: 28px;
  height: 24px;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}

.ot-legend-icon--available  { color: #ffffff; }
.ot-legend-icon--unavailable { color: #6b7280; }
.ot-legend-icon--selected   { color: var(--color-primary, #d4921a); filter: drop-shadow(0 0 4px rgba(212, 146, 26, 0.5)); }

/* ──────────────────────────────────────
   SECTION INDICATOR CARD
────────────────────────────────────── */
.ot-section-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
}

.ot-section-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 1rem;
  background: #111;
}

.ot-section-svg {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* SVG ring: default (no section yet) */
.ot-viz-ring {
  fill: rgba(80,80,80,0.35);
  transition: fill .3s;
}
.ot-viz-label {
  fill: #fff;
  transition: fill .3s;
}

/* VIP → amber gold */
#sectionCard[data-section="vip"] .ot-viz-ring  { fill: rgba(185,100,5,.45); }
#sectionCard[data-section="vip"] .ot-viz-label { fill: #fff; }

/* Section A (T.GOLD) → blue */
#sectionCard[data-section="a"] .ot-viz-ring  { fill: rgba(37,99,235,.38); }
#sectionCard[data-section="a"] .ot-viz-label { fill: #fff; }

/* Section B (T.BRONZ) → green */
#sectionCard[data-section="b"] .ot-viz-ring  { fill: rgba(22,163,74,.38); }
#sectionCard[data-section="b"] .ot-viz-label { fill: #fff; }

/* Section C (STANDARD) → amber */
#sectionCard[data-section="c"] .ot-viz-ring  { fill: rgba(217,119,6,.38); }
#sectionCard[data-section="c"] .ot-viz-label { fill: #fff; }

/* Footer */
.ot-sc-footer {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .9rem 1.1rem;
  border-top: 1px solid rgba(255,255,255,.07);
}

.ot-sc-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ot-sc-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-text-primary, #fff);
}

.ot-sc-rating {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: .18rem .6rem;
}

.ot-sc-rating-num {
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-primary, #d78800);
}

.ot-sc-rating-txt {
  font-size: .75rem;
  color: #888;
}

.ot-sc-view {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: #777;
}

.ot-sc-view svg {
  width: 13px;
  height: 13px;
  color: #777;
}

/* ──────────────────────────────────────
   TICKET CARD OVERRIDES FOR ORDER PAGE

/* Continue button — base styles inherited from .cn-get-ticket-btn */
button.cn-get-ticket-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 1.15rem 1.5rem;
  margin-top: 0.6rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffb52e 0%, var(--color-primary, #d78800) 55%, #b86f00 100%);
  background-size: 200% 200%;
  box-shadow: 0 10px 26px rgba(215, 136, 0, 0.4);
  position: relative;
  overflow: hidden;
}

/* Animated sheen sweeping across the button */
button.cn-get-ticket-btn:not(:disabled)::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-20deg);
  animation: cta-sheen 3s ease-in-out infinite;
}

button.cn-get-ticket-btn:not(:disabled):hover {
  transform: translateY(-2px) scale(1.02);
  background-position: 100% 50%;
  box-shadow: 0 14px 34px rgba(215, 136, 0, 0.55);
}

button.cn-get-ticket-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
  pointer-events: none;
  box-shadow: none;
  background: var(--color-primary, #d78800);
}

button.cn-get-ticket-btn:not(:disabled) {
  animation: pulse-cta 2s ease-in-out infinite;
}

@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 10px 26px rgba(215, 136, 0, 0.4), 0 0 0 0 rgba(215, 136, 0, 0.45); }
  50%       { box-shadow: 0 10px 26px rgba(215, 136, 0, 0.4), 0 0 0 10px rgba(215, 136, 0, 0); }
}

@keyframes cta-sheen {
  0%   { left: -120%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

/* Empty seat chip placeholder */
.ot-chip--empty {
  color: #444 !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  font-style: italic;
}

/* Seat cart enhancements */
#orderTicketCard .cn-tc-mi-row {
  align-items: flex-start;
  gap: 0.7rem;
}

#orderTicketCard .cn-tc-mi-label {
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.ot-cart-seat-price {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.ot-seat-remove-btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(215, 136, 0, 0.42);
  background: rgba(215, 136, 0, 0.08);
  color: var(--color-primary, #d78800);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.ot-seat-remove-btn:hover {
  background: rgba(215, 136, 0, 0.2);
  border-color: rgba(215, 136, 0, 0.65);
  transform: translateY(-1px);
}

.ot-seat-remove-btn:active {
  transform: translateY(0);
}

.ot-seat-remove-btn:focus-visible {
  outline: 2px solid rgba(215, 136, 0, 0.38);
  outline-offset: 2px;
}

#orderTicketCard .cn-tc-mi-bold {
  font-size: 1rem;
}

@media (max-width: 768px) {
  #orderTicketCard .cn-tc-mi-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #orderTicketCard .cn-tc-mi-val,
  #orderTicketCard .ot-cart-seat-price {
    width: 100%;
    justify-content: space-between;
  }
}

/* ══════════════════════════════════════
   CONFIRMATION MODAL
══════════════════════════════════════ */
.ot-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay-backdrop);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.ot-modal {
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  animation: modal-in 0.22s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* ── Chair preview ── */
.ot-modal-chair-preview {
  background: #111;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ot-modal-seats-img {
  width: 50%;
  margin: 10px auto;
  object-fit: fill;
  object-position: center;
  display: block;
}

/* ── Header ── */
.ot-modal-header {
  padding: 1rem 1.25rem 0.35rem;
}

.ot-modal-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ot-modal-title-icon {
  width: 15px;
  height: 15px;
  color: var(--color-primary, #d78800);
  flex-shrink: 0;
}

.ot-modal-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
  margin: 0;
}

.ot-modal-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  background: rgba(215, 136, 0, 0.14);
  border: 1px solid rgba(215, 136, 0, 0.32);
  color: var(--color-primary, #d78800);
}

/* ── Info grid ── */
.ot-modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
  padding: 0.65rem 1.25rem 0.85rem;
}

.ot-modal-info-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: #888;
  min-width: 0;
}

.ot-modal-info-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ot-modal-info-item svg {
  width: 12px;
  height: 12px;
  color: var(--color-primary, #d78800);
  flex-shrink: 0;
}

/* ── Divider ── */
.ot-modal-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 1.25rem;
}

/* ── Seat table ── */
.ot-modal-table {
  padding: 0.8rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ot-modal-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.ot-mt-label { color: #888; }

.ot-mt-value {
  color: #eee;
  font-weight: 600;
}

.ot-modal-table-row--total {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.5rem;
  margin-top: 0.1rem;
}

.ot-modal-table-row--total .ot-mt-label,
.ot-modal-table-row--total .ot-mt-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

/* ── Actions ── */
.ot-modal-actions {
  display: flex;
  gap: 0.7rem;
  padding: 0.3rem 1.25rem 1.25rem;
}

.ot-modal-btn {
  flex: 1;
  padding: 0;
  height: 48px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition:
    background var(--transition-fast, 0.18s),
    box-shadow var(--transition-fast, 0.18s),
    transform var(--transition-fast, 0.18s);
}

.ot-modal-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-glow-strong, 0 0 16px rgba(215,136,0,0.35));
}

.ot-modal-btn:active {
  transform: translateY(0);
}

.ot-modal-btn--outline {
  background: transparent;
  border: 1px solid var(--color-primary, #d78800);
  color: var(--color-primary, #d78800);
}

.ot-modal-btn--outline:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-primary-light, #e6a020);
}

.ot-modal-btn--primary {
  background: var(--color-primary, #d78800);
  border: none;
  color: #fff;
}

.ot-modal-btn--primary:hover {
  background: var(--color-primary-light, #e6a020);
}
