/* ========== CONTAINER GERAL ========== */

.container-poltronas {
  background: radial-gradient(circle at top, #1b2230 0, #05070b 60%);
  padding: 24px;
  margin: 40px auto;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 1200px;
  color: #f5f5f5;
}

.container-poltronas .poltronas-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}

/* Coluna esquerda (mapa) e coluna direita (detalhes) */
.container-poltronas .poltronas-container > .poltronas {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.session-compact-card {
  display: grid;
  width: min(920px, 100%);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 auto 6px;
  padding: 12px 14px;
  border: 1px solid rgba(246, 196, 83, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(246, 196, 83, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(8, 12, 20, 0.98));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  text-align: left;
}

.session-compact-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 196, 83, 0.48);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(246, 196, 83, 0.26), rgba(255, 145, 77, 0.14));
  color: #f6c453;
  font-size: 1.25rem;
}

.session-compact-main {
  min-width: 0;
}

.session-compact-kicker {
  display: block;
  color: #72f4df;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.session-compact-main strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-compact-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.session-compact-meta span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #e9eef7;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.session-compact-meta i {
  color: #f6c453;
  font-size: 0.9rem;
}

.session-tags-inline {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.session-tags-inline .session-default-tag,
.session-tags-inline .session-custom-tag {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #e9eef7;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.session-tags-inline .session-default-tag i {
  color: #f6c453;
  font-size: 0.9rem;
}

.session-tags-inline .session-custom-tag {
  --session-custom-tag-color: #705cfc;
  border-color: rgba(112, 92, 252, 0.56);
  background: #2a244c;
  border-color: color-mix(in srgb, var(--session-custom-tag-color) 68%, #ffffff 10%);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--session-custom-tag-color) 42%, #050815 58%),
      color-mix(in srgb, var(--session-custom-tag-color) 24%, #0f1724 76%));
  color: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--session-custom-tag-color) 28%, transparent);
}

.session-tags-inline .session-custom-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  background: var(--session-custom-tag-color);
  box-shadow: 0 0 10px var(--session-custom-tag-color);
}

.checkout-session-tags-card {
  border-color: rgba(0, 224, 184, 0.26);
  background:
    linear-gradient(135deg, rgba(0, 224, 184, 0.1), rgba(112, 92, 252, 0.08)),
    rgba(8, 13, 24, 0.88);
}

.checkout-session-tags-card .session-tags-inline {
  justify-content: flex-start;
  margin-top: 8px;
}

.container-poltronas .detalhes {
  width: 100%;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  background-color: #10141f;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.6);
  text-align: center;
  color: #fff;
}

/* ========== TELA DO CINEMA ========== */

.tela-cinema {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.tela-cinema span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 260px;
  padding: 10px 32px;
  background: linear-gradient(90deg, #ff9800, #ff5722);
  color: #111;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
}

/* ========== GRID DE POLTRONAS ========== */

#poltronasZoomContainer {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px;
  background: #05070b;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#poltronasZoomContainer::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#poltronasGrid {
  transform: scale(1);
  transform-origin: top center;
  transition: transform 0.2s ease-in-out;
  display: inline-block;
}

.poltronas-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Linha de poltronas (fileira) */
.linha {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  width: max-content;
  overflow-x: auto;
  margin-bottom: 8px;
}

.fileira {
  width: 22px;
  font-weight: 700;
  text-align: center;
  color: #adb5bd;
  font-size: 0.85rem;
}

/* ========== BOTÃO POLTRONA ========== */

.poltrona {
  width: 32px;
  height: 32px;
  background: #2e7d32;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06),
              0 4px 10px rgba(0, 0, 0, 0.7);
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.poltrona:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.8);
  background: #388e3c;
}

/* Selecionada */
.poltrona.selecionada {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #111;
  box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.9),
              0 0 16px rgba(255, 152, 0, 0.7);
}

/* Ocupada */
.poltrona.ocupada {
  background-color: #c62828;
  cursor: not-allowed;
  color: #fff;
  box-shadow: none;
}

/* Inativa (bloqueada) */
button.poltrona.inativa {
  background-color: #c0392b !important;
  color: #f1c40f !important;
  border: 2px solid #f1c40f !important;
  font-size: 18px;
  padding: 0;
  cursor: not-allowed;
  box-shadow: 0 0 12px rgba(241, 196, 15, 0.5);
}

