/* pop up */

.close-popup {
  position: absolute;
  top: 20px;
  right: 40px;
  cursor: pointer;
  height: 40px;
  width: 40px;
}

.close-popup::after,
.close-popup::before {
  display: block;
  width: 4px;
  height: 25px;
  content: '';
  background: #F00;
  position: absolute;
  left: 50%;
}

.close-popup::after {
  transform: rotate(45deg);
}

.close-popup::before {
  transform: rotate(135deg);
}

.popup {
  display: none;
  position: fixed;
  /* opacity: 0; */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.5s ease-in-out;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.inner_popup {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 50px;
  text-align: center;
  max-width: 600px;
  width: 70%;
  color: #000;
}

.inner_popup .content {
  display: block;
  background: none;
  width: 100%;
  padding: 0;
  
}

.inner_popup h1 {
  color: #0085cf;
  margin: 10px 0px;
}

.inner_popup p {
  margin: 5px 0px;
  line-height: 25px;
}

.inner_popup img {
  max-width: 150px;
  margin: 5px auto;
}

.inner_popup form {
  width: 95%;
  margin: 0 auto;
}

.inner_popup form input {
  text-indent: 0px;
  width: 95%;
    border-radius: 5px;
    line-height: 24px;
    font-size: 18px;
    outline: none;
    padding: 5px;
    margin: 5px auto;
}

.inner_popup form button {
  cursor: pointer;
    outline: none;
    width: 95%;
    background-color: #ff2828;
    color: #fff;
    border: none;
    border-radius: 10px;
    -webkit-box-shadow: 0px 5px 25px -5px rgba(0,0,0,1);
    -moz-box-shadow: 0px 5px 25px -5px rgba(0,0,0,1);
    box-shadow: 0px 5px 25px -5px rgba(0,0,0,1);
    animation: pulse 1s infinite alternate ease-in-out;
    font-size: 24px;
    line-height: 24px;
    padding: 15px;
    margin: 15px auto;
}

.inner_popup .prices {
      display: flex;
    font-size: 25px;
    justify-content: center;
    align-items: center;
}

.inner_popup .prices .oldprice {
    text-decoration: line-through;
    padding: 15px;
}

.inner_popup .prices .newprice {
    padding: 15px;
    font-size: 1.5em;
    color: red;
    font-weight: bold;
}


@media(max-width:600px),
(max-height: 900px) {
  .inner_popup {
    width: 90%;
    padding: 4vh;
    border-radius: 25px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  .inner_popup {
    max-height: 100vh;
  }
  .close-popup {
    top: 1.5vh;
    right: 1.5vh;
    width: 3vh;
    height: 3vh;
    max-width: 21px;
    max-height: 21px;
  }
}

@media screen and (max-width: 550px) {
  .inner_popup h1 {
    font-size: 22px;
  }
  .inner_popup p {
    font-size: 15px;
  }
}

@media screen and (max-width: 450px) {
  .inner_popup .prices .newprice {
    font-size: 22px;
  }
  .inner_popup .prices .oldprice {
    font-size: 18px;
  }
  .inner_popup img {
    max-width: 100px;
  }
}

@media (max-width: 400px), (max-height: 570px) {
  .inner_popup {
    max-height: 99vh;
    padding: 1vh;
  }
}

@media screen and (max-width: 350px) {
  .inner_popup .prices .newprice {
    font-size: 18px;
    padding: 5px;
  }
  .inner_popup .prices .oldprice {
    font-size: 16px;
    padding: 5px;
  }
  .inner_popup h1 {
    font-size: 18px;
  }
  .inner_popup p {
    font-size: 13px;
    line-height: 20px;
  }
  .inner_popup form input {
    line-height: 20px;
    font-size: 16px;
  }
  .inner_popup form button {
    font-size: 20px;
    line-height: 24px;
  }
}