/* Ajustes locais: modal de ingressos (API), segunda ação por cidade, nota */
.ingressos__nota {
  max-width: 45.7rem;
  margin: -2rem auto 2.5rem;
  padding: 0 1rem;
  color: #213d58;
  font-family: inter, system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45rem;
  text-align: center;
}
.ingressos__nota strong {
  color: #213d58;
  font-weight: 700;
}
@media (max-width: 480px) {
  .ingressos__nota {
    font-size: 11px;
    line-height: 15px;
  }
}

.ingressos li {
  grid-template-columns: 5.25rem minmax(0, 1fr) auto;
  height: auto;
  min-height: 4rem;
  padding: 0.5rem 1rem;
}

.ingressos__acoes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
  min-width: 11rem;
}

.ingressos__acoes .ingressos__btn-precos {
  display: flex;
  width: 13.25rem;
  min-height: 2.4rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  color: #fff;
  border: 1px solid #213d58;
  box-shadow: 0 0 0 #000;
  position: relative;
  transition: all 200ms ease-in-out;
  right: 0;
  bottom: 0;
  background: #3c668f;
  cursor: pointer;
  font-family: broadley, serif;
}

.ingressos li:nth-child(odd) .ingressos__btn-precos:hover {
  box-shadow: 0.25rem 0.25rem 0 #213d58;
  bottom: 0.15rem;
  right: 0.15rem;
}

.ingressos li:nth-child(even) .ingressos__btn-precos:hover {
  box-shadow: 0.25rem 0.25rem 0 #ec4445;
  bottom: 0.15rem;
  right: 0.15rem;
}

.ingressos__acoes > a {
  width: 13.25rem;
}

@media (max-width: 768px) {
  .ingressos li {
    grid-template-columns: 45px minmax(0, 1fr) 1fr;
  }
  .ingressos__acoes {
    min-width: 0;
  }
  .ingressos__acoes .ingressos__btn-precos,
  .ingressos__acoes > a {
    width: 100%;
    max-width: 120px;
    font-size: 11px;
    min-height: 22px;
  }
}

@media (max-width: 480px) {
  .ingressos li {
    grid-template-columns: 38px minmax(80px, 1fr) minmax(90px, 1fr);
    gap: 0.5rem;
  }
  .ingressos__acoes .ingressos__btn-precos,
  .ingressos__acoes > a {
    max-width: none;
    font-size: 9px;
    padding: 2px 4px;
    height: auto;
    min-height: 20px;
  }
}

.ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.ticket-modal.is-open {
  display: flex;
}

.ticket-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.ticket-modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 640px);
  background: #f4edd1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.ticket-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #213d58;
  flex-shrink: 0;
}

.ticket-modal__title {
  color: #f3edd5;
  font-family: broadley, serif;
  font-size: 1rem;
  line-height: 1.25;
  padding-right: 8px;
}

.ticket-modal__close {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: #ec4445;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

.ticket-modal__close:hover {
  filter: brightness(1.08);
}

.ticket-modal__body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.1rem;
  background: #fff;
  font-family: inter, system-ui, sans-serif;
}

.ticket-modal__loading,
.ticket-modal__empty,
.ticket-modal__error {
  margin: 0;
  text-align: center;
  color: #213d58;
  font-size: 0.95rem;
  line-height: 1.4;
}

.ticket-modal__error {
  color: #b91c1c;
}

.ticket-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ticket-modal__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0.75rem 0.85rem;
  background: #f3edd5;
  border-radius: 8px;
  border: 1px solid #213d58;
}

.ticket-modal__name {
  color: #213d58;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.ticket-modal__price {
  color: #ec4445;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.ticket-modal__note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #3c668f;
  text-align: left;
}

.ticket-modal__foot {
  flex-shrink: 0;
  padding: 12px 14px;
  background: #fdfdfd;
  border-top: 1px solid #ccc;
  text-align: center;
}

.ticket-modal__checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  background: #ea560d;
  color: #fff !important;
  font-family: broadley, serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  transition: filter 0.2s;
}

.ticket-modal__checkout:hover {
  filter: brightness(1.05);
}

/* Pagamento PIX (BlackPay) */
.pix-page-body {
  background: #f4f0e8;
}

.pix-page-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid #d4c9b8;
}

.pix-page-back {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #213d58;
  font-family: inter, system-ui, sans-serif;
  font-size: 0.9rem;
}

.pix-page-title {
  font-family: broadley, serif;
  color: #213d58;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.pix-page-lead {
  max-width: 42rem;
  margin: 0;
  font-family: inter, system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3c668f;
}

.pix-checkout {
  padding: 2rem 1rem 3rem;
  max-width: 28rem;
  margin: 0 auto;
}

.pix-checkout__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pix-checkout__label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: inter, system-ui, sans-serif;
  font-size: 0.9rem;
  color: #213d58;
  font-weight: 600;
}

.pix-checkout__input,
.pix-checkout__textarea {
  font-family: inter, system-ui, sans-serif;
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #c5b9a8;
  border-radius: 8px;
  background: #fff;
}

.pix-checkout__textarea {
  resize: vertical;
  min-height: 5rem;
  font-size: 0.8rem;
  line-height: 1.35;
}

.pix-checkout__submit {
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #213d58;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: broadley, serif;
  font-size: 1rem;
  cursor: pointer;
}

.pix-checkout__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pix-checkout__btn-secondary {
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  background: #3c668f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inter, system-ui, sans-serif;
  cursor: pointer;
}

.pix-checkout__err {
  margin: 1rem 0 0;
  padding: 0.75rem;
  background: #fde8e8;
  color: #9b1c1c;
  border-radius: 8px;
  font-family: inter, system-ui, sans-serif;
  font-size: 0.9rem;
}

.pix-result {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed #c5b9a8;
}

.pix-result__title {
  font-family: broadley, serif;
  color: #213d58;
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.pix-result__status {
  font-family: inter, system-ui, sans-serif;
  font-size: 0.95rem;
  color: #2d5016;
  margin: 0 0 1rem;
}

.pix-result__qr-wrap {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
}

.pix-result__qr {
  display: block;
  max-width: 100%;
  height: auto;
}

.pix-page-footer {
  padding: 2rem 1rem;
  border-top: 1px solid #d4c9b8;
}

.pix-page-footer .ingressos__nota {
  text-align: left;
  margin: 0 auto;
  max-width: 42rem;
}

.pix-page-footer code {
  font-size: 0.8em;
  background: #e8e4dc;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
