/* istrariel callbar-collapse 2026-11-17
   Сворачивание плавающего окна «Жду звонка!».
   Не меняет отправку формы и стили полей. */

/* ---- крестик «Свернуть» ---- */
.call-bar__collapse {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 5;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #2d3e57;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .55;
  line-height: 1;
  box-shadow: none;
  min-width: 0 !important;
  width: 28px !important;
}
.call-bar__collapse:hover,
.call-bar__collapse:focus {
  opacity: 1;
  background: rgba(45, 62, 87, .1);
  outline: none;
}
.call-bar__collapse:focus-visible {
  outline: 2px solid #f2b94a;
  outline-offset: 1px;
}
.call-bar__collapse svg {
  display: block;
  pointer-events: none;
}

/* место под крестик. У .call-bar--main уже position:fixed — не переопределяем. */
.call-bar--main:not(.is-collapsed) .call-bar__form {
  padding-top: 10px;
}

/* ---- свёрнутая жёлтая кнопка на широком экране ---- */
.call-bar--main > .call-bar__btn-expand {
  display: none;
  min-width: 0 !important;
  width: auto !important;
  border-radius: 4px 0 0 4px !important;
  padding: 12px 18px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.call-bar--main.is-collapsed {
  background: transparent;
  box-shadow: none;
  overflow: visible;
  width: auto;
}
.call-bar--main.is-collapsed .call-bar__form,
.call-bar--main.is-collapsed > button[data-modal],
.call-bar--main.is-collapsed > .call-bar__collapse {
  display: none !important;
}
.call-bar--main.is-collapsed > .call-bar__btn-expand {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* ---- мобильная/планшетная кнопка: компактная «Жду звонка!» ---- */
.btn.call-bar__btn-open {
  min-width: 0 !important;
  width: auto !important;
  gap: 8px;
}
.btn.call-bar__btn-open:not(.active) {
  border-radius: 24px;
  padding: 11px 16px 11px 12px;
  align-items: center;
}
.btn.call-bar__btn-open .call-bar__btn-open-text {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
  pointer-events: none;
}
.btn.call-bar__btn-open.active {
  border-radius: 50%;
  padding: 15px;
}
.btn.call-bar__btn-open.active .call-bar__btn-open-text {
  display: none;
}

/* крестик на мобильной карточке формы.
   Сбрасываем top/right от .call-bar {position:fixed;top:150px;right:0},
   иначе при position:relative форма съезжает вниз на 150px. */
.call-bar__wrapper .call-bar {
  position: relative;
  top: auto;
  right: auto;
}
.call-bar__wrapper .call-bar .call-bar__form {
  padding-top: 8px;
}
.call-bar__wrapper .call-bar__collapse {
  /* уже описан выше; на всякий случай не растягивать правилом .call-bar .btn */
  width: 28px !important;
  min-width: 0 !important;
  border-radius: 4px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: #2d3e57;
}
