@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

/* Основной поп-ап */
.unisender-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99888;
  overflow-y: hidden;
  overflow-x: hidden;
  visibility: hidden;
  opacity: 0;
  transition: all 0.8s ease 0s;
}

.unisender-popup.open {
  visibility: visible;
  opacity: 1;
}

.unisender-popup.open .unisender-popup__content {
  transform: scale(1);
}

.unisender-popup__area {
  position: absolute;
  background-color: #000;
  opacity: 0.5;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.unisender-popup_body {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unisender-popup .unisender-highlight {
  color: #0a5bff;
  font-weight: 500;
}

.unisender-popup__content {
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  justify-content: space-between;
  background-color: #d8dcf5;
  color: #212529;
  width: 980px;
  height: 537px;
  border-radius: 8px;
  position: relative;
  transform: scale(0);
  transition: transform 0.8s;
}

.unisender-popup__content::before {
  content: "";
  display: none;
}

.unisender-popup__close {
  width: 42px;
  height: 42px;
  background-color: #d8dcf5;
  border-radius: 100%;
  text-align: center;
  position: absolute;
  top: 20px;
  right: 20px;
  color: #001a34;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.unisender-popup .icon--mobile {
  display: none;
}

.unisender-popup__close:hover {
  background-color: #ffffffe9;
}

.unisender-popup__image--desktop {
  display: block;
}

.unisender-popup__image--mobile {
  display: none;
}

.unisender-popup__image--mobile {
  width: 393px;
  height: 116px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  flex-shrink: 0;
  align-self: center;
}

.unisender-popup__title {
  text-align: left;
  font-size: 50px;
  color: #212529;
  font-weight: 700;
  line-height: 100%;
}

.unisender-popup__subtitle {
  font-size: 24px;
  font-weight: 400;
  line-height: 100%;
  margin-top: 16px;
  margin-bottom: 40px;
  color: #212529;
}

.unisender-popup__container {
  box-sizing: border-box;
  margin: 40px;
  margin-right: 0px;
  height: auto;
}

#unisender-popup__form {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  row-gap: 16px;
}

.unisender-popup__input {
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
  width: 440px;
  height: 64px;
  font-size: 20px;
  font-weight: 400;
  border: solid;
  border-width: 1px;
  border-radius: 2px;
  padding: 10px 0px 10px 20px;
  border-color: #fff;
}

.unisender-popup input:focus {
  outline: none;
}

.unisender-popup__message {
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  margin-top: 7px;
}

.unisender-popup__checkbox {
  width: 410px;
  margin-top: 40px;
  font-size: 13px;
  font-weight: 400;
  color: #212529;
  line-height: 110%;
  display: flex;
  align-items: center;
}

.unisender-popup__checkbox input[type="checkbox"] {
  display: none;
}

.unisender-popup__checkbox label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  user-select: none;
}

.unisender-popup__checkbox label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 17%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 1px solid #212529;
  background-color: transparent;
  box-sizing: border-box;
  background-image: none;
}

.unisender-popup__checkbox label.checkbox-error:before {
  border-color: #ff0000;
}

.unisender-popup__checkbox input[type="checkbox"]:checked + label:before {
  border-color: #212529;
}

.unisender-popup__checkbox input[type="checkbox"]:checked + label:after {
  content: "";
  position: absolute;
  left: 4px;
  top: 17%;
  transform: translateY(-50%);
  width: 11px;
  height: 8px;
  background-image: url("/assets/images/Vector\ 1.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.unisender-popup__btn {
  font-family: "Inter", sans-serif;
  background-color: #f64f00;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border: 0px;
  border-radius: 2px;
  width: 440px;
  height: 64px;
  line-height: 120%;
  transition: 0.2s ease;
  transition-property: color, background;
  cursor: pointer;
}

.unisender-popup__btn:hover {
  background-color: #f64e00d5;
}

.unisender-popup__btn.disabled {
  background-color: #ccc;
  color: #666;
  border-color: #ccc;
  cursor: not-allowed;
}

.unisender-popup .unisender-privacy__policy {
  color: #f64f00;
  text-decoration: none;
}

/*---------------поп-ап с подпиской---------------*/
.unisender-popup__subscribe {
  position: fixed;
  z-index: 99888;
  font-family: "Inter", sans-serif;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transition: all 0.8s ease 0s;
  opacity: 0;
}

.unisender-popup__subscribe.open {
  visibility: visible;
  opacity: 1;
}

.unisender-popup__subscribe.open .unisender-popup__sub__content {
  transform: scale(1);
}

.unisender-popup__sub__content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  background-color: #d8dcf5;
  color: #212529;
  width: 980px;
  height: 537px;
  border-radius: 8px;
  position: relative;
  transition: all 0.8s ease 0s;
  transform: scale(1);
}

.unisender-popup__sub__container {
  margin: 140px 32px;
  margin-right: 0;
}

.unisender-popup__sub__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 40px;
}

.unisender-popup__sub__subtitle {
  margin-top: 24px;
  font-size: 25px;
  line-height: 25px;
  font-weight: 400;
  color: #f64f00;
}

/* Адаптив */
@media (max-width: 963px) {
  .unisender-popup .icon--mobile {
    display: block;
  }

  .unisender-popup .icon--desktop {
    display: none;
  }

  .unisender-popup__content,
  .unisender-popup__sub__content {
    width: 100%;
    max-width: 393px;
    height: 509px;
    flex-direction: column-reverse;
    align-items: center;
  }

  .unisender-popup__container {
    box-sizing: border-box;
    padding: 24px;
    margin: 0;
    max-width: 393px;
    width: 100%;
  }

  .unisender-popup__content::before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 8px;
    height: 116px;
    background-color: #b2b9e4;
    z-index: 0;
  }

  .unisender-popup__image,
  .unisender-popup__container {
    position: relative;
    z-index: 1;
  }

  .unisender-popup__close {
    z-index: 99999;
    top: 8px;
    right: 8px;
  }

  .unisender-popup__image--desktop {
    display: none;
  }
  .unisender-popup__image--mobile {
    display: block;
  }

  .unisender-popup__title {
    font-size: 30px;
  }

  .unisender-popup__subtitle {
    font-size: 19px;
    margin-bottom: 21px;
  }

  #unisender-popup__form {
    row-gap: 8px;
  }

  .unisender-popup__input {
    width: 100%;
    height: 51px;
    font-size: 16px;
  }

  .unisender-popup__btn {
    width: 100%;
    height: 51px;
    font-size: 16px;
  }

  .unisender-popup__checkbox {
    margin-top: 24px;
    font-size: 11px;
    width: 317px;
  }

  .unisender-popup__sub__container {
    margin: auto;
  }

  .unisender-popup__sub__title {
    text-align: center;
  }

  .unisender-popup__sub__subtitle {
    text-align: center;
  }
}
