
/* =========================
   POPUP T702 / T1093
   КРЕСТИК + ФОРМА + TG
   ========================= */

/* стилизация крестика закрытия */
.t702 .t-popup__close,
.t1093 .t-popup__close{
  zoom: 0.8;
  background: #23232A;
  border-radius: 30px;
  width: 44px;
  height: 44px;
  top: 24px;
  right: 24px !important;
}

.t702 .t-popup__block-close-button,
.t1093 .t-popup__block-close-button{
  width: 18px;
  padding: 13px;
}

.t702 .t-popup__close-icon,
.t1093 .t-popup__close-icon{
  display: block;
  width: 18px;
  height: 18px;
}

/* заголовок формы */
.t702 .t702__title{
  margin-bottom: 8px;
}

/* скрытие красного блока предупреждающего об обязательных полях */
.t-form__errorbox-middle{
  display: none !important;
}

/* отступы у кнопки */
.t702 .t-form__submit,
.t396 .tn-form__submit{
  margin-top: 8px;
  margin-bottom: 16px;
}

/* =========================
   ЧЕКБОКСЫ
   ========================= */
.t702 .t-input-group_cb,
.t396 .t-input-group_cb{
  order: initial !important;
  margin-bottom: 12px;
}

.t-checkbox__control{
  display: flex;
  column-gap: 10px;
}

.t-checkbox__indicator{
  border-radius: 4px;
  border: 1px solid #c9c9c9;
  width: 16px;
  height: 16px;
  margin-right: 0;
  flex-shrink: 0;
}

.t-checkbox__control .t-checkbox:checked ~ .t-checkbox__indicator{
  border-color: #2C88F5 !important;
  background: #2C88F5;
}

.t-checkbox__indicator:after{
  left: 5px;
  top: 1px;
  border-width: 0 1px 1px 0;
  border-color: #ffffff !important;
}

.t702 .t-input-group_cb div[data-customstyle=yes],
.t396 .t-input-group_cb div[data-customstyle=yes]{
  font-size: 10px !important;
  line-height: 1.3;
}

/* =========================
   TG: КНОПКА + ССЫЛКА В ТЕКСТЕ
   ========================= */

/* большая кнопка */
.t702__form-bottom-text a.tgbtn{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 8px;
  height: 60px;
  background: #fff;
  border-radius: 50px;
  color: #17171b !important;
  transition: .2s ease;
  text-decoration: none;
}

.t702__form-bottom-text a.tgbtn:hover{
  background: #f5f5f5;
}

.t702__form-bottom-text a.tgbtn:before{
  content: '';
  width: 1.5em;
  aspect-ratio: 1;
  background: url(https://static.tildacdn.com/tild3738-3936-4437-b162-383836343233/Artboard.svg) center/contain no-repeat;
}

/* обычная ссылка в тексте */
.t702__form-bottom-text a.tglink{
  display: inline;
  height: auto;
  background: none;
  border-radius: 0;
  color: inherit !important;
  text-decoration: underline;
}

.t702__form-bottom-text a.tglink:after{
  content: '';
  display: inline-block;
  vertical-align: middle;
  position: relative;
  left: 6px;
  width: 18px;
  height: 16px;
  background: url(https://static.tildacdn.com/tild6232-3030-4032-b137-333737643263/telegram-svgrepo-com.svg) center/contain no-repeat;
}

.t702 .t702__form-bottom-text{
  margin-top: 0;
}

/* скрываем заголовок и описание в попапе при успешной отправке */
.t702__wrapper:has(.js-send-form-success) .t702__title,
.t702__wrapper:has(.js-send-form-success) .t702__descr{
  display: none !important;
}

/* =========================
   АДАПТИВ
   ========================= */
@media screen and (max-width: 1199px){
  .t702__form-bottom-text p span,
  .t702__form-bottom-text p a{
    font-size: 16px !important;
    line-height: 1.2 !important;
  }
}

@media screen and (max-width: 639px){

  .t702 .t-popup{
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    transition: .3s ease-in-out;
    visibility: hidden;
    overflow-x: hidden;
  }

  .t702 .t-popup.t-popup_show{
    visibility: visible;
  }

  .t702 .t-popup .t-popup__container{
    display: flex;
    align-items: center;
    position: relative;
    min-height: auto;
    height: fit-content;
    inset: 0;
    padding: 0;
    margin: 0 10px;
    border-radius: 30px;
    box-sizing: border-box;
    transform: scale(1.1);
  }

  .t702 .t-popup_show .t-popup__container{
    transform: scale(1);
  }

  .t702 .t702__wrapper{
    position: relative;
    height: fit-content;
    padding: 24px 16px;
    border-radius: 30px;
    transition: .3s ease-in-out;
    transform: scale(1.1);
  }

  .t702 .t-popup_show .t702__wrapper{
    transform: scale(1);
  }

  .t702 .t-input{
    border-radius: 30px !important;
  }

  /* крестик */
  .t702 .t-popup__close{
    left: auto;
  }

  .t702 .t-popup__block-close-button{
    margin-right: 0;
  }

  /* нижний текст */
  .t702__form-bottom-text p{
    margin-top: 8px;
  }

  .t702__form-bottom-text p span,
  .t702__form-bottom-text p a{
    font-size: 14px !important;
  }

  .t702__form-bottom-text a.tglink:after{
    width: 16px;
  }
}
</style>

