/* ==========================================================
   PATHREST / INTOURS
   Booking popup over offer_info popup — V5 LOGIC ONLY + SUCCESS RESET
   ----------------------------------------------------------
   Что делает:
   - booking открывается поверх offer_info;
   - offer_info не закрывается при открытии booking;
   - при закрытии booking offer_info остаётся открытым;
   - если Tilda сама закрыла booking после отправки формы,
     код считает booking закрытым;
   - popup благодарности Tilda для booking не показывается;
   - после успешной отправки booking-форма сбрасывается;
   - при следующем открытии booking стартует с первой вкладки;
   - без блокировки скролла и без глобального scroll-lock.
   ========================================================== */

#allrecords [data-pathrest-offer-popup].pathrest-offer-info-stay-open,
#allrecords .uc-offer_info .t-popup.pathrest-offer-info-stay-open {
  display: block !important;
  z-index: 10000000 !important;
}

#allrecords .t-popup[data-tooltip-hook="#bookingbutton"].pathrest-booking-popup-top,
#allrecords .t-popup[data-tooltip-hook="bookingbutton"].pathrest-booking-popup-top,
#allrecords .uc-bookingbutton .t-popup.pathrest-booking-popup-top {
  display: block !important;
  z-index: 10000001 !important;
  background-color: rgba(0, 0, 0, 0.70) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/*
  Скрываем благодарственный popup Tilda только в момент обработки
  отправки booking-формы. Класс ставится и снимается JS-ом.
*/
html.pathrest-booking-success-suppress #tildaformsuccesspopup-new,
html.pathrest-booking-success-suppress .t-form-success-popup_new,
html.pathrest-booking-success-suppress .t-form-success-popup.t-popup_show,
html.pathrest-booking-success-suppress body > .t-form-success-popup {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/*
  Внутренний successbox booking-формы тоже не должен занимать место.
*/
#allrecords .uc-mainform .t-form__successbox,
#allrecords .uc-bookingbutton .t-form__successbox {
  display: none !important;
}
