/*
  ============================================================
  PATHREST / INTOURS
  Booking popup: airtickets — CLEAN V13
  ------------------------------------------------------------
  Что делает:
  - скрывает стандартный Tilda select/input name="airtickets";
  - строит красивую вкладку "Авиабилеты" в стиле booking_options/prepayment;
  - берёт условия авиабилетов из текущего тура: tour.airtickets;
  - если авиабилеты включены в тур — показывает спокойное сообщение и сразу
    записывает это значение в поле airtickets;
  - если по туру доступна консультация/покупка авиабилетов — просит клиента
    выбрать нужный вариант;
  - на мобильной версии блок немного шире, а шрифты компактнее;
  - клик по верхней части открытого блока закрывает вкладку обратно;
  - дополнительно добавляет скрытые поля tour_airtickets_policy и booking_airtickets_policy;
  - не конфликтует с booking_options, prepayment и popup-скриптами;
  - V2: готово для поля на следующем шаге многошаговой формы Tilda.
  - V3: изначальный вид сделан как карточка booking_options/prepayment;
  - V3: верхняя часть открытого блока закрывает вкладку  даже без выбора;
  - V3: в кратком виде показывает текст, что вариант авиабилетов ещё не выбран.
  - V4: исправлена галочка после выбора: добавлен CSS через ::before и JS-синхронизация radio/class.
  - V5: финальная версия под многошаговую форму Tilda: поле airtickets полностью скрывается, блок работает как booking_options/prepayment.
  - V6: добавлена оранжевая галочка в сохранённой карточке выбранного варианта, как у prepayment.
  - V9: стили, размеры и цвета выровнены с basic_information/booking_options/prepayment;
  - V9: отдельные кнопки очистки не используются.
  - V10: более округлые карточки/поля, скрытое поле airtickets_for_telegram и сброс после успешной отправки.
  ============================================================
*/

#allrecords .pathrest-booking-airtickets-field {
  width: 100%;
  box-sizing: border-box;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  color: #006c83;
}

#allrecords .pathrest-booking-airtickets-field,
#allrecords .pathrest-booking-airtickets-field * {
  box-sizing: border-box;
}

#allrecords .pathrest-booking-airtickets-field__button {
  width: 100%;
  min-height: 58px;
  padding: 10px 54px 10px 22px;
  border: 1px solid #ffffff;
  border-radius: 30px;
  background: #ffffff;
  color: #006c83;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

#allrecords .pathrest-booking-airtickets-field__button:hover,
#allrecords .pathrest-booking-airtickets-field.is-open .pathrest-booking-airtickets-field__button {
  border-color: rgba(255, 139, 33, 0.48);
  box-shadow: 0 0 0 4px rgba(255, 139, 33, 0.10);
}

#allrecords .pathrest-booking-airtickets-field__button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid #006c83;
  border-bottom: 1.8px solid #006c83;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

#allrecords .pathrest-booking-airtickets-field.is-open .pathrest-booking-airtickets-field__button::after {
  transform: translateY(-35%) rotate(-135deg);
}

#allrecords .pathrest-booking-airtickets-field.is-open .pathrest-booking-airtickets-field__button,
#allrecords .pathrest-booking-airtickets-field.is-saved .pathrest-booking-airtickets-field__button,
#allrecords .pathrest-booking-airtickets-field.is-auto .pathrest-booking-airtickets-field__button {
  display: none !important;
}

#allrecords .pathrest-booking-airtickets-field__button-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#allrecords .pathrest-booking-airtickets-field__button-title {
  color: rgba(0, 108, 131, 0.62);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
}

#allrecords .pathrest-booking-airtickets-field__value {
  color: #006c83;
  font-size: 16px;
  line-height: 1.25;
}

#allrecords .pathrest-booking-airtickets-field__placeholder {
  color: rgba(0, 108, 131, 0.62);
}

