/* ==========================================================
   PATHREST / TILDA
   Force hide Tilda success popup + quiz success step — V2
   ----------------------------------------------------------
   Скрывает:
   1) стандартный popup благодарности Tilda;
   2) внутренний successbox формы;
   3) result-шаг квиза T1040 после успешной отправки.
   ========================================================== */

/* Стандартный новый popup благодарности Tilda */
#tildaformsuccesspopup-new,
.t-form-success-popup.t-form-success-popup_new,
.t-form-success-popup.t-form-success-popup_new.t-popup_show,
body > .t-form-success-popup.t-form-success-popup_new {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Внутренние successbox всех форм */
#allrecords .js-successbox.t-form__successbox,
#allrecords .t-form__successbox {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Конкретно success/result-шаг квиза Tilda T1040 */
#allrecords .t-quiz__result,
#allrecords .t-quiz__successbox-wrapper,
#allrecords .t-quiz__result.t-step-form__step_active,
#allrecords form.js-send-form-success .t-quiz__result,
#allrecords form.js-send-form-success .t-quiz__successbox-wrapper,
#allrecords form.js-send-form-success .js-successbox.t-form__successbox {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Для страницы/попапа партнёрского добавления тура */
#allrecords .uc-tourcreater .t-quiz__result,
#allrecords .uc-tourcreater .t-quiz__successbox-wrapper,
#allrecords .uc-tourcreater .js-successbox.t-form__successbox,
#allrecords .uc-tourcreater form.js-send-form-success .t-quiz__result,
#allrecords .uc-tourcreater form.js-send-form-success .t-quiz__successbox-wrapper {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
