/* Modali overrides — px values to fix Bricks Builder html{font-size:10px}
   The npm modali package bundles its own CSS with rem values inside the JS,
   which gets injected before this file. We use !important to override. */
html.r2-editor-open { font-size: 16px !important; }

@media screen and (min-width: 900px) {
  .modali.modali-size-large{
    width: 90vw !important;
    max-width: 90vw !important;
  }

  .modali-body{
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
}

.modali-overlay,
.modali-wrapper{
    z-index: 100000 !important;
}

.modali-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  opacity: .5;
}

.modali-wrapper {
  display: block;
  position: fixed;
  padding: 8px !important;
  top: 0;
  left: 0;
  z-index: 100001;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
  outline: 0;
}

.modali {
  z-index: 100;
  background: white;
  position: relative;
  margin: 28px auto !important;
  border-radius: 3px;
  pointer-events: none;
}

.modali-content {
  pointer-events: auto;
}

.modali-header {
  display: flex;
  align-items: flex-start;
  padding: 24px 24px 8px 24px !important;
}

.modali-header .modali-title {
  font-weight: 400;
  font-size: 19px !important;
  color: #9EC0BE;
  font-family: Montserrat,"Montserrat Fallback";
}

.modali-close-button {
  padding: 16px !important;
  background: white;
  margin: -16px -16px -16px auto !important;
  font-size: 22px !important;
  font-weight: 700;
  line-height: 1;
  color: #000;
  opacity: .3;
  cursor: pointer;
  border: none;
  outline: 0 !important;
}

.modali-close-button:hover {
  opacity: .8;
  text-decoration: none;
}

.modali-body {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #fff;
  border-radius: 5px !important;
}

.modali-body-style {
  padding: 8px 24px !important;
}

.modali-footer {
  padding: 16px 24px !important;
  display: flex;
  justify-content: flex-end;
}

@media (min-width: 1025px) {
  .modali-open {
    padding-right: 15px;
  }
}

.modali-open {
  overflow: hidden;
}

/* Size Classes */

.modali-size-regular {
  min-width: 100%;
  max-width: 500px;
}

@media (min-width: 500px) {
  .modali-size-regular {
    min-width: 500px !important;
  }
}

.modali-size-large {
  min-width: 100%;
  max-width: 800px;
}

@media (min-width: 500px) {
  .modali-size-large {
    min-width: 500px !important;
  }
}

/* Position Classes */

.modali-wrapper-centered {
  top: 40% !important;
}

@media (min-width: 1000px) {
  .modali-wrapper-centered {
    top: 0 !important;
    display: flex !important;
    align-items: center;
  }
}

/* Button Classes */

.modali-button {
  font-size: 14px !important;
  font-weight: 700;
  border: none;
  border-radius: 3px;
  padding: 5px 16px !important;
  margin-left: 8px !important;
}

.modali-button-cancel {
  background: #fff;
  color: #000;
}

.modali-button-destructive {
  background: #FF1654;
  color: #fff;
}

.modali-button-default {
  background: #247BA0;
  color: #fff;
}

/* Animation Classes */

.modali-animated {
  animation-duration: .5s;
  animation-fill-mode: both;
}

.modali-animation-fade-in {
  animation-name: fadeIn;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 30%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