#allrecords .pathrest-booking-airtickets-field__panel,
#allrecords .pathrest-booking-airtickets-field__summary,
#allrecords .pathrest-booking-airtickets-field__auto {
  display: none;
  width: 100%;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(42, 101, 131, 0.24);
  border-radius: 24px;
  background: #f5fdff;
  color: #006c83;
}

#allrecords .pathrest-booking-airtickets-field.is-open .pathrest-booking-airtickets-field__panel {
  display: block;
}

#allrecords .pathrest-booking-airtickets-field.is-saved .pathrest-booking-airtickets-field__summary {
  display: block;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

#allrecords .pathrest-booking-airtickets-field.is-saved .pathrest-booking-airtickets-field__summary:hover {
  border-color: rgba(255, 139, 33, 0.34);
  box-shadow: 0 6px 18px rgba(255, 139, 33, 0.08);
}

#allrecords .pathrest-booking-airtickets-field.is-auto .pathrest-booking-airtickets-field__auto {
  display: block;
}

#allrecords .pathrest-booking-airtickets-field__panel-head,
#allrecords .pathrest-booking-airtickets-field__summary-head,
#allrecords .pathrest-booking-airtickets-field__auto-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
  margin: 0 0 12px;
}

#allrecords .pathrest-booking-airtickets-field__title,
#allrecords .pathrest-booking-airtickets-field__summary-title,
#allrecords .pathrest-booking-airtickets-field__auto-title {
  min-width: 0;
  color: #2a6583;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

#allrecords .pathrest-booking-airtickets-field__edit {
  min-height: auto;
  max-width: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(42, 101, 131, 0.66);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

#allrecords .pathrest-booking-airtickets-field__edit:hover {
  color: #ff8b21;
  text-decoration: underline;
}

#allrecords .pathrest-booking-airtickets-field__hint {
  margin: 0 0 14px;
  padding: 13px 15px;
  border: 1px solid rgba(42, 101, 131, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(0, 108, 131, 0.76);
  font-size: 14px;
  line-height: 1.42;
}

#allrecords .pathrest-booking-airtickets-field__policy {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  color: rgba(0, 108, 131, 0.82);
  font-size: 14px;
  line-height: 1.42;
}

#allrecords .pathrest-booking-airtickets-field__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

#allrecords .pathrest-booking-airtickets-field__option {
  position: relative;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(0, 108, 131, 0.15);
  border-radius: 18px;
  background: #ffffff;
  color: #006c83;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 10px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

#allrecords .pathrest-booking-airtickets-field__option:hover {
  border-color: rgba(255, 139, 33, 0.55);
  background: #fff8f1;
  box-shadow: 0 6px 18px rgba(255, 139, 33, 0.08);
}

#allrecords .pathrest-booking-airtickets-field__option.is-selected {
  border-color: rgba(255, 139, 33, 0.72);
  background: #fff8f1;
  box-shadow: 0 6px 18px rgba(255, 139, 33, 0.08);
}

#allrecords .pathrest-booking-airtickets-field__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#allrecords .pathrest-booking-airtickets-field__mark {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid rgba(0, 108, 131, 0.32);
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1;
  grid-row: 1 / span 3;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

#allrecords .pathrest-booking-airtickets-field__option.is-selected .pathrest-booking-airtickets-field__mark {
  border-color: #ff8b21;
  background: #ff8b21;
}

/*
  V4:
  Галочку рисуем через ::before не текстовым символом,
  а двумя border-линиями. Так она стабильнее отображается в Tilda
  и не зависит от шрифта/эмодзи/системного рендера.
*/
#allrecords .pathrest-booking-airtickets-field__mark::before {
  content: "";
  width: 7px;
  height: 11px;
  margin-top: -2px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  opacity: 0;
  transform: rotate(45deg) scale(0.72);
  transform-origin: center;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

