/**********************************************************************/
.mask {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(24, 24, 24, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  cursor: pointer;
  z-index: 1200;
}
body.popup-on .mask {
  opacity: 1;
  pointer-events: initial;
}
body.popup-on {
  overflow: hidden;
}

/**********************************************************************/
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  width: 540px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  border: 1px solid #656565;
  padding: 35px 40px;
  background-color: #181818;
  pointer-events: none;
  opacity: 0;
  overflow: auto;
  transition: opacity 0.3s;
  z-index: 1300;
}
body.admin-bar .popup {
  top: calc(50% + 16px);
  max-height: calc(100vh - 72px);
}
.popup.show {
  pointer-events: initial;
  opacity: 1;
}
.popup__content {
  max-height: calc(100vh - 110px);
  margin: auto;
  overflow-x: hidden;
  overflow-y: auto;
}
body.admin-bar .popup__content {
  max-height: calc(100vh - 142px);
}
.popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: opacity 0.3s;
}
.popup__close:hover {
  opacity: 0.6;
}
.popup__close:before,
.popup__close:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background-color: #ffffff;
}
.popup__close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.popup__close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.popup__content .popup__txt {
  font-size: 13px;
  font-weight: 500;
  line-height: 21px;
  color: #ffffff;
}

/**********************************************************************/
.popup-order {
  width: 100vw !important;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border: none;
  padding: 0 !important;
  background-color: #f8f8f8;
}
body.admin-bar .popup-order {
  height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
}
.popup-order .popup-order__bg {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
}
.popup-order .popup__content {
  position: relative;
  width: 910px;
  max-width: calc(100% - 40px) !important;
  max-height: calc(100% - 40px) !important;
}
.popup-order .popup__close {
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
}
.popup-order .popup__close:before,
.popup-order .popup__close:after {
  width: 32px;
  height: 2px;
  background-color: #1d1d1d;
}
.popup-order .popup-order__title {
  margin-bottom: 20px;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  color: #1d1d1d;
}
.popup-order .formarea {
  padding: 40px;
  background-color: #ffffff;
}
.popup-order .formarea__title {
  margin-bottom: 35px;
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  color: #000000;
}
.popup-order .formarea__row_submit {
  margin-top: 35px;
  margin-bottom: 0;
  border-top: 1px solid #e0e0e0;
  padding-top: 35px;
}
.popup-order .formarea__row_submit .formarea__col {
  display: flex;
  justify-content: space-between;
}
.popup-order .formarea__submit {
  margin-right: 30px;
}
.popup-order .formarea__note {
  flex-grow: 1;
  margin: auto auto auto 0;
  max-width: 460px;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: #b1b1b1;
}

/**********************************************************************/
/*********************         RESPONSIVE         *********************/
/**********************************************************************/
@media screen and (max-width: 1024px) {
  /**********************************************************************/
  .popup {
    width: 480px;
    padding: 30px 25px;
  }
  .popup__content .popup__txt {
    font-size: 12px;
    line-height: 19px;
  }

  /**********************************************************************/
  .popup-order .popup__close:before,
  .popup-order .popup__close:after {
    width: 24px;
  }
  .popup-order .popup-order__title {
    margin-bottom: 10px;
    font-size: 32px;
  }
  .popup-order .formarea {
    padding: 30px 25px;
  }
}

@media screen and (max-width: 782px) {
  /**********************************************************************/
  body.admin-bar .popup {
    top: calc(50% + 23px);
    max-height: calc(100vh - 86px);
  }
  body.admin-bar .popup-order {
    height: calc(100vh - 46px);
    max-height: calc(100vh - 46px);
  }
  body.admin-bar .popup__content {
    max-height: calc(100vh - 156px);
  }
}

@media screen and (max-width: 767px) {
  /**********************************************************************/
  .popup-order .popup__content {
    width: 560px;
  }
  .popup-order .popup-order__title {
    font-size: 28px;
  }
  .popup-order .formarea {
    padding: 20px;
  }
  .popup-order .formarea__title {
    margin-bottom: 20px;
  }
  .popup-order .formarea__row_submit {
    margin-top: 20px;
    padding-top: 20px;
  }
  .popup-order .formarea__row_submit .formarea__col {
    flex-direction: column;
  }
  .popup-order .formarea__submit {
    margin: 0 auto 20px;
  }
  .popup-order .formarea__note {
    margin: 0;
    max-width: 100%;
    font-size: 10px;
    line-height: 14px;
  }
}