/* Reservado */
.poltrona.reservado {
  background-color: #1565c0 !important;
  color: #ffffff;
  cursor: not-allowed;
}

/* Manutenção */
.poltrona.manutencao {
  background-color: #757575 !important;
  color: #ffffff;
  cursor: not-allowed;
}

/* Tipos especiais (cores) */
.poltrona.cadeirante {
  background-color: #00bcd4;
}

.poltrona.gravida {
  background-color: #ec407a;
}

.poltrona.acompanhante {
  background-color: #5c6bc0;
}

.poltrona.audio_visual {
  background-color: #ffeb3b;
  color: #111;
}

/* Legenda redonda */
.poltrona.legenda {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #1f2933;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ========== CORREDOR ========== */

.corredor {
  width: 32px;
  height: 6px;
  display: inline-block;
  background-color: transparent;
}

/* ========== CONTROLE DE ZOOM ========== */

.zoom-controls {
  text-align: center;
  margin-bottom: 15px;
}

.zoom-controls label {
  font-weight: 600;
  margin-right: 10px;
  font-size: 0.95rem;
  color: #e0e0e0;
}

.zoom-controls input[type="range"] {
  width: 220px;
  height: 8px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Trilho da barra */
.zoom-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(90deg, #1976d2, #42a5f5);
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(25, 118, 210, 0.6);
}

/* Botão deslizante */
.zoom-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  background: #fff;
  border: 2px solid #1976d2;
  border-radius: 50%;
  margin-top: -5px;
  box-shadow: 0 0 6px rgba(25, 118, 210, 0.7);
  transition: 0.2s;
}

.zoom-controls input[type="range"]::-webkit-slider-thumb:hover {
  background: #1976d2;
  border: 2px solid #fff;
}

/* Firefox */
.zoom-controls input[type="range"]::-moz-range-track {
  height: 8px;
  background: linear-gradient(90deg, #1976d2, #42a5f5);
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(25, 118, 210, 0.6);
}

.zoom-controls input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  background: #fff;
  border: 2px solid #1976d2;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(25, 118, 210, 0.7);
  transition: 0.2s;
}

.zoom-controls input[type="range"]::-moz-range-thumb:hover {
  background: #1976d2;
  border: 2px solid #fff;
}

/* ========== ZOOMS ESPECÍFICOS (SALAS 3–6) ========== */

#poltronasZoomContainer3,
#poltronasZoomContainer4,
#poltronasZoomContainer5,
#poltronasZoomContainer6 {
  overflow: auto;
  max-width: 100%;
  max-height: 80vh;
  padding: 10px;
  background: #05070b;
  border-radius: 12px;
}

#poltronasGrid3,
#poltronasGrid4,
#poltronasGrid5,
#poltronasGrid6 {
  transform: scale(1);
  transform-origin: top center;
  transition: transform 0.2s ease-in-out;
}

/* ========== RESUMO / DETALHES (COLUNA DIREITA) ========== */

.selected-seats-panel {
  overflow: hidden;
  border: 1px solid #2b3548;
  border-radius: 8px;
  background: #0c1018;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  text-align: left;
}

.selected-seats-header {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 12px 14px;
  border-bottom: 1px solid #232d3e;
  background: #121722;
}

.selected-seats-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(112, 92, 252, 0.42);
  border-radius: 7px;
  background: #221e42;
  color: #9d91ff;
  font-size: 1rem;
}

.selected-seats-heading {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1px;
}

.selected-seats-heading span {
  color: #00e0b8;
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.selected-seats-heading strong {
  overflow-wrap: anywhere;
  color: #e9eef7;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.35;
}

.selected-seats-count {
  display: inline-flex;
  min-width: 32px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(0, 224, 184, 0.38);
  border-radius: 6px;
  background: #102d2b;
  color: #72f4df;
  font-size: 0.78rem;
  font-weight: 800;
}

.selected-seats-list {
  display: flex;
  min-height: 84px;
  align-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}

.selected-seats-list.is-empty {
  align-items: center;
  justify-content: center;
}

.selected-seats-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8f99a9;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

.selected-seats-empty i {
  color: #657187;
  font-size: 0.95rem;
}

.selected-seat-chip {
  display: inline-flex;
  min-width: 62px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(112, 92, 252, 0.48);
  border-radius: 7px;
  background: #211d40;
  color: #f3f1ff;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.24);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
}

.selected-seat-chip i {
  color: #00e0b8;
  font-size: 0.92rem;
}

/* Botão principal */
.container-poltronas .detalhes button[type="button"] {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  border: none;
  color: #fff;
  font-size: 1.05rem;
  padding: 12px 30px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 87, 34, 0.7);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  width: 100%;
  margin-top: 12px;
}

