

/* Автор скрипта - Александр Нагиян */
/* ТГ-канал - https://t.me/nagiyan_gc */
/* Магазин готовых решений - https://script-shop.ru/main?utm_source=school&utm_medium=css&utm_campaign=favorites_lessons */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

html .lesson-list li,
.chatium_body .lesson-title {
  position:relative;
}

.lesson-list li .favorites-btn,
.lesson-title-value .favorites-btn,
.lesson-title h2 .favorites-btn{
  width:42px;
  height:42px;
  background-image:url('https://img.icons8.com/ios/25/like--v1.png');
  background-size:25px;
  background-position:center;
  background-repeat:no-repeat;
  background-color:#fff;
  border-radius:50%;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  top:12px;
  right:12px;
  position:absolute;
  display:block;
  z-index:999;
  cursor:pointer;
}

.lesson-list li .favorites-btn.active,
.lesson-title-value .favorites-btn.active,
.lesson-title h2 .favorites-btn.active{
  background-image:url('https://img.icons8.com/ios-filled/25/C70000/like--v1.png')
}

.favorites-wrapper {
  border-radius:12px;
  background:#fff;
  padding:30px 20px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.favorites-wrapper > h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 140%;
  color: #000;
  display:flex;
  align-items: center;
  cursor:pointer;
}

/*.favorites-wrapper > h2:after {
  content:'';
  background-image:url('https://img.icons8.com/ios/24/forward--v1.png');
  width:24px;
  height:24px;
  flex:0 0 24px;
  margin-left:auto;
  transform:rotate(90deg);
  transition:all .3s;
}

.favorites-wrapper.active > h2:after {
  transform:rotate(-90deg);
}*/

.favorites-wrapper .favorites-no-lessons-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #333;
    opacity:.7;
}

.favorites-wrapper .favorites-list {
  margin-top:20px;
  /*display:none;*/
}

.favorite-lesson-wrapper {
  position:relative;
}

.favorite-close {
  width:20px;
  height:20px;
  position:absolute;
  background-image:url('https://img.icons8.com/ios/20/c70000/delete-sign--v1.png');
  right:0;
  top:0;
  background-size:cover;
  opacity:1;
  transition:opacity .3s;
  cursor:pointer;
}

.favorite-lesson:hover .favorite-close {
  opacity:1
}


.favorites-wrapper .favorites-list a {
  display:flex;
  align-items: flex-start;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: #3275d8;
  position:relative;
}

.favorites-wrapper .favorites-list > .favorite-lesson-wrapper:not(:last-child) {
  margin-bottom:15px;
}

.favorites-wrapper .favorites-list a:before {
  content:'';
  background-image:url('https://img.icons8.com/sf-regular/24/3275d8/external-link.png');
  background-size:contain;
  background-repeat:no-repeat;
  width:24px;
  height:24px;
  flex:0 0 24px;
  margin-right:5px;
}

.chatium_body .lesson-title h2 {
    padding-right:60px;
}




.favorites-wrapper .favorites-list a .favorite-lesson-desc {
    flex:0 0 100%;
    color:#6d677e;
}

.favorites-wrapper .favorites-list a:before {
    position:absolute;
    top:0;
    left:0;
    width:44px;
    height:44px;
    flex:0 0 32px;
    background-image:url(https://img.icons8.com/sf-regular/44/3275d8/external-link.png)
}

.favorites-wrapper .favorites-list a {
    flex-wrap:wrap;
    padding-left:48px
}

@media(max-width:768px) {
    .lesson-header-block  .lesson-title-value {
        font-size:30px;
    }
    
    .lesson-title-value .favorites-btn {
        background-color:transparent;
        box-shadow:none;
        background-image:url('https://img.icons8.com/ios/C70000/25/like--v1.png');
        top:2px;
        right:3px;
    }
}
