/* Minimal Bootstrap-compatible modal layout for themes that do not ship modal CSS (W3Core).
   Scoped to the locale-redirect popup so theme Bootstrap rules stay untouched. */
.redirect-locale-modal.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.redirect-locale-modal.modal.show {
  display: block;
}

.redirect-locale-modal .modal-dialog {
  position: relative;
  width: auto;
  max-width: 500px;
  margin: 1.75rem auto;
  pointer-events: none;
}

.redirect-locale-modal .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
}

.redirect-locale-modal .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.redirect-locale-modal .modal-title {
  margin: 0;
  line-height: 1.5;
}

.redirect-locale-modal .modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

.redirect-locale-modal .close {
  padding: 1rem;
  margin: -1rem -1rem -1rem auto;
  background-color: transparent;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  opacity: 0.5;
  cursor: pointer;
}

.redirect-locale-modal-backdrop.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000;
}

.redirect-locale-modal-backdrop.modal-backdrop.show {
  opacity: 0.5;
}