.container-poltronas .detalhes button[type="button"]:hover {
  background: linear-gradient(135deg, #ffb74d, #ff7043);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 112, 67, 0.9);
}

.container-poltronas .detalhes button[type="button"]:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 0 10px rgba(255, 112, 67, 0.7);
}

.container-poltronas .detalhes button[type="button"].is-disabled,
.container-poltronas .detalhes button[type="button"]:disabled {
  cursor: not-allowed;
  opacity: 0.82;
  transform: none;
}

.checkout-unificado-panel {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(112, 92, 252, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(112, 92, 252, 0.18), transparent 35%),
    linear-gradient(145deg, #111827, #080b12 68%);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
  text-align: left;
}

.checkout-unificado-panel[hidden] {
  display: none !important;
}

.checkout-unificado-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.checkout-unificado-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 224, 184, 0.38);
  border-radius: 16px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.18), transparent 36%),
    rgba(0, 224, 184, 0.12);
  color: #72f4df;
  font-size: 1.85rem;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(0, 224, 184, 0.12);
}

.checkout-unificado-header > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.checkout-unificado-header > div > span {
  display: block;
  color: #00e0b8;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.checkout-unificado-header strong {
  display: block;
  margin-top: 2px;
  color: #f8fafc;
  font-size: 1rem;
  line-height: 1.3;
}

.checkout-unificado-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.checkout-info-card,
.checkout-valores-grid > div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(8, 13, 24, 0.82);
  padding: 12px;
}

.checkout-info-card-wide {
  grid-column: 1 / -1;
}

.checkout-promo-card {
  border-color: rgba(0, 224, 184, 0.34);
  background:
    linear-gradient(135deg, rgba(0, 224, 184, 0.15), rgba(112, 92, 252, 0.08)),
    rgba(8, 13, 24, 0.9);
}

.checkout-promo-card[hidden] {
  display: none !important;
}

.checkout-promo-card strong {
  color: #72f4df;
}

.checkout-info-card small,
.checkout-valores-grid small {
  display: block;
  color: #8ea0b8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.checkout-info-card strong,
.checkout-valores-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.checkout-valores-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.checkout-valores-grid .checkout-total-card {
  border-color: rgba(246, 196, 83, 0.42);
  background: linear-gradient(135deg, rgba(246, 196, 83, 0.18), rgba(255, 255, 255, 0.04));
}

.checkout-valores-grid .checkout-total-card strong {
  color: #f6c453;
  font-size: 1.05rem;
}

.checkout-unificado-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 14px 14px;
}

.container-poltronas .detalhes button[type="button"].btn-checkout-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 220px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #e9eef7;
  font-size: 0.9rem;
}

.container-poltronas .detalhes button[type="button"].btn-checkout-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.container-poltronas .detalhes button[type="button"].btn-checkout-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 220px;
  margin-top: 0;
  border: 1px solid rgba(246, 196, 83, 0.5);
  background:
    linear-gradient(135deg, rgba(246, 196, 83, 0.98), rgba(255, 145, 77, 0.96));
  box-shadow: 0 16px 30px rgba(246, 196, 83, 0.2);
  color: #141414;
  font-size: 0.9rem;
}

.container-poltronas .detalhes button[type="button"].btn-checkout-primary:hover {
  background:
    linear-gradient(135deg, rgba(255, 214, 110, 1), rgba(255, 130, 66, 1));
  box-shadow: 0 18px 34px rgba(246, 196, 83, 0.28);
}

.checkout-frame-shell {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1115;
}

.checkout-frame-shell[hidden] {
  display: none !important;
}

