/* Supplemental utilities for the donation form (classes not present in the imported compiled stylesheet). */
.grid-cols-1 {
  grid-template-columns: minmax(0, 1fr);
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.p-1\.5 {
  padding: 0.375rem;
}
.focus-within\:border-secondary:focus-within {
  border-color: var(--secondary);
}
#monto-donacion {
  appearance: textfield;
  -moz-appearance: textfield;
}
#monto-donacion::-webkit-outer-spin-button,
#monto-donacion::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#monto-donacion::placeholder {
  color: var(--donation-muted);
  font-weight: 400;
}
:root {
  --receipt-paper: #ffffff;
  --receipt-ink: #000000;
}
.oxxo-download {
  width: 100%;
  min-height: 48px;
  height: auto;
  margin-top: 12px;
  border-radius: 9999px;
  border-color: var(--donation-line);
  color: var(--primary);
  background: var(--card);
  font-size: 16px;
  font-weight: 700;
  white-space: normal;
  box-shadow: none;
}

.metodo-grupo button[data-metodo] {
  border: 2px solid var(--donation-line);
  background: var(--card);
}
.metodo-grupo button[data-metodo][aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--donation-soft);
  color: var(--primary);
}
.gap-3 { gap: 0.75rem; }
.metodo-grupo button[data-metodo] {
  border: 2px solid var(--primary);
  color: var(--foreground);
}
.metodo-grupo button[data-metodo][aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}
.metodo-grupo button[data-metodo][aria-pressed="true"]::after {
  content: "✅";
  font-size: 0.85rem;
  line-height: 1;
}

/* Floating picker shown when the donor clicks "Generar mi donación" without choosing SPEI/OXXO. */
#metodo-popup:not(.hidden) {
  display: flex;
}
#metodo-popup {
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#metodo-popup-fondo {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.55);
}
#metodo-popup-tarjeta {
  position: relative;
  width: 100%;
  max-width: 26rem;
  padding: 1.25rem;
  border: 1px solid var(--donation-line);
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: var(--shadow-panel);
}
#metodo-popup-opciones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.metodo-pop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  border: 2px solid var(--primary);
  border-radius: 9999px;
  background: var(--card);
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.metodo-pop-btn[aria-pressed="true"] {
  background: var(--primary);
  color: var(--primary-foreground);
}
.metodo-pop-btn[aria-pressed="true"]::after {
  content: "✅";
  font-size: 0.85rem;
  line-height: 1;
}
#metodo-popup-cerrar {
  width: 100%;
  height: 2.75rem;
  margin-top: 0.75rem;
  border: 2px solid var(--donation-line);
  border-radius: 9999px;
  background: transparent;
  color: var(--donation-muted);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

/* Main button after a charge was created */
button.boton-generado { background: var(--primary); color: var(--primary-foreground); opacity: 0.92; }
/* Confirmation when switching method after a charge was created */
.cambio-popup { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cambio-fondo { position: absolute; inset: 0; background: rgb(0 0 0 / 0.55); }
.cambio-tarjeta { position: relative; width: 100%; max-width: 26rem; padding: 1.25rem; border: 1px solid var(--donation-line); border-radius: 1.5rem; background: var(--card); box-shadow: var(--shadow-panel); }
.cambio-si, .cambio-no { width: 100%; height: 3rem; margin-top: 0.75rem; border-radius: 9999px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.cambio-si { margin-top: 1rem; border: 2px solid var(--primary); background: var(--primary); color: var(--primary-foreground); }
.cambio-no { border: 2px solid var(--primary); background: transparent; color: var(--primary); }
