:root {
  --popup-width: 731px;
  --popup-height: 502px;
  --close-x: 21.5px;
  --close-y: 28px;
  --default-top: 81.5px;
  --text-dist: 17px;
  --submit-width: 200.5px;
  --submit-height: 40px;
  --submit-radius: 20px;
  --submit-fontsize: 17.65px;
  --submit-dist: 36.5px;
  --thanks-top: 145px;
  --thanks-button-dist: 24.4px;
}
#popup-aug2 .popup-content {
  width: var(--popup-width);
  height: var(--popup-height);
  padding: 0 15px;
  background-image: url(../images/hero/popup-back.webp);
  background-image: -webkit-image-set(url("../images/hero/popup-back.webp") 1x, url("../images/hero/popup-back@2x.webp") 2x);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#popup-aug2 .popup-close {
  width: auto;
  height: auto;
  top: 0;
  right: 0;
  padding: var(--close-y) var(--close-x);
}
#popup-aug2 .aug2-apotek {
  font-family: "apotek-cond", "Arial Narrow", Arial, sans-serif;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  paint-order: stroke fill;
  white-space: nowrap;
}
#popup-aug2 .form-text {
  left: 1.5px;
  font-size: 46px;
  line-height: 46px;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 6px #000000;
}
#popup-aug2 .thanks-title {
  left: -0.2px;
  font-size: 46.91px;
  line-height: 46.91px;
  font-weight: 500;
}
#popup-aug2 .popup-default {
  justify-content: flex-start;
  flex-direction: column;
  padding-top: var(--default-top);
}
#popup-aug2 form {
  margin-top: var(--text-dist);
}
#popup-aug2 .button {
  width: var(--submit-width);
  height: var(--submit-height);
  border-radius: var(--submit-radius);
  font-size: var(--submit-fontsize);
  margin-top: var(--submit-dist);
  padding-top: 3px;
  font-family: "Avenir Black", Avenir, sans-serif;
  text-box: trim-both cap alphabetic;
}
#popup-aug2 .popup-thanks {
  justify-content: flex-start;
  padding-top: var(--thanks-top);
}
#popup-aug2 .success-body strong {
  font-family: "AvenirNextLTW01BoldRegular", "Avenir Next Medium", Avenir, sans-serif;
  font-weight: normal;
}
#popup-aug2 .success-body {
  font-size: 24px;
  line-height: 27.3px;
  max-width: 460px;
  margin: 12.6px auto 0;
  font-family: "Avenir Next Medium", "AvenirNext-Medium", Avenir, sans-serif;
  color: #ffffff;
}
#popup-aug2 .popup-thanks .button {
  margin-top: var(--thanks-button-dist);
}
@media screen and (min-width: 568px) {
  #popup-aug2 .sm-hide.md-hide.lg-hide {
    display: none !important;
  }
}
@media screen and (max-width: 567px) {
  #popup-aug2 .xs-hide {
    display: none !important;
  }
  #popup-aug2 .popup-content {
    --popup-width: 100%;
    --popup-height: 100%;
    width: 100%;
    height: 100%;
    background-image: url(../images/hero/popup-back-m.webp);
    background-image: -webkit-image-set(url("../images/hero/popup-back-m.webp") 1x, url("../images/hero/popup-back-m@2x.webp") 2x);
    background-size: cover;
    background-position: center top;
  }
  #popup-aug2 .form-text {
    font-size: 35.52px;
    line-height: 35.52px;
    -webkit-text-stroke: 4px #000000;
  }
  #popup-aug2 .thanks-title {
    font-size: 35.52px;
    line-height: 38.61px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  #popup-aug2 .popup-default {
    justify-content: center;
    padding-top: 0;
  }
  #popup-aug2 .popup-form {
    width: 100%;
  }
  #popup-aug2 form {
    margin-top: 19px;
    width: 313px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  #popup-aug2 .button {
    margin-top: 27px;
  }
  #popup-aug2 .popup-thanks {
    justify-content: center;
    padding-top: 0;
  }
  #popup-aug2 .success-body {
    font-size: 22px;
    line-height: 25.4px;
    max-width: 340px;
    margin-top: 16px;
  }
  #popup-aug2 .popup-thanks .button {
    margin-top: 27px;
  }
}