/*
  Двойная страховка:
  галочка появляется и по классу .is-selected,
  и напрямую по состоянию radio:checked.
*/
#allrecords .pathrest-booking-airtickets-field__option.is-selected .pathrest-booking-airtickets-field__mark::before,
#allrecords .pathrest-booking-airtickets-field__radio:checked + .pathrest-booking-airtickets-field__mark::before {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

#allrecords .pathrest-booking-airtickets-field__radio:checked + .pathrest-booking-airtickets-field__mark {
  border-color: #ff8b21;
  background: #ff8b21;
}

#allrecords .pathrest-booking-airtickets-field__topline {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  grid-column: 2;
}

#allrecords .pathrest-booking-airtickets-field__option-title {
  min-width: 0;
  color: #006c83;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

#allrecords .pathrest-booking-airtickets-field__badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 139, 33, 0.14);
  color: #ff8b21;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

#allrecords .pathrest-booking-airtickets-field__desc {
  grid-column: 2;
  margin: 5px 0 0;
  color: rgba(0, 108, 131, 0.74);
  font-size: 13px;
  line-height: 1.38;
}

#allrecords .pathrest-booking-airtickets-field__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(42, 101, 131, 0.10);
}

#allrecords .pathrest-booking-airtickets-field__save {
  min-height: 42px;
  padding: 11px 22px;
  border: 1px solid #ff8b21;
  border-radius: 999px;
  background: #ff8b21;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

#allrecords .pathrest-booking-airtickets-field__save:hover {
  background: #ffffff;
  color: #ff8b21;
  box-shadow: 0 6px 16px rgba(255, 139, 33, 0.16);
  transform: translateY(-1px);
}

#allrecords .pathrest-booking-airtickets-field__save:active {
  transform: translateY(0) scale(0.98);
}

#allrecords .pathrest-booking-airtickets-field__summary-body,
#allrecords .pathrest-booking-airtickets-field__auto-body {
  padding: 14px;
  border: 1px solid rgba(42, 101, 131, 0.18);
  border-radius: 22px;
  background: #ffffff;
  color: rgba(0, 108, 131, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

#allrecords .pathrest-booking-airtickets-field__summary-body strong,
#allrecords .pathrest-booking-airtickets-field__auto-body strong {
  color: #006c83;
  font-weight: 700;
}

#allrecords .pathrest-booking-airtickets-field__summary-body span,
#allrecords .pathrest-booking-airtickets-field__auto-body span {
  color: rgba(0, 108, 131, 0.76);
}

/*
  V6:
  Такая же аккуратная оранжевая галочка в сохранённой карточке,
  как в блоке prepayment.
*/
#allrecords .pathrest-booking-airtickets-field__summary-value,
#allrecords .pathrest-booking-airtickets-field__auto-value {
  position: relative;
  width: 100%;
  padding-left: 18px;
  color: #006c83;
}

#allrecords .pathrest-booking-airtickets-field__summary-value::before,
#allrecords .pathrest-booking-airtickets-field__auto-value::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: #ff8b21;
  font-weight: 700;
  line-height: 1.45;
}

#allrecords .pathrest-booking-airtickets-field__error {
  display: none;
  margin-top: 11px;
  padding: 11px 13px;
  border: 1px solid rgba(214, 63, 63, 0.22);
  border-radius: 16px;
  background: rgba(214, 63, 63, 0.06);
  color: #a73535;
  font-size: 13px;
  line-height: 1.35;
}

#allrecords .pathrest-booking-airtickets-field.is-error .pathrest-booking-airtickets-field__error {
  display: block;
}

#allrecords .t-input-group[data-field-name="airtickets"].pathrest-booking-airtickets-ready .t-input-title,
#allrecords .t-input-group[data-field-name="airtickets"].pathrest-booking-airtickets-ready .t-input-subtitle {
  display: none !important;
}

