.lt-toc * {
  box-sizing: border-box;
}

.lt-toc--list {
  padding-left: 0;
  margin: 0;
  overflow-y: auto;
  list-style: none;
}

.lt-toc--link {
  display: block;
  padding: 6px 12px;
  text-decoration: none;
  color: #2D2E2E;
  font-weight: 600;
}

.lt-toc--link.is-active {
  background: #2D2E2E !important;
}

.lt-toc--link.is-active span {
  color: #FFFDF9;
}

.lt-toc--current {
  padding: 6px 12px;
}

.lt-toc_is-desktop {
  position: relative;
}

.lt-toc_is-desktop .lt-toc--title {
  margin: 0 0 12px;
  font-size: 20px;
}

.lt-toc_is-desktop .lt-toc--current {
  display: none;
}

.lt-toc_is-desktop .lt-toc--item {
  margin-bottom: 6px;
}

.lt-toc_is-desktop .lt-toc--list {
  display: block !important;
}

.lt-toc_is-desktop .lt-toc--link {
  border-radius: 4px;
}

.lt-toc-mobile {
  display: none;
}

.lt-toc-mobile.is-active {
  display: block;
}

.lt-toc-mobile,
.lt-toc_is-mobile {
  width: 100%;
  height: 50px;
}

.lt-toc-mobile_start {
  margin-bottom: 24px;
}

.lt-toc-mobile_end {
  margin-top: 24px;
}

.lt-toc_is-mobile {
  position: absolute;
  z-index: 99;
}

.lt-toc_is-mobile.lt-toc_is-bottom {
  top: 0 !important;
}

.lt-toc_is-mobile .lt-toc--container {
  position: relative;
  width: 100%;
}

.lt-toc_is-mobile .lt-toc--title {
  display: none;
  /* position: absolute;
  top: 0;
  left: 12px;
  display: block;
  padding: 2px 4px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  background: #eee;
  border-radius: 4px;
  transform: translateY(-50%); */
}

.lt-toc_is-mobile .lt-toc--list {
  display: none;
  margin-right: 42px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid #D7D5D2;
  background: #FFFDF9;
  box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  width: fit-content;
}

.lt-toc_is-mobile .lt-toc--current,
.lt-toc_is-mobile .lt-toc--link {
  padding: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.lt-toc_is-mobile .lt-toc--link:hover, 
.lt-toc_is-mobile .lt-toc--link:focus,
.lt-toc_is-mobile .lt-toc--link:active {
  background: #F7F5F2;
}

.lt-toc_is-mobile .lt-toc--current {
  /* position: relative; */
  position: absolute;
  right: -17px;
  padding-right: 36px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  font-size: 0;
  width: 52px;
  height: 52px;
  background: #F7F5F2;
  border-width: 1px 0px 1px 1px;
  border-style: solid;
  border-color: #2D2E2E;
  border-radius: 5px 0px 0px 5px;
  z-index: 1000;
}

.lt-toc_is-mobile .lt-toc--current:hover, 
.lt-toc_is-mobile .lt-toc--current:focus, 
.lt-toc_is-mobile .lt-toc--current:active {
  filter: drop-shadow(0px 20px 30px rgba(0, 0, 0, 0.1));
}

.lt-toc_is-mobile .lt-toc--current:before {
  position: absolute;
  display: block;
  content: "";
  transition: all 0.3s;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 8C5.32843 8 6 7.32843 6 6.5C6 5.67157 5.32843 5 4.5 5C3.67157 5 3 5.67157 3 6.5C3 7.32843 3.67157 8 4.5 8Z' fill='%232D2E2E'/%3E%3Cpath d='M4.5 13.5C5.32843 13.5 6 12.8284 6 12C6 11.1716 5.32843 10.5 4.5 10.5C3.67157 10.5 3 11.1716 3 12C3 12.8284 3.67157 13.5 4.5 13.5Z' fill='%232D2E2E'/%3E%3Cpath d='M4.5 19C5.32843 19 6 18.3284 6 17.5C6 16.6716 5.32843 16 4.5 16C3.67157 16 3 16.6716 3 17.5C3 18.3284 3.67157 19 4.5 19Z' fill='%232D2E2E'/%3E%3Cpath d='M21 5.5H8V7.5H21V5.5Z' fill='%232D2E2E'/%3E%3Cpath d='M21 11H8V13H21V11Z' fill='%232D2E2E'/%3E%3Cpath d='M21 16.5H8V18.5H21V16.5Z' fill='%232D2E2E'/%3E%3C/svg%3E%0A");
}

.lt-toc_is-mobile .lt-toc--container.is-active .lt-toc--current {
  background: #2D2E2E;
}

.lt-toc_is-mobile .lt-toc--container.is-active .lt-toc--current:before {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 8C5.32843 8 6 7.32843 6 6.5C6 5.67157 5.32843 5 4.5 5C3.67157 5 3 5.67157 3 6.5C3 7.32843 3.67157 8 4.5 8Z' fill='%23FFFDF9'/%3E%3Cpath d='M4.5 13.5C5.32843 13.5 6 12.8284 6 12C6 11.1716 5.32843 10.5 4.5 10.5C3.67157 10.5 3 11.1716 3 12C3 12.8284 3.67157 13.5 4.5 13.5Z' fill='%23FFFDF9'/%3E%3Cpath d='M4.5 19C5.32843 19 6 18.3284 6 17.5C6 16.6716 5.32843 16 4.5 16C3.67157 16 3 16.6716 3 17.5C3 18.3284 3.67157 19 4.5 19Z' fill='%23FFFDF9'/%3E%3Cpath d='M21 5.5H8V7.5H21V5.5Z' fill='%23FFFDF9'/%3E%3Cpath d='M21 11H8V13H21V11Z' fill='%23FFFDF9'/%3E%3Cpath d='M21 16.5H8V18.5H21V16.5Z' fill='%23FFFDF9'/%3E%3C/svg%3E%0A");
}

.lt-toc_is-mobile .lt-toc--item:last-child a {
  border-radius: 0 0 4px 4px;
}

.lt-toc--title {
  display: none;
}
