/* Custom SweetAlert2 fixes to prevent white space at bottom */

/* Prevent body scroll and white space when SweetAlert is shown */
body.swal2-shown {
  overflow: hidden !important;
  padding-right: 0 !important;
}

/* Ensure the SweetAlert container doesn't create extra height */
.swal2-container {
  overflow-y: auto !important;
  padding: 10px !important;
}

/* Fix for SweetAlert popup positioning */
.swal2-popup {
  margin: auto !important;
  max-height: calc(100vh - 20px) !important;
  overflow-y: auto !important;
}

/* Prevent scrollbar padding issues */
.swal2-container.swal2-backdrop-show {
  overflow-y: hidden !important;
}

/* Ensure proper z-index */
.swal2-container {
  z-index: 10001 !important;
}

/* Prevent height collapse causing blank space at bottom */
body.swal2-height-auto {
  height: 100% !important;
}

html.swal2-height-auto {
  height: 100% !important;
}