#allrecords .t-input-group[data-field-name="airtickets"] .t-select__wrapper.pathrest-native-airtickets-select-hidden,
#allrecords .t-input-group[data-field-name="airtickets"] .t-input-block > select[name="airtickets"].pathrest-native-airtickets-select-hidden,
#allrecords .t-input-group[data-field-name="airtickets"] .t-input-block > input[name="airtickets"].pathrest-native-airtickets-select-hidden,
#allrecords .t-input-group[data-field-name="airtickets"] .t-input-block > textarea[name="airtickets"].pathrest-native-airtickets-select-hidden {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#allrecords .t-popup.pathrest-booking-airtickets-popup-ready .t-popup__container {
  max-height: calc(100vh - 36px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

#allrecords .t-popup.pathrest-booking-airtickets-popup-ready .t-form__screen-wrapper_active,
#allrecords .t-popup.pathrest-booking-airtickets-popup-ready .t-form__inputsbox {
  overflow: visible !important;
}

@media (min-width: 768px) {
  #allrecords .pathrest-booking-airtickets-field__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #allrecords .pathrest-booking-airtickets-field {
    width: calc(100% + 14px);
    margin-left: -7px;
    margin-right: -7px;
  }

  #allrecords .pathrest-booking-airtickets-field__button {
    min-height: 54px;
    padding: 13px 48px 13px 18px;
    font-size: 14px;
  }

  #allrecords .pathrest-booking-airtickets-field__button::after {
    right: 20px;
  }

  #allrecords .pathrest-booking-airtickets-field__button-title {
    font-size: 11.5px;
  }

  #allrecords .pathrest-booking-airtickets-field__value {
    font-size: 14px;
  }

  #allrecords .pathrest-booking-airtickets-field__panel,
  #allrecords .pathrest-booking-airtickets-field__summary,
  #allrecords .pathrest-booking-airtickets-field__auto {
    padding: 15px 14px 16px;
    border-radius: 21px;
  }

  #allrecords .pathrest-booking-airtickets-field__title,
  #allrecords .pathrest-booking-airtickets-field__summary-title,
  #allrecords .pathrest-booking-airtickets-field__auto-title {
    font-size: 16px;
    line-height: 1.25;
  }

  #allrecords .pathrest-booking-airtickets-field__edit {
    font-size: 12.5px;
  }

  #allrecords .pathrest-booking-airtickets-field__hint,
  #allrecords .pathrest-booking-airtickets-field__policy,
  #allrecords .pathrest-booking-airtickets-field__summary-body,
  #allrecords .pathrest-booking-airtickets-field__auto-body {
    font-size: 12.8px;
    line-height: 1.38;
  }

  #allrecords .pathrest-booking-airtickets-field__option {
    padding: 11px 12px;
    border-radius: 16px;
  }

  #allrecords .pathrest-booking-airtickets-field__topline {
    flex-direction: column;
    gap: 5px;
  }

  #allrecords .pathrest-booking-airtickets-field__option-title {
    font-size: 13.6px;
  }

  #allrecords .pathrest-booking-airtickets-field__badge {
    align-self: flex-start;
    font-size: 11px;
  }

  #allrecords .pathrest-booking-airtickets-field__desc {
    font-size: 12.4px;
  }

  #allrecords .pathrest-booking-airtickets-field__save {
    width: 100%;
    min-height: 40px;
    font-size: 13.2px;
  }
}

@media (max-width: 420px) {
  #allrecords .pathrest-booking-airtickets-field {
    width: calc(100% + 18px);
    margin-left: -9px;
    margin-right: -9px;
  }

  #allrecords .pathrest-booking-airtickets-field__title,
  #allrecords .pathrest-booking-airtickets-field__summary-title,
  #allrecords .pathrest-booking-airtickets-field__auto-title {
    font-size: 15px;
  }

  #allrecords .pathrest-booking-airtickets-field__option-title {
    font-size: 13.2px;
  }

  #allrecords .pathrest-booking-airtickets-field__desc {
    font-size: 12.2px;
  }
}


