/* Кнопка и сворачивание панели фильтров расписания */

.schedule-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.schedule-filters-toggle:hover,
.schedule-filters-toggle:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}

.schedule-filters-toggle:focus-visible {
  outline: 2px solid #F90000;
  outline-offset: 2px;
}

.schedule-filters-toggle.is-collapsed::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.schedule-filters-toggle:not(.is-collapsed)::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(2px) rotate(-135deg);
}

.schedule-filters-toggle.has-filters {
  border-color: #F90000;
  box-shadow: inset 0 0 0 1px rgba(249, 0, 0, 0.35);
}

.schedule-filters-toggle.has-filters .schedule-filters-toggle__mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F90000;
}

.schedule-filters-panel.is-collapsed {
  display: none;
}

/* Светлая тема полного расписания */
body:not(.background-main) .schedule-filters-toggle,
.schedule-content--light .schedule-filters-toggle {
  border-color: rgba(0, 0, 0, 0.25);
  background: #fff;
  color: #212228;
}

body:not(.background-main) .schedule-filters-toggle.has-filters,
.schedule-content--light .schedule-filters-toggle.has-filters {
  border-color: #F90000;
}
