/* Modal base styles */
.modal-is-active {
  overflow: hidden;
}
.modal {
  visibility: hidden;
}
.modal--active {
  visibility: visible;
}
.modal__window {
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  -o-backface-visibility: hidden;
  backface-visibility: hidden;
  background: #fff;
  height: auto;
  left: 50%;
  max-height: 100%;
  max-width: 1200px;
  min-height: 300px;
  max-height: 95vh;
  /*overflow: hidden;*/
  opacity: 0;
  /*overflow-y: auto;*/
  position: fixed;
  top: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%) scale(.75);
  -moz-transform: translateX(-50%) translateY(-50%) scale(.75);
  -ms-transform: translateX(-50%) translateY(-50%) scale(.75);
  -o-transform: translateX(-50%) translateY(-50%) scale(.75);
  transform: translateX(-50%) translateY(-50%) scale(.75);
  -webkit-transition: all .3s ease;
  -moz-transition: all .3s ease;
  -ms-transition: all .3s ease;
  -o-transition: all .3s ease;
  transition: all .3s ease;
  width: 96%;
  z-index: 1001;
  box-shadow: 0 0 40px 0 rgba(0,0,0,.15);
}
.modal--active .modal__window {
  opacity: 1;
  -webkit-transform: translateX(-50%) translateY(-50%) scale(1);
  -moz-transform: translateX(-50%) translateY(-50%) scale(1);
  -ms-transform: translateX(-50%) translateY(-50%) scale(1);
  -o-transform: translateX(-50%) translateY(-50%) scale(1);
  transform: translateX(-50%) translateY(-50%) scale(1);
}

.modal__close-btn {
  background: transparent;
  cursor: pointer;
  height: 50px;
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  z-index: 999;
  outline: none;
  border: none;
}
.modal__close-icon {
  height: 20px;
  width: 20px;
}


.modal__overlay {
  background: #fff;
  height: 100%;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  -webkit-transition: all .5s ease;
  -moz-transition: all .5s ease;
  -ms-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
  width: 100%;
  visibility: hidden;
  z-index: 1000;
}
.modal--active .modal__overlay {
  opacity: .85;
  visibility: visible;
}



.popup_wrap .popup_img {
    position: relative;
    bottom: -530px;
    -webkit-transition: all .6s ease;
  -moz-transition: all .6s ease;
  -ms-transition: all .6s ease;
  -o-transition: all .6s ease;
  transition: all .6s ease;
  -webkit-transition-delay: .5s;
    transition-delay: .5s;
}
.modal--active .popup_wrap .popup_img{
  bottom: 0;
}

.popup_title {
    position: relative;
    top: -250px;
    -webkit-transition: all .5s ease;
  -moz-transition: all .5s ease;
  -ms-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
  -webkit-transition-delay: .4s;
    transition-delay: .4s;
}
.modal--active .popup_title{
  top: 0;
}
.popup_flag_img, .popup_content p, .popup_content a{
  position: relative;
    bottom: -550px;
    -webkit-transition: all .7s ease;
  -moz-transition: all .7s ease;
  -ms-transition: all .7s ease;
  -o-transition: all .7s ease;
  transition: all .7s ease;
  -webkit-transition-delay: .5s;
    transition-delay: .5s;
}
.popup_content p{
    -webkit-transition: all .8s ease;
  -moz-transition: all .8s ease;
  -ms-transition: all .8s ease;
  -o-transition: all .8s ease;
  transition: all .8s ease;
  -webkit-transition-delay: .7s;
    transition-delay: .7s;
    bottom: -350px;
}
.popup_content a{
  margin-bottom: 20px;
  -webkit-transition: all .9s ease;
     -moz-transition: all .9s ease;
      -ms-transition: all .9s ease;
       -o-transition: all .9s ease;
          transition: all .9s ease;
  -webkit-transition-delay: 0s;
          transition-delay: 0s;
    bottom: -250px;
    width: auto;
    top: inherit;
}
.modal--active .popup_flag_img, .modal--active .popup_content p, .modal--active .popup_content a{
  bottom: 0;
}
#gift_form {
    float: left;
    max-height: 300px;
    overflow: auto;
    width: 100%;
}
.modal__content {
    max-height: 100vh;
    overflow: auto;
}