/*
  ============================================================
  PATHREST / INTOURS

  Цель:
  - привести airtickets к тем же размерам, цветам и отступам,
    что basic_information / booking_options / prepayment;
  - унифицировать карточки, summary, option cards, hint/policy, кнопки;
  - безопасное мобильное центрирование.
  ============================================================
*/

#allrecords .t-input-group[data-field-name="airtickets"].pathrest-booking-airtickets-ready .t-input-block {
  border-radius: 0 !important;
  overflow: visible !important;
}

#allrecords .t-input-group[data-field-name="airtickets"].pathrest-booking-airtickets-ready .pathrest-booking-airtickets-field {
  margin: 0 !important;
}

#allrecords .pathrest-booking-airtickets-field {
  color: #006c83 !important;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif !important;
}

#allrecords .pathrest-booking-airtickets-field__button {
  min-height: 58px !important;
  padding: 10px 54px 10px 22px !important;
  border: 1px solid #ffffff !important;
  border-radius: 30px !important;
  background: #ffffff !important;
  color: #006c83 !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
}

#allrecords .pathrest-booking-airtickets-field__button:hover,
#allrecords .pathrest-booking-airtickets-field.is-open .pathrest-booking-airtickets-field__button {
  border-color: rgba(255, 139, 33, 0.48) !important;
  box-shadow: 0 0 0 4px rgba(255, 139, 33, 0.10) !important;
}

#allrecords .pathrest-booking-airtickets-field__button-title {
  color: rgba(0, 108, 131, 0.62) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
}

#allrecords .pathrest-booking-airtickets-field__value {
  color: #006c83 !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
}

#allrecords .pathrest-booking-airtickets-field__placeholder {
  color: rgba(0, 108, 131, 0.62) !important;
}

#allrecords .pathrest-booking-airtickets-field__panel,
#allrecords .pathrest-booking-airtickets-field__summary,
#allrecords .pathrest-booking-airtickets-field__auto {
  width: 100% !important;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(42, 101, 131, 0.24) !important;
  border-radius: 24px !important;
  background: #f5fdff !important;
  color: #006c83 !important;
  box-shadow: none !important;
}

#allrecords .pathrest-booking-airtickets-field.is-saved .pathrest-booking-airtickets-field__summary:hover {
  border-color: rgba(255, 139, 33, 0.34) !important;
  box-shadow: 0 6px 18px rgba(255, 139, 33, 0.08) !important;
}

#allrecords .pathrest-booking-airtickets-field__panel-head,
#allrecords .pathrest-booking-airtickets-field__summary-head,
#allrecords .pathrest-booking-airtickets-field__auto-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  column-gap: 12px !important;
  min-height: 34px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

#allrecords .pathrest-booking-airtickets-field__panel-head {
  cursor: pointer !important;
  border-radius: 18px !important;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease !important;
}

#allrecords .pathrest-booking-airtickets-field__panel-head:hover {
  background: rgba(255, 255, 255, 0.42) !important;
}

#allrecords .pathrest-booking-airtickets-field__title,
#allrecords .pathrest-booking-airtickets-field__summary-title,
#allrecords .pathrest-booking-airtickets-field__auto-title {
  min-width: 0 !important;
  color: #2a6583 !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

#allrecords .pathrest-booking-airtickets-field__title {
  position: relative !important;
  padding-right: 24px !important;
}

#allrecords .pathrest-booking-airtickets-field__title::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  right: 2px !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 1.7px solid rgba(42, 101, 131, 0.62) !important;
  border-bottom: 1.7px solid rgba(42, 101, 131, 0.62) !important;
  transform: translateY(-35%) rotate(-135deg) !important;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease !important;
}

#allrecords .pathrest-booking-airtickets-field__panel-head:hover .pathrest-booking-airtickets-field__title::after {
  border-color: #ff8b21 !important;
  transform: translateY(-45%) rotate(-135deg) !important;
}

#allrecords .pathrest-booking-airtickets-field__edit {
  min-height: auto !important;
  max-width: none !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(42, 101, 131, 0.66) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-align: right !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transform: none !important;
}

