/* checkout-datos.css
   MiPase | Palenque Fiestas de Octubre 2026
   Estilos para Datos del comprador, resumen de compra y forma de pago.
   No modifica la lógica ni el render del mapa de asientos.
*/

.buyer-details {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  display: none;
  overflow: auto;
  background: #fff;
  padding: 34px 44px 50px;
}

.ticket-modal.details-mode .ticket-map-wrap {
  display: none;
}

.ticket-modal.details-mode .buyer-details {
  display: block;
}

.ticket-modal.details-mode .ticket-steps span:nth-child(1) {
  color: #606775;
  font-weight: 400;
}

.ticket-modal.details-mode .ticket-steps span:nth-child(2) {
  color: #111827;
  font-weight: 900;
}

.ticket-modal.details-mode .coupon-btn,
.ticket-modal.details-mode .checkout-next {
  display: none;
}

.buyer-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.buyer-back {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4b5563;
  font-size: 26px;
  line-height: 38px;
  cursor: pointer;
}

.buyer-back:hover {
  background: #f1f3f6;
  color: #111827;
}

#buyerEventName {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

#buyerEventDate {
  color: #606775;
  font-size: 13px;
  margin-top: 2px;
}

.buyer-form {
  max-width: 760px;
}

.buyer-form h2 {
  margin: 0 0 24px;
  color: #111827;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.buyer-fieldset {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.buyer-fieldset label {
  display: block;
  margin: 0 0 10px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.buyer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.buyer-input {
  width: 100%;
  height: 54px;
  border: 1px solid #ccd2dc;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 16px;
  padding: 0 14px;
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

.buyer-input:focus {
  border-color: #0578d8;
  box-shadow: 0 0 0 3px rgba(5,120,216,.12);
}

.buyer-note {
  margin: 28px 0 24px;
  color: #606775;
  font-size: 14px;
  line-height: 1.55;
}

.pay-btn {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 8px;
  background: #070707;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.pay-btn:hover {
  filter: brightness(1.12);
}

.cart-summary-event {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 4px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dfe2e8;
}

.cart-summary-event.active {
  display: flex;
}

.cart-summary-event img {
  width: 44px;
  height: 44px;
  border-radius: 5px;
  object-fit: cover;
  background: #000;
}

.cart-summary-event strong {
  display: block;
  color: #111827;
  font-size: 15px;
  line-height: 1.15;
  text-transform: uppercase;
}

.cart-summary-event span {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
}

.cart-line.partial {
  display: none;
}

.cart-line.partial.active {
  display: flex;
}

@media (max-width: 900px) {
  .buyer-details {
    grid-column: 1;
    grid-row: 2;
    padding: 22px 16px 34px;
  }

  .buyer-top {
    margin-bottom: 18px;
  }

  .buyer-form h2 {
    font-size: 24px;
  }

  .buyer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .buyer-input {
    height: 50px;
    font-size: 15px;
  }

  .pay-btn {
    height: 54px;
  }

  .ticket-modal.details-mode .cart-panel {
    grid-row: 3;
  }
}


/* ===== PASO 3: FORMA DE PAGO ===== */
.payment-details {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  display: none;
  overflow: auto;
  background: #fff;
  padding: 34px 44px 50px;
}

.ticket-modal.payment-mode .ticket-map-wrap,
.ticket-modal.payment-mode .buyer-details {
  display: none;
}

.ticket-modal.payment-mode .payment-details {
  display: block;
}

.ticket-modal.payment-mode .ticket-steps span:nth-child(1),
.ticket-modal.payment-mode .ticket-steps span:nth-child(2) {
  color: #606775;
  font-weight: 400;
}

.ticket-modal.payment-mode .ticket-steps span:nth-child(3) {
  color: #111827;
  font-weight: 900;
}

.ticket-modal.payment-mode .checkout-next {
  display: none;
}

.payment-wrap {
  max-width: 760px;
}

.payment-wrap h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
}

.payment-option {
  display: grid;
  grid-template-columns: 76px 1fr 116px;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #dfe3ea;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.payment-option.active {
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17,24,39,.08);
}

.payment-option.disabled {
  opacity: .45;
  filter: grayscale(1);
}

.payment-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  justify-content: center;
  min-height: 48px;
}

.card-logo {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.5px;
}

.card-logo.visa {
  color: #0a49a4;
}

.card-logo.mc {
  color: #d71920;
  font-size: 10px;
}

.transfer-icon {
  font-size: 34px;
  line-height: 1;
}

.payment-text strong {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.payment-text p {
  margin: 8px 0 0;
  color: #555d6b;
  font-size: 15px;
  line-height: 1.45;
}

.payment-text small {
  display: block;
  margin-top: 8px;
  color: #747b88;
  font-size: 12px;
  line-height: 1.35;
}

.payment-option button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: #050505;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.payment-option button:disabled {
  cursor: not-allowed;
  background: #9ca3af;
}

.payment-option.active button:hover {
  filter: brightness(1.12);
}

@media (max-width: 900px) {
  .payment-details {
    grid-column: 1;
    grid-row: 2;
    padding: 22px 16px 34px;
  }

  .payment-wrap h2 {
    font-size: 24px;
  }

  .payment-option {
    grid-template-columns: 52px 1fr;
    gap: 12px;
    padding: 15px;
  }

  .payment-option button {
    grid-column: 1 / -1;
    min-height: 50px;
  }

  .ticket-modal.payment-mode .cart-panel {
    grid-row: 3;
  }
}
