.overflow {
  display: none;
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px 50px 20px 20px;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 32px;
  width: 536px;
  max-width: calc(100% - 104px);
  max-height: calc(100% - 64px);
  box-shadow: 0px 32px 64px rgba(31, 54, 94, 0.04);
  border-radius: 16px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1010;
}

.modal-content [slider] {
  margin: 32px 0 64px 0;
}

.modal-content .more button,
.modal-content .more a {
  margin-bottom: 0;
  margin-top: 6px;
}

.modal-header {
  position: relative;
}

.modal-header .modal-close {
  position: absolute;
  right: 3px;
  cursor: pointer;
  top: 10px;
}

.modal-header h2 {
  font-weight: 600;
  font-size: 24px;
  line-height: 140%;
  padding: 0;
  margin: 0 0 8px 0;
}

.modal-header h3 {
  font-weight: normal;
  font-size: 16px;
  line-height: 170%;
  padding: 0;
  margin: 0;
  color: var(--comment-font-color);
}

.modal-body.standard-form {
  display: flex;
  flex-wrap: wrap;
}

.modal-body {
  margin-top: 32px;
}

.modal-body.standard-form > div {
  width: calc(50% - 9px);
  margin-bottom: 24px;
  margin-top: 3px;
}

.modal-body.standard-form > div:nth-child(odd) {
  margin-right: 9px;
}

.modal-body.standard-form > div:nth-child(even) {
  margin-left: 9px;
}

.modal-slider-header {
  font-weight: 600;
  font-size: 18px;
  line-height: 160%;
  margin-bottom: 32px;
  position: relative;
}

.modal-slider-header .modal-value {
  position: absolute;
  right: 0;
  top: 0;
}

.modal-slider-header .modal-value span {
  font-weight: 600;
  font-size: 18px;
  line-height: 160%;
}

.modal-body.standard-form .modal-slider {
  width: 100%;
  margin-bottom: 62px;
}

.modal-footer {
  padding: 2px 16px;
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }

  to {
    top: 0;
    opacity: 1;
  }
}

@media only screen and (max-width: 768px) {
  .overflow {
    overflow: hidden;
    padding: 24px;
    width: calc(100% - 48px);
    height: calc(100% - 48px);
  }

  .modal-content {
    padding: 24px;
    max-width: calc(100% - 48px);
    height: calc(100% - 48px);
    max-height: none;
    position: fixed;
    overflow: auto;
    display: block;
    border-radius: 0;
    transform: translate(0);
    top: 0;
    left: 0;
  }

  /* .modal-body.standard-form {
    display: block;
    overflow: hidden;
    overflow-y: scroll;
    height: calc(100% - 186px);
  } */

  .modal-body.standard-form > div {
    width: 99%;
  }

  .modal-body.standard-form > div:nth-child(odd) {
    margin-right: 0;
  }

  .modal-body.standard-form > div:nth-child(even) {
    margin-left: 0;
  }

  .modal-body.standard-form .modal-slider {
    margin-bottom: 74px;
  }

  .modal-slider-header .modal-value {
    position: relative;
  }
}
