body.umodal-show main {
  overflow: visible;
}

.overlay-umodal {
  position: fixed;
  visibility: hidden;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  -webkit-transition: all 100ms;
  transition: all 100ms;
  background-color: none;
}

.overlay-umodal.show {
  visibility: visible;
  background-color: rgba(238, 238, 238, 0.8);
}

.umodal {
  border: 1px solid #ccc;
  border-radius: 0;
  max-width: 1150px;
  margin: 0 auto;
  position: absolute;
  z-index: 1100;
  background: #fff;
  visibility: hidden;
  -webkit-transition: opacity 200ms;
  transition: opacity 200ms;
  opacity: 0;
  width: 100%;
  max-width: 900px;
  min-height: 0;
  height: 0;
  overflow: hidden;
}

.umodal.show {
  -webkit-box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.4);
          box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.4);
  visibility: visible;
  opacity: 1;
  min-height: 200px;
  height: auto;
}

.umodal.show .umodal-content {
  display: block;
}

.umodal-header {
  background: #F5F5F5;
  padding: 0 40px;
  height: 70px;
  border-bottom: 1px solid #CCCCCC;
  font-size: 1.8rem;
  margin-bottom: 20px;
  line-height: 70px;
  min-width: 300px;
}

.umodal-content {
  overflow-x: hidden;
  display: none;
  padding: 0 40px;
}

.umodal-footer {
  border-top: 1px solid #CCCCCC;
  margin-top: 20px;
  padding: 20px 40px;
  background: #F5F5F5;
}

.umodal-footer:before, .umodal-footer:after {
  content: " ";
  display: table;
}

.umodal-footer:after {
  clear: both;
}

.umodal-footer button {
  margin-bottom: 0;
}

.umodal .icon-close {
  position: absolute;
  cursor: pointer;
  right: 10px;
  top: 10px;
  color: #999;
  padding: 10px;
  /*just to get more space for clicking*/
}

.umodal.transparent-footer .umodal-footer {
  margin-left: 40px;
  margin-right: 40px;
  background: none;
}

.scroll-content {
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

@media only screen and (max-width: 767px) {
  .umodal {
    max-width: 100%;
    border-radius: 0;
    border: none;
    top: 0;
    left: 0;
    right: 0;
  }

  .umodal.show {
    position: fixed;
  }

  .umodal-header {
    font-size: 2.2rem;
    line-height: 3.7rem;
    height: 3.7rem;
    margin: 0;
  }

  .umodal-content {
    padding: 10px 15px 0;
  }

  .umodal-content input[type=text],
.umodal-content input[type=email],
.umodal-content input[type=tel],
.umodal-content select,
.umodal-content input[type=password] {
    height: 40px;
  }

  .umodal.transparent-footer .umodal-footer {
    margin-left: 0;
    margin-right: 0;
  }

  .umodal-footer {
    margin-top: 0;
    padding: 10px 0;
  }

  .umodal-footer button,
.umodal-footer .button {
    font-size: 1.6rem;
    padding-top: 0.7rem;
    padding-bottom: 0.4rem;
  }
}