/**
 * Copyright 2016-present, Baifendian, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */
/**
 * Colors
 */
.bfd-modal--scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}
body.bfd-modal--open {
  overflow: hidden;
}
.bfd-modal {
  display: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.bfd-modal__backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: -1px;
  left: 0;
  opacity: 0;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.8);
}
.bfd-modal__modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  -webkit-overflow-scrolling: touch;
  outline: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.bfd-modal__modal-dialog {
  margin: 100px auto;
  width: 600px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.bfd-modal__modal-dialog--lock {
  -webkit-animation: bfd-modal-shake 0.8s;
  animation: bfd-modal-shake 0.8s;
}
@-webkit-keyframes bfd-modal-shake {
  10%,
  90% {
    -webkit-transform: translate3d(-1px, 0, 0);
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    -webkit-transform: translate3d(2px, 0, 0);
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    -webkit-transform: translate3d(-4px, 0, 0);
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    -webkit-transform: translate3d(4px, 0, 0);
    transform: translate3d(4px, 0, 0);
  }
}
@keyframes bfd-modal-shake {
  10%,
  90% {
    -webkit-transform: translate3d(-1px, 0, 0);
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    -webkit-transform: translate3d(2px, 0, 0);
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    -webkit-transform: translate3d(-4px, 0, 0);
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    -webkit-transform: translate3d(4px, 0, 0);
    transform: translate3d(4px, 0, 0);
  }
}
.bfd-modal__modal-content {
  opacity: 0;
  -webkit-transform: scale(0.98) translate3d(0, -10%, 0);
  transform: scale(0.98) translate3d(0, -10%, 0);
  -webkit-transform-origin: top;
  -ms-transform-origin: top;
  transform-origin: top;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.bfd-modal--sm .bfd-modal__modal-dialog {
  width: 300px;
}
.bfd-modal--lg .bfd-modal__modal-dialog {
  width: 1000px;
}
.bfd-modal__modal-header {
  background-color: #19afff;
  color: #fff;
  padding: 15px 20px;
  position: relative;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}
.bfd-modal__modal-header h1,
.bfd-modal__modal-header h2,
.bfd-modal__modal-header h3,
.bfd-modal__modal-header h4,
.bfd-modal__modal-header h5,
.bfd-modal__modal-header h6 {
  margin: 0;
  padding: 0;
  font-weight: normal;
  font-size: 14px;
}
.bfd-modal__modal-header-close {
  position: absolute;
  top: 50%;
  right: 15px;
  margin-top: -11px;
}
.bfd-modal__modal-body {
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  padding: 20px;
  background-color: #fff;
}
div.bfd-modal--open .bfd-modal__backdrop {
  opacity: .6;
}
div.bfd-modal--open .bfd-modal__modal-content {
  opacity: 1;
  -webkit-transform: scale(1) translate3d(0, 0, 0);
  transform: scale(1) translate3d(0, 0, 0);
}
