.overlay {
  position: fixed;
  z-index: 700;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,0.6);
  display: none;
}
.overlay.active {
  display: block;
}
.overlay .flex-popap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay .flex-popap .popap {
  position: relative;
  background-color: #fff;
  padding: 20px 35px 20px;
  margin: 0 10px;
  max-width: 300px;
  overflow: auto;
}