#allrecords .pathrest-booking-airtickets-field__edit:hover {
  color: #ff8b21 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: underline !important;
  transform: none !important;
}

#allrecords .pathrest-booking-airtickets-field__hint,
#allrecords .pathrest-booking-airtickets-field__policy {
  margin: 0 0 14px !important;
  padding: 13px 14px !important;
  border: 1px solid rgba(255, 139, 33, 0.22) !important;
  border-radius: 18px !important;
  background: rgba(255, 248, 241, 0.72) !important;
  color: rgba(42, 101, 131, 0.82) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

#allrecords .pathrest-booking-airtickets-field__policy {
  background: #ffffff !important;
}

#allrecords .pathrest-booking-airtickets-field__summary-body,
#allrecords .pathrest-booking-airtickets-field__auto-body {
  width: 100% !important;
  min-height: 50px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(42, 101, 131, 0.18) !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  color: rgba(0, 108, 131, 0.84) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

#allrecords .pathrest-booking-airtickets-field__summary-value,
#allrecords .pathrest-booking-airtickets-field__auto-value,
#allrecords .pathrest-booking-airtickets-field__summary-value strong,
#allrecords .pathrest-booking-airtickets-field__summary-value span,
#allrecords .pathrest-booking-airtickets-field__auto-value strong,
#allrecords .pathrest-booking-airtickets-field__auto-value span {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

#allrecords .pathrest-booking-airtickets-field__summary-value::before,
#allrecords .pathrest-booking-airtickets-field__auto-value::before {
  color: #ff8b21 !important;
}

#allrecords .pathrest-booking-airtickets-field__options {
  gap: 9px !important;
}

#allrecords .pathrest-booking-airtickets-field__option {
  padding: 13px 14px !important;
  border: 1px solid rgba(0, 108, 131, 0.15) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #006c83 !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  column-gap: 10px !important;
}

#allrecords .pathrest-booking-airtickets-field__option:hover {
  border-color: rgba(255, 139, 33, 0.48) !important;
  background: #fffaf5 !important;
  box-shadow: 0 6px 18px rgba(255, 139, 33, 0.08) !important;
}

#allrecords .pathrest-booking-airtickets-field__option.is-selected {
  border-color: rgba(255, 139, 33, 0.72) !important;
  background: #fff8f1 !important;
  box-shadow: 0 7px 16px rgba(255, 139, 33, 0.08) !important;
}

#allrecords .pathrest-booking-airtickets-field__mark {
  width: 22px !important;
  height: 22px !important;
  border-color: rgba(0, 108, 131, 0.32) !important;
}

#allrecords .pathrest-booking-airtickets-field__option.is-selected .pathrest-booking-airtickets-field__mark,
#allrecords .pathrest-booking-airtickets-field__radio:checked + .pathrest-booking-airtickets-field__mark {
  border-color: #ff8b21 !important;
  background: #ff8b21 !important;
}

#allrecords .pathrest-booking-airtickets-field__option-title {
  color: #006c83 !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

#allrecords .pathrest-booking-airtickets-field__desc {
  color: rgba(0, 108, 131, 0.74) !important;
  font-size: 13px !important;
  line-height: 1.38 !important;
}

#allrecords .pathrest-booking-airtickets-field__badge {
  background: rgba(255, 139, 33, 0.14) !important;
  color: #ff8b21 !important;
  font-size: 12px !important;
}

#allrecords .pathrest-booking-airtickets-field__footer {
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(42, 101, 131, 0.10) !important;
}

#allrecords .pathrest-booking-airtickets-field__save {
  min-height: 42px !important;
  padding: 11px 22px !important;
  border: 1px solid #ff8b21 !important;
  border-radius: 999px !important;
  background: #ff8b21 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
}

#allrecords .pathrest-booking-airtickets-field__save:hover {
  background: #ffffff !important;
  color: #ff8b21 !important;
  box-shadow: 0 6px 16px rgba(255, 139, 33, 0.16) !important;
}

