/*---------------------
  Tema de SweetAlert2 para Libreros (tienda y panel)
  Se carga después de SweetAlert, por eso usa "body" para ganar especificidad
  y !important donde SweetAlert pone estilos en línea (confirmButtonColor, etc.)
-----------------------*/
@import url("https://fonts.googleapis.com/css?family=Muli:400,600,700,800&display=swap");

body .swal2-container.swal2-backdrop-show {
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(3px);
}

body .swal2-popup {
  width: 30em;
  max-width: calc(100% - 32px);
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  font-family: "Muli", sans-serif;
}

/* Alertas pequeñas en la esquina (position: 'top-end') */
body .swal2-container.swal2-top-end .swal2-popup {
  width: 22em;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 16px;
}

body .swal2-title {
  padding: 0.6em 0 0;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
}

body .swal2-html-container {
  margin: 0.75em 0.5em 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
}

body .swal2-html-container p {
  margin-bottom: 0.4em;
}

/* Iconos */
body .swal2-icon {
  margin-top: 0.5em;
  border-width: 3px;
  transform: scale(0.85);
}

body .swal2-icon.swal2-question,
body .swal2-icon.swal2-info {
  border-color: #ffd3bf;
  background: #fff4ee;
  color: #fe5e22;
}

body .swal2-icon.swal2-question .swal2-icon-content .fa {
  font-size: 0.75em;
}

body .swal2-icon.swal2-warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #d97706;
}

body .swal2-icon.swal2-error {
  border-color: #fecaca;
  background: #fef2f2;
}

body .swal2-icon.swal2-success {
  border-color: #bbf7d0;
}

body .swal2-icon.swal2-success [class^="swal2-success-line"] {
  background-color: #16a34a;
}

body .swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(22, 163, 74, 0.25);
}

/* Botones */
body .swal2-actions {
  gap: 10px;
  margin-top: 1.5em;
}

body .swal2-actions .swal2-styled {
  margin: 0;
  padding: 0.75em 1.7em;
  border-radius: 999px;
  box-shadow: none;
  font-family: "Muli", sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

body .swal2-actions .swal2-styled:hover {
  transform: translateY(-1px);
}

body .swal2-actions .swal2-styled.swal2-confirm {
  background: #fe5e22 !important;
  color: #fff;
}

body .swal2-actions .swal2-styled.swal2-confirm:hover {
  background: #e8400c !important;
}

body .swal2-actions .swal2-styled.swal2-cancel,
body .swal2-actions .swal2-styled.swal2-deny {
  background: #f3f4f6 !important;
  color: #374151 !important;
}

body .swal2-actions .swal2-styled.swal2-cancel:hover,
body .swal2-actions .swal2-styled.swal2-deny:hover {
  background: #e5e7eb !important;
}

body .swal2-actions .swal2-styled:focus {
  box-shadow: 0 0 0 3px rgba(254, 94, 34, 0.3);
}

body .swal2-loader {
  border-color: #fe5e22 transparent #fe5e22 transparent;
}

body .swal2-timer-progress-bar {
  background: rgba(254, 94, 34, 0.6);
}

body .swal2-image {
  border-radius: 12px;
}

/* Contenido del modal de reserva (js/checkout.js) */
body .swal-reserve-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1em 0 0.75em;
  padding: 0.85em 1.1em;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

body .swal-reserve-total span {
  color: #6b7280;
  font-size: 14px;
}

body .swal-reserve-total strong {
  color: #fe5e22;
  font-size: 20px;
  font-weight: 800;
}

body .swal-reserve-note {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 8px;
  padding: 0.6em 1em;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 600;
}
