

.lesson-list li {
  position:relative;
}

.lesson-list li .favorites-btn {
  width:42px;
  height:42px;
  background-image:url('/fileservice/file/download/a/447724/sc/232/h/bb4e0f517e5b10f2058901fcaf935f2c.svg');
  background-size:25px;
  background-position:center;
  background-repeat:no-repeat;
  border-radius:50%;
  background-color:#fff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);
  top:50px;
  right:10px;
  position:absolute;
  display:block;
  z-index:9999999999999
}

.lesson-list li .favorites-btn.active {
  background-image:url('/fileservice/file/download/a/447724/sc/346/h/d9f0440d78bdac8edf7f7a35843b8cb0.svg');
}


body:not(.isOneTrainingPage) .lesson-list li .favorites-btn {
  width:30px;
  height:30px;
  right:16px;
  top:50%;
  transform:translatey(-50%);
  background-size:17.86px;
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.favorites-wrapper {
  border-radius:16px;
  background:#fff;
  margin-bottom:20px;
}

body:not(.isOneTrainingPage, .isTrainingsPage) .favorites-wrapper {
  background:#F5F5F5;
}

.accordeon-header {
  cursor:pointer;
  padding:30px 20px;
  transition: all .3s
}

.favorites-wrapper h2 {
  font-family: 'Manrope';
  font-weight: 700;
  font-size: 20px;
  line-height: 140%;
  color: #292929;
  display:flex;
  align-items: center;
  pointer-events:none;
  user-select: none;
}

.favorites-wrapper h2:before {
  content:'';
  background-image:url('/fileservice/file/download/a/447724/sc/346/h/d9f0440d78bdac8edf7f7a35843b8cb0.svg');
  background-size:cover;
  display:inline-block;
  width:20px;
  height:20px;
  flex:0 0 20px;
  margin-right:8px;
}

.favorites-wrapper h2:after {
  content:'';
  background-image:url('/fileservice/file/download/a/447724/sc/163/h/9d233afa0c4a0c9325d40c06200dc48b.svg');
  width:24px;
  height:24px;
  flex:0 0 24px;
  margin-left:auto;
  transition:all .3s;
}

.favorites-wrapper.active h2:after {
  transform:rotate(180deg);
}

.favorites-wrapper .favorites-list {
  display:none;
  padding:0px 20px 30px;
}

.favorite-lesson-wrapper {
  position:relative;
  display:flex;
  align-items: flex-start;
  margin-bottom:5px;
}

.favorite-close {
  width:20px;
  height:20px;
  background-image:url('/fileservice/file/download/a/447724/sc/310/h/6f22fad859fbf3b9f6e233d81be83d76.svg');
  background-size:cover;
  background-color:transparent;
  opacity:1;
  transition:opacity .3s;
  cursor:pointer;
  margin-right:5px;
  display:none;
}

.favorites-wrapper .favorites-list a {
  display:flex;
  align-items: flex-start;
  font-family: var(--font-family-2);
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: #3082ff;
  position:relative;
}

.favorites-wrapper .favorites-list a:before {
  content:'';
  background-image:url('/fileservice/file/download/a/665108/sc/186/h/686c17f09dbe0bd559da00ca66005a85.svg');
  background-size:contain;
  background-repeat:no-repeat;
  width:20px;
  height:20px;
  flex:0 0 20px;
  margin-right:5px;
}

.favorites-wrapper .favorites-list .favorites-edit-btn,
.favorites-wrapper .favorites-list .favorites-save-btn{
  margin-top:15px;
  background: #ddeaff;;
  border-radius:6px;
  border:0;
  outline:0;
  padding:3px 10px;
  font-family: var(--font3);
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  color: #3082ff;
}

.favorites-wrapper .favorites-list .favorites-save-btn,
.favorites-wrapper.vacant h2:after,
.favorites-wrapper.vacant .favorites-list,
.favorites-wrapper.vacant .favorites-save-btn,
.favorites-wrapper.vacant .favorites-edit-btn{
  display:none;
}

.favorites-wrapper.vacant img {
    width: 20px;
    height: 20px;
}

.favorites-wrapper.vacant p {
    font-size: 17px;
    line-height: 23px;
    margin: 0 20px 20px 20px;
    display: inline-block;
}


/*Режим удаления*/
.favorites-wrapper.favorites-delete-mode .favorite-close {
  display:block;
  flex:0 0 20px;
}

.favorites-wrapper.favorites-delete-mode .favorites-list a:before {
  display:none;
}

.favorites-wrapper.favorites-delete-mode .favorites-list a {
  pointer-events:none;
  color:#333;
}

.favorites-wrapper.favorites-delete-mode .favorites-list .favorites-save-btn {
  display:block;
  margin-top:20px;
}

.favorites-wrapper.favorites-delete-mode .favorites-list .favorites-edit-btn {
  display:none;
}

@media(max-width:768px) {
  .lesson-list li .favorites-btn {
    top:40px;
    right:10px;
  }
  
  body:not(.isOneTrainingPage) .lesson-list li .favorites-btn {
    top:10px;
    right:10px;
    transform:translate(0);
  }
}

.isLessonPage .lesson-header-block.row-section > .header-view,
body > .lesson-title {
  position:relative;
}

.isLessonPage .lesson-header-block.row-section > .header-view .favorites-btn,
.chatium_body.isLessonPage > .lesson-title .favorites-btn{
  width: 42px;
  height: 42px;
  background-image: url('/fileservice/file/download/a/447724/sc/232/h/bb4e0f517e5b10f2058901fcaf935f2c.svg');
  background-size: 25px;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);
  bottom: 20px;
  right: 20px;
  position: absolute;
  display: block;
  z-index: 9999999999999;
  cursor:pointer;
}

.chatium_body.isLessonPage > .lesson-title h2 {
  padding-right:60px;
}

.chatium_body.isLessonPage > .lesson-title .favorites-btn {
  top:15px;
  right:15px
}

.isLessonPage .lesson-header-block.row-section > .header-view .favorites-btn.active,
.chatium_body.isLessonPage > .lesson-title .favorites-btn.active{
  background-image:url('/fileservice/file/download/a/447724/sc/346/h/d9f0440d78bdac8edf7f7a35843b8cb0.svg');
}
