#popupOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

#popupModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  max-width: 1000px;
  max-height: 800px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.popup-content {
  flex: 1;
  overflow: auto;
}

.popup-header {
  background: #efefef;
  padding: 20px;
  text-align: center;
}

.popup-footer {
  background: #efefef;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 37px;
  padding-left: 37px;
  text-align: center;
}

.popup-close1 {
  position: absolute;
  top: 0px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
}

.popup-close2 {
  color: #686868;
  border-color: #e3e3e3;
  font-size: 1.8rem;
  padding-top: 5px;
  min-width: 144px;
  padding-bottom: 4px;
  display: inline-block;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 100vh;
  background: #fff;
  border: solid 2px transparent;
  padding-right: 10px;
  padding-left: 10px;
}

html.modal-open {
  overflow: hidden !important;
  height: 100%;
}

@media only screen and (max-width: 660px) {
  #popupModal {
    width: 90%;
    height: 90%;
    max-width: none;
    max-height: none;
  }
}