.checkout-frame-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 300px;
  color: #cbd5e1;
  font-weight: 700;
}

.checkout-frame-loading[hidden] {
  display: none !important;
}

.checkout-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #00e0b8;
  border-radius: 50%;
  animation: checkoutSpin 0.8s linear infinite;
}

@keyframes checkoutSpin {
  to {
    transform: rotate(360deg);
  }
}

.checkout-pagamento-frame {
  display: block;
  width: 100%;
  min-height: 720px;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.container-poltronas.checkout-review-mode #checkoutMapaPoltronas,
.container-poltronas.checkout-review-mode #checkoutSelecaoResumo,
.container-poltronas.checkout-review-mode #checkoutLegendaPoltronas {
  display: none !important;
}

.container-poltronas.checkout-review-mode .poltronas-container {
  align-items: center;
}

.container-poltronas.checkout-review-mode .detalhes {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.container-poltronas.checkout-review-mode .checkout-unificado-panel {
  margin-top: 0;
}

.container-poltronas.checkout-payment-mode .checkout-unificado-header,
.container-poltronas.checkout-payment-mode .checkout-unificado-grid,
.container-poltronas.checkout-payment-mode .checkout-valores-grid,
.container-poltronas.checkout-payment-mode .checkout-unificado-actions {
  display: none !important;
}

.container-poltronas.checkout-payment-mode .checkout-frame-shell {
  min-height: 0;
  margin: 0;
  border-top: 0;
  background: transparent;
}

.container-poltronas.checkout-payment-mode .checkout-pagamento-frame {
  min-height: 0;
  vertical-align: top;
}

/* ========== RESPONSIVO ========== */

@media (max-width: 991.98px) {
  .container-poltronas {
    width: calc(100% - 24px);
    max-width: 100%;
    margin: 24px auto 32px;
    padding: 16px;
  }

  .container-poltronas .poltronas-container {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
  }

  .session-compact-card {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
  }

  .session-compact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.1rem;
  }

  .session-compact-main strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.92rem;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .session-compact-meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 6px;
  }

  .session-compact-meta span {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .container-poltronas .poltronas-container > .poltronas,
  .container-poltronas .detalhes {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 0 0 auto;
  }

  #poltronasZoomContainer {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .poltronas-wrapper {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
  }

  #poltronasGrid {
    transform-origin: top left;
  }

  .tela-cinema span {
    min-width: 220px;
  }

  .checkout-unificado-grid,
  .checkout-valores-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-valores-grid .checkout-total-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .poltronas-wrapper {
    display: block;
    text-align: left;
  }

  .linha {
    justify-content: flex-start;
    overflow-x: visible;
  }

  .zoom-controls input[type="range"] {
    width: 180px;
  }
}

@media (max-width: 576.98px) {
  .container-poltronas {
    width: calc(100% - 16px);
    margin-top: 18px;
    padding: 10px;
    border-radius: 10px;
  }

  .session-summary-card {
    width: 100%;
    min-width: 0 !important;
  }

  .session-compact-card {
    margin-bottom: 2px;
  }

  .session-compact-meta {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .session-compact-meta span {
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #poltronasZoomContainer {
    padding: 8px;
    border-radius: 8px;
  }

  .container-poltronas .detalhes {
    padding: 10px;
    border-radius: 10px;
  }

  .tela-cinema span {
    width: min(220px, 100%);
    min-width: 0;
  }

  .checkout-unificado-grid,
  .checkout-valores-grid {
    grid-template-columns: 1fr;
  }

  .checkout-unificado-panel {
    border-radius: 10px;
  }

  .checkout-unificado-header {
    align-items: center;
    gap: 12px;
    padding: 13px;
  }

  .checkout-unificado-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 13px;
    font-size: 1.4rem;
  }

  .checkout-unificado-header > div > span {
    font-size: 0.64rem;
  }

  .checkout-unificado-header strong {
    font-size: 0.94rem;
  }

  .checkout-unificado-grid {
    gap: 8px;
    padding: 10px;
  }

  .checkout-valores-grid {
    gap: 8px;
    padding: 0 10px 10px;
  }

  .checkout-info-card,
  .checkout-valores-grid > div {
    padding: 10px;
    border-radius: 9px;
  }

  .checkout-info-card small,
  .checkout-valores-grid small {
    font-size: 0.64rem;
  }

  .checkout-info-card strong,
  .checkout-valores-grid strong {
    font-size: 0.84rem;
  }

  .checkout-unificado-actions {
    display: block;
    padding: 0 10px 10px;
  }

  .container-poltronas .detalhes button[type="button"].btn-checkout-secondary,
  .container-poltronas .detalhes button[type="button"].btn-checkout-primary {
    width: 100%;
    min-width: 0;
  }

  .container-poltronas .detalhes button[type="button"].btn-checkout-primary {
    margin-top: 10px;
  }

  .checkout-frame-shell {
    min-height: 420px;
    border-radius: 0 0 10px 10px;
  }

  .checkout-frame-loading {
    min-height: 220px;
    padding: 24px 12px;
    text-align: center;
  }

  .checkout-pagamento-frame {
    min-height: 760px;
  }

  .container-poltronas.checkout-payment-mode .checkout-frame-shell,
  .container-poltronas.checkout-payment-mode .checkout-pagamento-frame {
    min-height: 0;
  }
}









