:root {
  --popup-width: 700px;
  --popup-height: 500px;
  --close-x: 38px;
  --close-y: 22px;
  --text-dist: 25px;
  --submit-width: 175px;
  --submit-height: 36px;
  --submit-radius: 18px;
  --submit-fontsize: 1.4375em;
  --submit-dist: 12px;
  --thanks-button-dist: 36px;
}
.b-brand-orange {
  background-color: var(--brand-orange);
}
#popup-aug .popup-content {
  width: fit-content;
  height: fit-content;
}
#popup-aug .popup-default {
  width: var(--popup-width);
  height: var(--popup-height);
  padding: 0 15px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  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);
}
#popup-aug .popup-thanks {
  width: var(--popup-width);
  height: var(--popup-height);
  padding: 0 15px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url(../images/hero/thanks-back.webp);
  background-image: -webkit-image-set(url("../images/hero/thanks-back.webp") 1x, url("../images/hero/thanks-back@2x.webp") 2x);
}
#popup-aug .popup-close {
  width: auto;
  height: auto;
  top: 0;
  right: 0;
  padding: 22px 26px;
}
#popup-aug form {
  margin-top: var(--text-dist);
}
#popup-aug .button {
  width: 202px;
  height: 36px;
  border-radius: 18px;
  font-size: 23.5px;
  margin-top: 17px;
  line-height: 0;
  padding: 0;
  font-family: "mr-eaves-xl-modern" !important;
}
#popup-aug .form-action {
  display: flex;
  justify-content: center;
  align-items: center;
}
#popup-aug .popup-thanks {
  width: 704px;
  height: 505px;
  padding: 0 15px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url(../images/hero/thanks-back.webp);
  background-image: -webkit-image-set(url("../images/hero/thanks-back.webp") 1x, url("../images/hero/thanks-back@2x.webp") 2x);
}
#popup-aug .popup-thanks .button {
  width: 217.5px;
  margin-top: 31px;
  margin-bottom: 34px;
  text-decoration: none !important;
  color: white !important;
}
#popup-aug p {
  margin: 0;
  padding: 0;
}
#popup-aug .form-text-top {
  font-size: 27px;
  line-height: 1.2em;
}
#popup-aug .thanks-top {
  font-size: 37.5px;
  line-height: 1.2em;
  color: var(--darkblue);
  margin-bottom: 0;
  margin-top: 0;
}
#popup-aug .thanks-bottom {
  font-size: 62.5px;
  line-height: 1.2em;
}
#popup-aug .thanks-center {
  font-size: 20px;
  line-height: 1.2em;
  margin-top: 11px;
}
@supports (background: -webkit-named-image(i)) {
  #popup-aug .button {
    padding-top: 0px;
  }
}
@media screen and (max-width: 567px) {
  :root {
    --popup-width: 375px;
    --popup-height: 625px;
    --close-x: 25px;
    --close-y: 26px;
    --text-dist: 21px;
    --submit-height: 30px;
    --submit-radius: 15px;
    --submit-fontsize: 1.25em;
    --submit-dist: 3px;
    --thanks-button-dist: 63px;
  }
  #popup-aug .popup-content {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
  }
  #popup-aug .popup-default {
    width: 100%;
    height: 100%;
    background-size: 100% 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);
  }
  #popup-aug .popup-thanks {
    width: 100%;
    height: 100%;
    background-image: url(../images/hero/thanks-back-m.webp);
    background-image: -webkit-image-set(url("../images/hero/thanks-back-m.webp") 1x, url("../images/hero/thanks-back-m@2x.webp") 2x);
  }
  #popup-aug .popup-form {
    width: 100%;
  }
  #popup-aug .popup-close {
    width: 70px;
  }
  #popup-aug .aug-note {
    font-size: 13px;
    margin-top: 74px;
    color: white !important;
  }
  #popup-aug .form-text-top {
    font-size: 26px;
    line-height: 1.2;
  }
  #popup-aug .thanks-top {
    font-size: 29px;
  }
  #popup-aug .thanks-center {
    margin-top: 11px;
    padding-top: 10px;
  }
  #popup-aug .thanks-bottom {
    font-size: 45px;
    line-height: 1.2;
    padding-bottom: 10px;
  }
  #popup-aug .button,
  #popup-aug .popup-thanks .button {
    font-size: 20px;
    width: 177px;
  }
}
