.vm-button-wrapper {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
}

.vm-button {
  background-color: #2a9cf1;
  font-family: "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
  border: none;
  border-radius: 2%;
  box-shadow: 1px 0px 9px rgba(0, 0, 0, 0.35);
  color: #FFF;
  display: block;
  position: fixed;
  bottom: 1rem;
  padding: 12px 48px;
  font-size: 16px;
  margin: 0 auto 0 -105px;
  left: 50%;
  z-index: 99999;
}
.vm-button:focus {
  outline: auto;
}

.vm-button.vm-hide {
  display: none;
}

.vm-wrapper {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  display: -ms-flexbox !important;
  display: flex !important;
  -ms-flex-align: center;
      align-items: center;
  -ms-flex-pack: initial;
      justify-content: initial;
  z-index: 99999;
  background-color: transparent;
  transition: background-color 300ms;
  pointer-events: none;
}

.vm-wrapper iframe {
  width: 100%;
  height: 100%;
  top: 0;
  position: fixed;
  transition: all 300ms ease-in-out;
}

.vm-wrapper.vm-show {
  pointer-events: auto;
}

.vm-wrapper.vm-snippet iframe {
  top: 0;
}

body.vd-widget-closed > .vm-wrapper {
  position: absolute;
  left: -999em;
}

body.vd-noscroll {
  overflow: hidden;
  position: fixed;
}

html.vd-noscroll {
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* Mobile Styles */
@media (max-device-width : 736px) {
  body.vd-noscroll {
    position: fixed !important; /* needed for iOS Safari fix */
  }
}

/* Desktop styles */
@media (min-width: 576px) {
  .vm-button {
    right: 1rem;
    left: auto;
  }

  .vm-wrapper {
    -ms-flex-pack: center;
        justify-content: center;
  }

  .vm-wrapper iframe {
    width: 770px;
    height: 600px;
    top: auto;
    opacity: 0;
    margin-top: 50px;
    position: static;
  }

  .vm-wrapper.vm-show {
    pointer-events: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .vm-wrapper.vm-show iframe {
    top: auto;
    opacity: 1;
    margin-top: 0;
  }

  body.vd-noscroll {
    position: initial;
  }
}
