.bg-wg-modal {
    background-color: rgba(0, 0, 0, 0.85);
    width: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    /*padding-top: 100px;*/
    z-index: 1000;
  }
  .bg-wg-modal .wg-modal {
    display: block;
    width: 1015px;
    max-width: 80%;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
  }
  .bg-wg-modal.closing .wg-modal {
    -webkit-animation-name: animatetopHide;
    -webkit-animation-duration: 0.4s;
    -webkit-animation-fill-mode: forwards;
    animation-name: animatetopHide;
    animation-duration: 0.4s;
    animation-fill-mode: forwards;
  }
  .bg-wg-modal.closing {
    -webkit-animation-name: bgAnimatetopHide;
    -webkit-animation-duration: 0.4s;
    -webkit-animation-fill-mode: forwards;
    animation-name: bgAnimatetopHide;
    animation-duration: 0.4s;
    animation-fill-mode: forwards;
  }
  .wg-modal.verticalCentering {
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .wg-modal {
    display: none;
    margin: 100px auto;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 0;
  }
  .wg-modal.innerScroll .wg-content {
    max-height: calc(100vh - 240px);
    overflow-y: auto;
  }
  .wg-modal .wg-modal-close {
    position: absolute;
    right: 0;
    top: 15px;
    font-size: 0;
    line-height: 100%;
    cursor: pointer;
    height: 34px;
    width: 34px;
    text-align: center;
    z-index: 1;
    font-weight: 200;
    background: url(../images/close-line-icon.svg) no-repeat 0 0;
  }
  .wg-modal .wg-header {
    background-color: #eee;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
  }
  
  /* Add Animation */
  @-webkit-keyframes animatetop {
    from {
      top: -300px;
      opacity: 0;
    }
    to {
      top: 0;
      opacity: 1;
    }
  }
  @keyframes animatetop {
    from {
      top: -300px;
      opacity: 0;
    }
    to {
      top: 0;
      opacity: 1;
    }
  }
  
  @-webkit-keyframes animatetopHide {
    from {
      top: 0;
      opacity: 1;
    }
    to {
      top: -300px;
      opacity: 0;
    }
  }
  @keyframes animatetopHide {
    from {
      top: 0;
      opacity: 1;
    }
    to {
      top: -300px;
      opacity: 0;
    }
  }
  
  @-webkit-keyframes bgAnimatetopHide {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  @keyframes bgAnimatetopHide {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  
  @media (max-width: 1199px) {
    .bg-wg-modal .wg-modal {
      width: 90%;
      max-width: 100%;
    }
    .bg-wg-modal .wg-modal .popupwrap {
      padding: 30px;
    }
  }
  
  @media (max-width: 991px) {
    .bg-wg-modal .wg-modal .popupwrap {
      max-width: 100%;
    }
    .wg-content .order_pop_close.popup_close_btn {
      right: 0 !important;
    }
  }
  
  @media (max-width: 767px) {
    .bg-wg-modal .wg-modal .popupwrap {
      padding: 20px;
    }
  }