/* ---- PAINEL ---- */
.legend-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.legend-panel {
  width: 100%;
  max-width: 800px;
  background: linear-gradient(135deg, #0c0c0f, #14151a 70%);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 25px 20px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0,0,0,0.8);
}

/* ---- TÍTULO ---- */
.legend-title {
  text-align: center;
  color: #f8f9fa;
  margin-bottom: 18px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.legend-title i {
  color: #ffc107;
  text-shadow: 0 0 8px rgba(255,193,7,0.7);
}

/* ---- ITENS ---- */
.legend-items {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.legend-text {
  color: #e8e8e8;
  font-size: 0.9rem;
  margin-top: 4px;
  letter-spacing: 0.03em;
}

/* ---- BOLHAS ---- */
.legend-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  color: white;
  box-shadow: 0 0 12px rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.15);
}

/* cores especiais */
.legend-icon.cadeirante {
  background: linear-gradient(135deg, #00d8ff, #0066ff);
  box-shadow: 0 0 14px rgba(0,140,255,0.7);
}
.legend-icon.gestante {
  background: linear-gradient(135deg, #ff7ab8, #ff2d78);
  box-shadow: 0 0 14px rgba(255,60,120,0.8);
}
.legend-icon.acompanhante {
  background: linear-gradient(135deg, #9ba8ff, #4a5dff);
  box-shadow: 0 0 14px rgba(100,100,255,0.7);
}
.legend-icon.audiovisual {
  background: linear-gradient(135deg, #ffea7a, #ffbf00);
  box-shadow: 0 0 14px rgba(255,200,0,0.8);
}

/* ---- ÍCONES ---- */
.legend-icon i,
.legend-icon strong {
  font-size: 1.8rem;
  color: white;
}

/* ---- AVISO ---- */
.legend-warning {
  text-align: center;
  color: #ffc107;
  font-size: 0.85rem;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.2);
}
.legend-warning i {
  margin-right: 5px;
}




.session-header {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.session-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #0d1117, #0c0c0f);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 18px rgba(0,0,0,0.6);
  max-width: 650px;
  width: 100%;
}

.session-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #1c1c1c;
  font-size: 2rem;
  box-shadow: 0 0 15px rgba(255,160,0,0.8);
}

.session-room {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.session-meta {
  margin-top: 6px;
  color: #e8e8e8;
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
}

.session-meta i {
  color: #ffc107;
}

.session-meta .divider {
  color: #777;
}





.poltrona.reservada-temporaria {
  background: #0d6efd !important;
  border-color: #66a3ff !important;
  color: #fff !important;
  cursor: not-allowed !important;
  opacity: 0.95;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.45);
}

.poltrona.reservada-temporaria::after {
  content: '';
}

.poltrona.ocupada {
  cursor: not-allowed !important;
}
/* Título do filme no resumo da sessão */
.session-movie-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 193, 7, 0.24);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.session-movie-title i {
  flex: 0 0 auto;
  color: #ffc107;
  font-size: 1.15rem;
}

.session-movie-title span {
  min-width: 0;
  overflow-wrap: anywhere;
}
