
#pop-from-box {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  transition: opacity .3s;
  pointer-events: none;
  opacity: 0;
}

#pop-from-box.active {
  pointer-events: all;
  opacity: 1;
}

#pop-from-box.active .from-box-content {
  transform: translateY(0);
}

#pop-from-box .from-box-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 810px;
  height: 455px;
  max-height: 90vh;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  background-color: #fff;
  padding: 30px 40px;
  box-sizing: border-box;
  overflow: auto;
  transition: transform .3s;
  transform: translateY(24px);
}

#pop-from-box .from-box-content .title {
  position: relative;
  text-align: center;
  line-height: 24px;
  width: 100%;
}

#pop-from-box .from-box-content .title>span {
  font-size: 30px;
  font-weight: 600;
  color: #333;
}

#pop-from-box .from-box-content .title .close {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

#pop-from-box .from-box-content .layui-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: auto;
  flex: 1;
}

#pop-from-box .from-box-content .grid-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 30px;
  width: 100%;
  text-align: left;
  margin-top: auto;
}

#pop-from-box .from-box-content .grid-box .form-item>div {
  position: relative;
  line-height: 18px;
  font-size: 18px;
  color: #999;
  width: fit-content;
  margin-bottom: 10px;
}

#pop-from-box .from-box-content .grid-box .form-item>div::after {
  content: '*';
  position: absolute;
  right: -.5em;
  top: 0;
  color: #ff1212;
}

#pop-from-box .from-box-content .grid-box .form-item .item::placeholder,
#pop-from-box .from-box-content .grid-box .form-item .item .placeholder {
  color: #999;
}

#pop-from-box .from-box-content .grid-box .form-item .item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  line-height: 60px;
  font-size: 18px;
  border: 0;
  color: #000;
  background-color: #f5f5f5;
  box-sizing: border-box;
  padding: 0 22.5px;
  transition-duration: .3s;
}

#pop-from-box .from-box-content .grid-box .form-item .item:hover {
  background-color: #eee;
}

.layui-dropdown {
  max-height: 40vh;
  overflow-x: hidden;
  overflow-y: auto;
}

#pop-from-box .from-box-content .item-btn {
  width: 350px;
  height: 60px;
  font-size: 20px;
  margin: auto;
  margin-bottom: 0;
  color: #fff;
  background-color: #e6322e;
  border: none;
  cursor: pointer;
}

@media screen and (max-width: 750px) {

  #pop-from-box .from-box-content .grid-box {
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 18px;
  }

  #pop-from-box .from-box-content {
    padding: 24px 20px;
    width: 90vw;
    height: 136vw;
  }

  #pop-from-box .from-box-content .title>span {
    font-size: 26px;
  }

  #pop-from-box .from-box-content .grid-box .form-item>div {
    font-size: 16px;
  }

  #pop-from-box .from-box-content .grid-box .form-item .item {
    height: 40px;
    line-height: 40px;
    font-size: 16px;
  }

  #pop-from-box .from-box-content .item-btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
    color: #fff;
    background-color: #e6322e;
  }
}