/* settings-collapse-20261115.css — сворачиваемые блоки в настройках */

/* --- крупная стрелка у карточки профиля ------------------------------- */
.bf-profile-card__chevron {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, .45);
  background: rgba(148, 163, 184, .14);
  font-size: 18px;
  line-height: 1;
  opacity: 1;
  color: inherit;
  transition: transform .18s ease, background .18s ease;
}
.bf-profile-card--open .bf-profile-card__chevron {
  transform: rotate(180deg);
  background: rgba(124, 58, 237, .18);
  border-color: rgba(124, 58, 237, .55);
  color: #7c3aed;
}
.dark .bf-profile-card--open .bf-profile-card__chevron { color: #c4b5fd; }

/* --- общие сворачиваемые карточки ------------------------------------- */
.bf-collapse-card { padding: 0 !important; overflow: hidden; }
.bf-collapse-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}
.bf-collapse-left { flex: 1 1 auto; min-width: 0; }
.bf-collapse-title {
  display: block;
  font-size: 15px;
  font-weight: 650;
}
.bf-collapse-chevron {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, .45);
  background: rgba(148, 163, 184, .12);
  font-size: 17px;
  line-height: 1;
  transition: transform .18s ease, background .18s ease;
}
.bf-collapse-card--open .bf-collapse-chevron {
  background: rgba(124, 58, 237, .16);
  border-color: rgba(124, 58, 237, .5);
}
.bf-collapse-body {
  padding: 0 18px 18px;
}
.bf-collapse-switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.bf-collapse-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.bf-collapse-switch__track {
  position: relative;
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .45);
  transition: background .18s ease;
}
.bf-collapse-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .18s ease;
}
.bf-collapse-switch input:checked + .bf-collapse-switch__track {
  background: #7c3aed;
}
.bf-collapse-switch input:checked + .bf-collapse-switch__track .bf-collapse-switch__knob {
  transform: translateX(20px);
}
.bf-collapse-switch input:focus-visible + .bf-collapse-switch__track {
  outline: 2px solid rgba(124, 58, 237, .55);
  outline-offset: 2px;
}
.bf-collapse-body[hidden] { display: none !important; }

@media (max-width: 640px) {
  .bf-collapse-head { padding: 14px 14px; }
  .bf-collapse-body { padding: 0 14px 14px; }
  .bf-profile-card__chevron { width: 30px; height: 30px; font-size: 16px; }
}
