/* =========================================================
   SweetAlert2 Bootstrap-sized theme for legacy wizard UI
   Targeted for Bootstrap 3-ish sizing and spacing
   Main button color: #4d8f1d
   ========================================================= */

.swal2-container.bootstrap-legacy-container {
  padding: 15px;
  z-index: 20000;
}

.swal2-popup.bootstrap-legacy-popup {
  width: 32em;
  max-width: 100%;
  padding: 20px 20px 18px;
  border-radius: 6px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .35);
}

.swal2-title.bootstrap-legacy-title {
  margin: 0 0 12px;
  padding: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 500;
  color: #333;
}

.swal2-html-container.bootstrap-legacy-html {
  margin: 0 0 15px;
  padding: 0;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  text-align: center;
}

.swal2-html-container.bootstrap-legacy-html p {
  margin: 0 0 10px;
}

.swal2-html-container.bootstrap-legacy-html h1,
.swal2-html-container.bootstrap-legacy-html h2,
.swal2-html-container.bootstrap-legacy-html h3,
.swal2-html-container.bootstrap-legacy-html h4 {
  color: #333;
  margin-top: 0;
}

.swal2-icon.bootstrap-legacy-icon {
  margin-top: 4px;
  margin-bottom: 14px;
}

.swal2-input.bootstrap-legacy-input,
.swal2-select.bootstrap-legacy-input,
.swal2-textarea.bootstrap-legacy-input,
.swal2-file.bootstrap-legacy-input {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  margin: 0 auto 12px;
}

.swal2-textarea.bootstrap-legacy-input {
  height: auto;
  min-height: 90px;
  resize: vertical;
}

.swal2-input.bootstrap-legacy-input:focus,
.swal2-select.bootstrap-legacy-input:focus,
.swal2-textarea.bootstrap-legacy-input:focus,
.swal2-file.bootstrap-legacy-input:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow:
    inset 0 1px 1px rgba(0,0,0,.075),
    0 0 8px rgba(102,175,233,.6);
}

.swal2-validation-message.bootstrap-legacy-validation {
  margin: 8px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 4px;
}

.swal2-actions.bootstrap-legacy-actions {
  margin: 18px 0 0;
  gap: 10px;
}

.swal2-confirm.bootstrap-legacy-confirm,
.swal2-cancel.bootstrap-legacy-cancel,
.swal2-deny.bootstrap-legacy-deny {
  display: inline-block;
  margin: 0;
  padding: 6px 16px;
  font-size: 14px;
  line-height: 1.42857143;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: none;
}

/* Primary action */
.swal2-confirm.bootstrap-legacy-confirm {
  color: #fff;
  background-color: #4d8f1d;
  border-color: #437d19;
}

.swal2-confirm.bootstrap-legacy-confirm:hover,
.swal2-confirm.bootstrap-legacy-confirm:focus {
  color: #fff;
  background-color: #3f7617;
  border-color: #335f13;
}

.swal2-confirm.bootstrap-legacy-confirm:focus,
.swal2-cancel.bootstrap-legacy-cancel:focus,
.swal2-deny.bootstrap-legacy-deny:focus {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(77, 143, 29, .2);
}

/* Secondary action */
.swal2-cancel.bootstrap-legacy-cancel {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}

.swal2-cancel.bootstrap-legacy-cancel:hover,
.swal2-cancel.bootstrap-legacy-cancel:focus {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

/* Optional deny button */
.swal2-deny.bootstrap-legacy-deny {
  color: #fff;
  background-color: #d9534f;
  border-color: #d43f3a;
}

.swal2-deny.bootstrap-legacy-deny:hover,
.swal2-deny.bootstrap-legacy-deny:focus {
  color: #fff;
  background-color: #c9302c;
  border-color: #ac2925;
}

.swal2-footer.bootstrap-legacy-footer {
  margin-top: 15px;
  padding-top: 12px;
  font-size: 13px;
  color: #777;
  border-top: 1px solid #e5e5e5;
}

.swal2-timer-progress-bar.bootstrap-legacy-timer {
  background: #4d8f1d;
}

/* Fix tiny close button / misc header spacing */
.swal2-close {
  font-size: 28px !important;
  line-height: 28px !important;
}

/* Better checkbox/radio layout when html contains form controls */
.swal2-html-container.bootstrap-legacy-html .checkbox,
.swal2-html-container.bootstrap-legacy-html .radio {
  text-align: left;
  margin-top: 10px;
  margin-bottom: 10px;
}

.swal2-html-container.bootstrap-legacy-html label {
  font-weight: 400;
  font-size: 14px;
  color: #333;
}

/* Make loading popup text size match rest of app */
.swal2-loader {
  border-color: #4d8f1d transparent #4d8f1d transparent !important;
}

/* Mobile */
@media (max-width: 767px) {
  .swal2-popup.bootstrap-legacy-popup {
    width: auto;
    padding: 16px 15px 14px;
  }

  .swal2-title.bootstrap-legacy-title {
    font-size: 21px;
  }

  .swal2-html-container.bootstrap-legacy-html {
    font-size: 14px;
  }

  .swal2-actions.bootstrap-legacy-actions {
    width: 100%;
  }

  .swal2-confirm.bootstrap-legacy-confirm,
  .swal2-cancel.bootstrap-legacy-cancel,
  .swal2-deny.bootstrap-legacy-deny {
    min-width: 110px;
  }
}