.switchers {
  display: flex;
  flex-direction: column;
  gap: var(--size-lg);
  padding: var(--size-lg);
  border-radius: var(--size-md);
  background-color: var(--bg-color-default);
  box-shadow: var(--box-shadow-default);
  max-height: 41vh;
  overflow: hidden;
  margin: var(--size-xlg);
  margin-left: 0;
}

.switchers-title {
  font-weight: 500;
  color: var(--color-primary);
  line-height: 120%;
  margin: 0;
}

h4.switchers-title {
  font-size: var(--font-size-16);
}

.switchers-container {
  justify-content: space-between;
}

.switcher {
  width: inherit;
  height: 110px;
  gap: 12px;
  background-color: #ffffff;
}

.switcher__label {
  color: var(--color-label);
  font-size: var(--font-size-14);
  margin-bottom: var(--size-sm);
}

.switcher_bar {
  width: 128px;
  border-radius: 20px;
  padding: 4px;
  gap: 8px;
  background-color: #eeeeee;
  display: flex;
  margin: 2px;
}

.switcher_button,
.switcher_button_selected {
  width: 56px;
  height: 24px;
  border-radius: 18px;
  font-size: 10px;
  display: flex;
  align-self: center;
  justify-content: center;
  border-width: 0;
  background-color: #eeeeee;
}

.switcher_button_selected {
  background-color: #876bee;
}

.switcher_text {
  width: 64px;
  display: inline;
  align-self: center;
  padding: 4px;
  gap: 8px;
}

.switcher_text p {
  display: ruby;
  font-size: 10px;
  width: 56px;
  color: var(--purple);
}

.switcher_text_selected {
  width: 64px;
  display: inline;
  align-self: center;
  padding: 4px;
  gap: 8px;
  color: var(--purple);
}

p.switcher_text_selected {
  display: ruby;
  font-size: 12px;
  font-weight: 500;
  width: 56px;
  color: var(--purple);
}

.switcher_dot {
  width: 6px;
  height: 6px;
  background-color: #bbbbbb;
  border-radius: 3px;
  display: flex;
  align-self: center;
  justify-content: center;
}

.switcher_button_selected .switcher_dot {
  display: none;
}

/* Стили для мобильного переключателя */
.mobile-switcher-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  z-index: 999;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Кнопка закрытия */
.switchers-close {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 5px;
  z-index: 1001;
}

.switchers-close:hover {
  color: #333;
}

/* Адаптивные стили для виджета */
.switchers {
  /* существующие стили остаются */
  transition: transform 0.3s ease;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
  .mobile-switcher-toggle {
    display: flex;
  }

  .switchers {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    background: white;
    z-index: 1000;
    padding: 16px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: bottom 0.3s ease;
    margin: 16px;
  }

  .switchers.active {
    bottom: 0;
  }

  .switchers-close {
    display: block;
  }

  /* Затемнение фона при открытом виджете */
  .switchers-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .switchers-overlay.active {
    display: block;
  }
}
