/**
 * Custom alert and confirm modal (used site-wide via includes/custom_alert.php).
 * Hidden by default; JS shows it via .fadeIn().
 * Centered on viewport (high specificity so other stylesheets don't move it).
 * Body scroll lock when alert is open.
 */
body.custom-alert-open {
  overflow: hidden !important;
}

/* Above jquery.popupoverlay wrappers (often 1e6+ when #customAlert is on the page) */
body.custom-alert-open #customAlert.custom-alert-overlay {
  z-index: 2147483000 !important;
}

#customAlert.custom-alert-overlay,
.custom-alert-overlay {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999999;
}
#customAlert.custom-alert-overlay.visible,
.custom-alert-overlay.visible {
  display: block !important; /* block so jQuery .fadeIn() doesn't fight flex */
}
#customAlert .custom-alert-box,
.custom-alert-box {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  min-width: 30rem;
  max-width: 46rem;
  padding: 1.5rem 1.75rem 1.25rem;
  border-radius: 0.8rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  min-height: auto;
  background: url(../get_media.php?path=bg/links_frm_bg.png);
  background-size: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.custom-alert-message,
div#alertMsg {
  font-family: 'freight-display-pro';
  font-weight: 400;
  font-size: 1.59rem !important;
  margin-bottom: 1rem;
  line-height: 1.3;
  text-align: center;
  width: 100%;
  color: #4D46A0;
  white-space: pre-line;
}

/* Input used inside customAlert/customPrompt (e.g. password entry) */
.custom-alert-input {
  font-family: 'source-sans-pro', 'source sans pro', sans-serif;
  font-weight: 400;
  font-size: 1em;
  background: #d2f3f7;
  border: 1px solid #b1d4df;
  border-radius: 0.8rem;
  margin-bottom: 0rem;
  height: 2.5rem;
  padding: 0.3rem 1rem;
  color: #6565b7;
  outline: none;
  margin-right: 0;
  width: 100%;
  box-sizing: border-box;
  margin-top: 1rem;
}
.custom-alert-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
  width: 100%;
  text-align: center;
}
#customAlert .custom-alert-actions button,
.custom-alert-actions button {
  min-width: 7rem;
  height: 2.1rem;
  padding: 0.3rem 2rem;
  margin: 0;
  cursor: pointer;
  border: 0.5px solid #5e5e5e !important;
  border-radius: 2rem !important;
  background-image: none !important;
  font-family: 'freight-display-pro';
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: #fff !important;
  box-shadow: none;
}
#customAlert .custom-alert-actions .alert-ok,
.custom-alert-actions .alert-ok {
  background-color: #79e0ec !important;
  background-image: none !important;
  color: #fff !important;
}
#customAlert .custom-alert-actions .alert-cancel,
.custom-alert-actions .alert-cancel {
  background-color: #5e5e5e82 !important;
  background-image: none !important;
  color: #fff !important;
}