@media (min-width: 768px) {
  #allrecords .pathrest-booking-airtickets-field__options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  #allrecords .t-input-group[data-field-name="airtickets"] .pathrest-booking-airtickets-field,
  #allrecords .pathrest-booking-airtickets-field {
    position: relative !important;
    left: 50% !important;
    width: min(calc(100% + 20px), calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
  }

  #allrecords .pathrest-booking-airtickets-field__button {
    min-height: 54px !important;
    padding: 14px 48px 14px 18px !important;
    font-size: 15px !important;
  }

  #allrecords .pathrest-booking-airtickets-field__button-title {
    font-size: 11.5px !important;
  }

  #allrecords .pathrest-booking-airtickets-field__value {
    font-size: 15px !important;
  }

  #allrecords .pathrest-booking-airtickets-field__panel,
  #allrecords .pathrest-booking-airtickets-field__summary,
  #allrecords .pathrest-booking-airtickets-field__auto {
    padding: 15px 14px 16px !important;
    border-radius: 21px !important;
  }

  #allrecords .pathrest-booking-airtickets-field__panel-head,
  #allrecords .pathrest-booking-airtickets-field__summary-head,
  #allrecords .pathrest-booking-airtickets-field__auto-head {
    column-gap: 8px !important;
    margin-bottom: 12px !important;
  }

  #allrecords .pathrest-booking-airtickets-field__title,
  #allrecords .pathrest-booking-airtickets-field__summary-title,
  #allrecords .pathrest-booking-airtickets-field__auto-title {
    font-size: 14.5px !important;
    line-height: 1.22 !important;
  }

  #allrecords .pathrest-booking-airtickets-field__edit {
    font-size: 11.5px !important;
    line-height: 1.2 !important;
  }

  #allrecords .pathrest-booking-airtickets-field__hint,
  #allrecords .pathrest-booking-airtickets-field__policy {
    margin-bottom: 12px !important;
    padding: 11px 12px !important;
    border-radius: 16px !important;
    font-size: 12.4px !important;
    line-height: 1.34 !important;
  }

  #allrecords .pathrest-booking-airtickets-field__summary-body,
  #allrecords .pathrest-booking-airtickets-field__auto-body {
    min-height: 48px !important;
    padding: 12px 14px !important;
    border-radius: 18px !important;
    font-size: 12.8px !important;
    line-height: 1.36 !important;
  }

  #allrecords .pathrest-booking-airtickets-field__summary-value,
  #allrecords .pathrest-booking-airtickets-field__auto-value,
  #allrecords .pathrest-booking-airtickets-field__summary-value strong,
  #allrecords .pathrest-booking-airtickets-field__summary-value span,
  #allrecords .pathrest-booking-airtickets-field__auto-value strong,
  #allrecords .pathrest-booking-airtickets-field__auto-value span {
    font-size: 12.8px !important;
    line-height: 1.36 !important;
  }

  #allrecords .pathrest-booking-airtickets-field__options {
    gap: 7px !important;
  }

  #allrecords .pathrest-booking-airtickets-field__option {
    padding: 10px 10px !important;
    border-radius: 15px !important;
    grid-template-columns: 21px minmax(0, 1fr) !important;
    column-gap: 8px !important;
  }

  #allrecords .pathrest-booking-airtickets-field__mark {
    width: 20px !important;
    height: 20px !important;
  }

  #allrecords .pathrest-booking-airtickets-field__option-title {
    font-size: 12.8px !important;
    line-height: 1.24 !important;
  }

  #allrecords .pathrest-booking-airtickets-field__desc {
    font-size: 11.8px !important;
    line-height: 1.32 !important;
  }

  #allrecords .pathrest-booking-airtickets-field__badge {
    font-size: 10.8px !important;
  }

  #allrecords .pathrest-booking-airtickets-field__save {
    width: 100% !important;
    min-height: 39px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 420px) {
  #allrecords .t-input-group[data-field-name="airtickets"] .pathrest-booking-airtickets-field,
  #allrecords .pathrest-booking-airtickets-field {
    width: min(calc(100% + 16px), calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
  }

  #allrecords .pathrest-booking-airtickets-field__title,
  #allrecords .pathrest-booking-airtickets-field__summary-title,
  #allrecords .pathrest-booking-airtickets-field__auto-title {
    font-size: 14px !important;
  }
}

