.fade {
  -webkit-transition: opacity .15s linear;
  -o-transition: opacity .15s linear;
  transition: opacity .15s linear
}

@media screen and (prefers-reduced-motion:reduce) {
  .fade {
      -webkit-transition: none;
      -o-transition: none;
      transition: none
  }
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  overflow: hidden;
  outline: 0
}

.modal-content,
.modal-dialog-centered {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox
}

.modal-dialog {
  position: relative;
  margin: .5rem;
  pointer-events: none;
  z-index: 2;
}

@media screen and (prefers-reduced-motion:reduce) {
  .modal.fade .modal-dialog {
      -webkit-transition: none;
      -o-transition: none;
      transition: none
  }
}

.modal-dialog-centered {
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  min-height: calc(100% - (.5rem * 2))
}

.modal-dialog-centered::before {
  display: block;
  height: calc(100vh - (.5rem * 2));
  content: ""
}

.modal-content {
  position: relative;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: var(--white);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  outline: 0
}

.modal-backdrop {
  position: fixed;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background-color: var(--gray900);
}

.modal-backdrop.show {
  opacity: .4
}

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

.modal-body {
  position: relative;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1rem
}

.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll
}

/*
@media (max-width:767px) {
  ._phone_device .modal-backdrop {
      position: fixed;
  }
  .iOs .modal-backdrop {
      -ms-touch-action: none;
      touch-action: none;
  }
}
*/

@media (min-width:768px) {
  .modal-dialog {
      max-width: 500px;
      margin: 1.75rem 0
  }
  .modal-dialog-centered {
      min-height: calc(100% - (1.75rem * 2))
  }
  .modal-dialog-centered::before {
      height: calc(100vh - (1.75rem * 2))
  }
}

.modal.fade .modal-dialog {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);
  -webkit-transition: -webkit-transform .2s ease-out;
  -o-transition: transform .2s ease-out;
  transition: transform .2s ease-out;
  transition: transform .2s ease-out, -webkit-transform .2s ease-out
}

@media (max-width: 767px){
  .modal-layout{
      overflow: hidden ;
  }
  .modal.fade .modal-dialog {
      -webkit-transform: translate(0, 8%);
      -ms-transform: translate(0, 8%);
      transform: translate(0, 8%);
  }
}

.modal.show .modal-dialog {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0)
}

.modal-layout {
  width: 100%;
  min-height: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
}

.modal-layout>.modal-close {
  padding: .625rem;
  position: fixed;
  top: .625rem;
  right: .625rem;
  z-index: 1;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, .5);
  color: var(--white)
}

.modal-dialog {
  width: calc(100% - 30px);
  -webkit-box-flex: 1;
  -webkit-flex: 1 0 auto;
  -ms-flex: 1 0 auto;
  flex: 1 0 auto
}

.modal-content {
  border: 0;
  border-radius: .5rem;
  -webkit-box-shadow: 0 .1875rem .5625rem rgba(0, 0, 0, .15);
  box-shadow: 0 .1875rem .5625rem rgba(0, 0, 0, .15)
}

.modal-close {
  width: auto;
  padding: .9375rem;
  margin: 0;
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  background: 0;
  appearance: none;
  outline: 0
}