/* Ajustes locais: não competir com o CSS do Next.js da Byma (carregado via evento.php). */

/* Coluna principal: mais estreita e com menos respiro */
.evento-page-column {
  box-sizing: border-box;
  padding: 6px 8px 10px;
}

@media (min-width: 640px) {
  .evento-page-column {
    padding: 8px 12px 14px;
  }
}

/* Texto rico: parágrafos e listas mais densos */
.evento-compact-block {
  font-size: 0.875rem;
  line-height: 1.45;
}

.evento-compact-block p {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

.evento-compact-block p:first-child {
  margin-top: 0;
}

.evento-compact-block p:last-child {
  margin-bottom: 0;
}

.evento-compact-block ul,
.evento-compact-block ol {
  margin: 0.35em 0;
  padding-left: 1.15em;
}

/* Mapa Stay22: altura menor no mobile, um pouco maior no desktop */
.evento-stay22-iframe {
  width: 100%;
  min-height: 200px;
  height: min(280px, 48vh) !important;
}

@media (min-width: 768px) {
  .evento-stay22-iframe {
    height: min(300px, 42vh) !important;
  }
}

/* Voltar ao site On Fire — fora do layout Byma */
.byma-local-back {
  position: fixed;
  top: 6px;
  left: 6px;
  z-index: 10060;
  padding: 5px 8px;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

@media (min-width: 640px) {
  .byma-local-back {
    top: 8px;
    left: 8px;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
  }
}

.byma-local-back:hover {
  text-decoration: underline;
}

/* Stepper de quantidade no carrinho */
.byma-qty-stepper .byma-qty-minus,
.byma-qty-stepper .byma-qty-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.28rem 0.4rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  font-family: Roboto, system-ui, sans-serif;
}

.byma-qty-stepper .byma-qty-minus:hover,
.byma-qty-stepper .byma-qty-plus:hover {
  background: #f3f4f6;
}

.byma-qty-stepper .byma-qty-minus:focus-visible,
.byma-qty-stepper .byma-qty-plus:focus-visible {
  outline: 2px solid #ea560d;
  outline-offset: -2px;
  z-index: 1;
}

.byma-qty-stepper .byma-qty-input {
  width: 2.5rem;
  margin: 0;
  padding: 0.28rem 0.2rem;
  font-size: 0.8125rem;
  text-align: center;
  color: #000;
  background: #fff;
  border: none;
  border-left: 1px solid #d1d5db;
  border-right: 1px solid #d1d5db;
  border-radius: 0;
  font-family: Roboto, system-ui, sans-serif;
  -moz-appearance: textfield;
}

.byma-qty-stepper .byma-qty-input::-webkit-outer-spin-button,
.byma-qty-stepper .byma-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Botões do modal de checkout (classes usadas no HTML) */
.byma-event__btn {
  display: block;
  width: 100%;
  padding: 0.5rem 0.85rem;
  border-radius: 7px;
  font-weight: 600;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 0.875rem;
  color: #fff !important;
  background: #ea560d;
  border: none;
  cursor: pointer;
  text-align: center;
}

.byma-event__btn:hover {
  filter: brightness(1.05);
}

.byma-event__btn--secondary {
  background: #c2410c;
}

/* Modal checkout local */
.evento-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}

.evento-checkout-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.evento-checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.evento-checkout-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  padding: 14px 14px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  font-family: Roboto, system-ui, sans-serif;
}

.evento-checkout-modal__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #444;
}

.evento-checkout-modal__global-err {
  margin: 0 0 8px;
  padding: 8px;
  background: #fde8e8;
  color: #9b1c1c;
  border-radius: 8px;
  font-size: 14px;
}

.evento-checkout-modal__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #213d58;
  padding-right: 26px;
}

.evento-checkout-modal__hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #444;
  line-height: 1.4;
}

.evento-checkout-modal__field {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.evento-checkout-modal__input {
  display: block;
  width: 100%;
  margin-top: 3px;
  box-sizing: border-box;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: Roboto, system-ui, sans-serif;
}

.evento-checkout-modal__primary {
  margin-top: 6px;
}

.evento-checkout-modal__pay-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evento-checkout-modal__pay-btn {
  width: 100%;
}

.evento-checkout-modal__pay-btn--card {
  background: #213d58 !important;
}

.evento-checkout-modal__err {
  margin: 0 0 8px;
  padding: 8px;
  background: #fde8e8;
  color: #9b1c1c;
  border-radius: 8px;
  font-size: 14px;
}

.evento-checkout-modal__loading {
  margin: 0;
  font-size: 14px;
  color: #444;
}

.evento-checkout-modal__status {
  margin: 0 0 8px;
  font-size: 13px;
  color: #2d5016;
}

.evento-checkout-modal__qr-wrap {
  background: #f8f8f8;
  padding: 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}

.evento-checkout-modal__qr {
  display: block;
  max-width: 100%;
  height: auto;
}

.evento-checkout-modal__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.evento-checkout-modal__textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  box-sizing: border-box;
  font-size: 10px;
  line-height: 1.35;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
}

.evento-checkout-modal__select {
  cursor: pointer;
  appearance: auto;
}

.evento-checkout-modal__card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Segundo modal: processamento do cartão (sobre o checkout) */
.evento-card-process-modal {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}

.evento-card-process-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.evento-card-process-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.evento-card-process-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  padding: 16px 14px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-family: Roboto, system-ui, sans-serif;
}

.evento-card-process-modal__err-msg {
  display: block;
  margin-bottom: 12px;
}