/* ============================================================
   V10 ROUNDED + TELEGRAM/RESET VISUAL PATCH
   ------------------------------------------------------------
   - Радиусы вкладки airtickets приведены к последним вкладкам booking.
   - Summary, auto, panel, option cards, hint/policy и error стали мягче.
   ============================================================ */

#allrecords .pathrest-booking-airtickets-field__button {
  border-radius: 30px !important;
}

#allrecords .pathrest-booking-airtickets-field__panel,
#allrecords .pathrest-booking-airtickets-field__summary,
#allrecords .pathrest-booking-airtickets-field__auto {
  border-radius: 30px !important;
}

#allrecords .pathrest-booking-airtickets-field__summary-body,
#allrecords .pathrest-booking-airtickets-field__auto-body {
  border-radius: 28px !important;
}

#allrecords .pathrest-booking-airtickets-field__hint,
#allrecords .pathrest-booking-airtickets-field__policy {
  border-radius: 24px !important;
}

#allrecords .pathrest-booking-airtickets-field__option {
  border-radius: 28px !important;
}

#allrecords .pathrest-booking-airtickets-field__error {
  border-radius: 22px !important;
}

#allrecords .pathrest-booking-airtickets-field__panel-head {
  border-radius: 24px !important;
}

@media (max-width: 767px) {
  #allrecords .pathrest-booking-airtickets-field__panel,
  #allrecords .pathrest-booking-airtickets-field__summary,
  #allrecords .pathrest-booking-airtickets-field__auto {
    border-radius: 26px !important;
  }

  #allrecords .pathrest-booking-airtickets-field__summary-body,
  #allrecords .pathrest-booking-airtickets-field__auto-body {
    border-radius: 24px !important;
  }

  #allrecords .pathrest-booking-airtickets-field__hint,
  #allrecords .pathrest-booking-airtickets-field__policy {
    border-radius: 22px !important;
  }

  #allrecords .pathrest-booking-airtickets-field__option {
    border-radius: 24px !important;
  }

  #allrecords .pathrest-booking-airtickets-field__error {
    border-radius: 20px !important;
  }
}


/* === CLEAN V11: final rounded cards + exact airtickets native field cleanup === */
#allrecords .pathrest-booking-airtickets-field__panel,
#allrecords .pathrest-booking-airtickets-field__summary,
#allrecords .pathrest-booking-airtickets-field__auto {
  border-radius: 30px !important;
}

#allrecords .pathrest-booking-airtickets-field__summary-body,
#allrecords .pathrest-booking-airtickets-field__auto-body,
#allrecords .pathrest-booking-airtickets-field__option,
#allrecords .pathrest-booking-airtickets-field__hint,
#allrecords .pathrest-booking-airtickets-field__policy {
  border-radius: 26px !important;
}

@media (max-width: 767px) {
  #allrecords .pathrest-booking-airtickets-field__panel,
  #allrecords .pathrest-booking-airtickets-field__summary,
  #allrecords .pathrest-booking-airtickets-field__auto {
    border-radius: 26px !important;
  }

  #allrecords .pathrest-booking-airtickets-field__summary-body,
  #allrecords .pathrest-booking-airtickets-field__auto-body,
  #allrecords .pathrest-booking-airtickets-field__option,
  #allrecords .pathrest-booking-airtickets-field__hint,
  #allrecords .pathrest-booking-airtickets-field__policy {
    border-radius: 22px !important;
  }
}

