&.popup-builder {
  background-color: #ffffff;
  .modal {
    position: relative;
    display: block;
    z-index: 1;
  }
  .modal-dialog {
    margin-top: 60px;
    margin-bottom: 60px;
    & when (@popupSize = '5') {
      margin-top: 0;
      margin-bottom: 0;
      margin: 0;
      height: 100%;
    }
  }
}
.modal-content, .modal-dialog {
  height: auto;
}
h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem !important;
  font-weight: 600;
  line-height: 60px!important;
  @media (max-width: 992px) {
    font-size: 2rem !important;
    line-height: 40px!important;
  }
  @media (max-width: 768px) {
    font-size: 1.75rem !important;
    line-height: 33px!important;
  }
}
.form-wrapper {
  .input-group-btn {
    margin-right: auto;
    margin-left: auto;
    .btn {
      margin: 0 !important;
    }
  }
  @media (min-width: 769px) {
    .mbr-form {
      .form-group, .input-group-btn {
        padding: 0 .5rem;
      }
    }
  }
}
.card-img {
  width: 100%;
  margin: auto;
  border-radius: 0;
}
.mbr-figure {
  img {
    display: block;
    width: 100%;
    -ms-grid-row-align: center;
    align-self: center;
  }
}
.mbr-text {
  text-align: center;
}
.pt-0 {
  padding-top: 0 !important;
}
.pb-0 {
  padding-bottom: 0 !important;
}
.form-content {
  justify-content: center;
  text-align: center;
}
.mbr-overlay {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
  pointer-events: none;
}
.modal-open {
  overflow: hidden;
}
.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0 !important;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}
.modal-dialog {
  position: relative;
  width: auto;
  margin: .5rem;
  pointer-events: none;
  & when (@popupSize = '5') {
    max-width: 100%;
    height: 100%;
    margin: 0;
  }
}
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}
.modal.show .modal-dialog {
  transform: none;
}
.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: ~"calc(100% - (.5rem * 2))";
}
.modal-dialog-centered::before {
  display: block;
  height: ~"calc(100vh - (.5rem * 2))";
  content: "";
}
.modal-content {
  background: @cardBg;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-clip: padding-box;
  border: none;
  outline: 0;
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.2);
  & when (@popupSize = '5') {
    border-radius: 0;
    height: 100%;
    overflow: auto;
  }
}
.margin-center-pos {
  margin-top: auto;
  margin-bottom: auto;
}
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}
.modal-backdrop.fade {
  opacity: 0;
}
.modal-backdrop.show {
  opacity: .5;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  @media (min-width: 992px) {
    padding: 2rem 2rem 1rem;
  }
  @media (max-width: 991px) {
    padding: 1rem;
  }
  border-bottom: none;
}
.modal-header .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: -1rem -1rem -1rem auto;
  padding: 1rem;
  opacity: .75;
  svg {
    fill: @closeButton;
  }
  &:hover {
    opacity: 1;
  }
  &:focus {
    outline: none;
  }
}
.modal-title {
  line-height: 1.5;
  width: 100%;
  margin: 0;
  text-align: center;
}
.modal-body {
  position: relative;
  flex: 1 1 auto;
  @media (min-width: 992px) {
    padding: 1rem 2rem 2rem;
  }
  @media (max-width: 991px) {
    padding: 1rem;
  }
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  @media (min-width: 992px) {
    padding: 0rem 2rem 2rem;
  }
  @media (max-width: 991px) {
    padding: 1rem;
  }
  border-top: none;
  text-align: center;
}
.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}
@media (min-width: 576px) {
  .modal-dialog {
    & when not (@popupSize = '5') {
      max-width: 500px;
      margin: 1.75rem auto;
    }
  }
  .modal-dialog-centered {
    min-height: ~"calc(100% - (1.75rem * 2))";
  }
  .modal-dialog-centered::before {
    height: ~"calc(100vh - (1.75rem * 2))";
  }
  .modal-sm {
    max-width: 300px;
  }
}
@media (min-width: 992px) {
  .modal-lg, .modal-xl {
    max-width: 800px;
  }
}
@media (min-width: 1200px) {
  .modal-xl {
    max-width: 1140px;
  }
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}
.col-md-4 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}
.form-group {
  margin-bottom: 1rem;
}
.form-control {
  display: block;
  width: 100%;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}
.col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
}
.col-md-auto {
  position: relative;
  padding-right: 15px;
  padding-left: 15px;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}
.mbr-section-btn {
  margin: 0;
  .btn {
    margin: 0;
  }
}