.toc-widget {
  --toc-widget-primary-color: #05C7D1;
  --toc-widget-secondary-color: #B4EEF1;
  position: fixed;
  left: 0;
  top: 30%;
  padding: 24px 0px 24px 32px;
  display: flex;
  flex-direction: column;
  z-index: 99;
  border-radius: 0 20px 20px 0;
  background: #fff;
}
@media screen and (max-width: 991px) {
  .toc-widget {
    top: 50%;
  }
}
@media screen and (max-width: 575px) {
  .toc-widget {
    padding-left: 24px;
  }
}
.toc-widget.purple-scheme {
  --toc-widget-primary-color: #814FF0;
  --toc-widget-secondary-color: #D9CAFB;
}
.toc-widget.orange-scheme {
  --toc-widget-primary-color: #FF9A26;
  --toc-widget-secondary-color: #FFE1BE;
}
.toc-widget-scroll-to-top {
  padding: 24px;
  background: var(--toc-widget-stt-primary-color, #05C7D1);
  border-radius: 20px;
  position: fixed;
  bottom: 10%;
  right: 3%;
  transform: rotate(20deg);
  z-index: 99;
}
.toc-widget-scroll-to-top.purple-scheme {
  --toc-widget-stt-primary-color: #814FF0;
}
.toc-widget-scroll-to-top.orange-scheme {
  --toc-widget-stt-primary-color: #FF9A26;
}
.toc-widget-scroll-to-top button {
  padding: 0;
  background: transparent;
  font-size: 28px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
@media screen and (max-width: 767px) {
  .toc-widget-scroll-to-top button {
    font-size: 20px;
  }
}
.toc-widget-scroll-to-top button i {
  transform: rotate(-20deg);
}
@media screen and (max-width: 767px) {
  .toc-widget-scroll-to-top {
    width: 60px;
    height: 61px;
  }
}
.toc-widget__buttons {
  display: flex;
  justify-content: space-between;
  padding-right: 32px;
}
.toc-widget__buttons button {
  display: flex;
  padding: 0;
  gap: 20px;
  background: transparent;
  color: var(--toc-widget-primary-color);
  align-items: center;
}
.toc-widget__buttons button span, .toc-widget__buttons button i {
  font-size: 18px;
  color: var(--toc-widget-primary-color);
}
.toc-widget__buttons-close i {
  color: #333 !important;
}
.toc-widget__content {
  width: 0;
  height: 0;
  visibility: hidden;
  padding-right: 15px;
}
@media screen and (max-width: 767px) {
  .toc-widget__content {
    padding-right: 8px;
  }
}
.toc-widget__content-wrapper {
  max-height: 300px;
  overflow-y: auto;
}
.toc-widget__content-wrapper::-webkit-scrollbar {
  width: 18px;
}
.toc-widget__content-wrapper::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background-color: var(--toc-widget-primary-color);
}
.toc-widget__content--item.is-primary .toc-widget__content--item-button--content__text {
  color: var(--toc-widget-primary-color);
}
.toc-widget__content--item-button {
  display: flex;
  text-decoration: none;
  font-size: 18px;
  width: 100%;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 0px;
  border-bottom: 1px solid var(--toc-widget-secondary-color);
}
@media screen and (max-width: 767px) {
  .toc-widget__content--item-button {
    font-size: 14px;
  }
}
.toc-widget__content--item-button--content {
  max-width: min(95%, 550px);
  display: flex;
  gap: 16px;
}
.toc-widget__content--item-button--content__number {
  color: var(--toc-widget-primary-color);
}
@media screen and (max-width: 767px) {
  .toc-widget__content--item-button--content {
    gap: 8px;
  }
}
.toc-widget__content--item-button--icon {
  color: var(--toc-widget-primary-color);
}
.toc-widget__content--item-children {
  text-decoration: none;
  width: 100%;
}
.toc-widget__content--item-children__item {
  display: flex;
  text-decoration: none;
  font-size: 18px;
  width: 100%;
  gap: 30px;
  justify-content: space-between;
  padding: 12px 0px;
  padding-left: 40px;
  border-bottom: 1px solid var(--toc-widget-secondary-color);
}
@media screen and (max-width: 767px) {
  .toc-widget__content--item-children__item {
    font-size: 14px;
    gap: 10px;
    padding-left: 20px;
  }
}
.toc-widget__content--item-children__item--content {
  max-width: 550px;
  display: flex;
  gap: 16px;
}
.toc-widget__content--item-children__item--content__number {
  white-space: nowrap;
  color: var(--toc-widget-primary-color);
}
@media screen and (max-width: 767px) {
  .toc-widget__content--item-children__item--content {
    gap: 8px;
  }
}
.toc-widget__content--item-children__item--icon {
  color: var(--toc-widget-primary-color);
}
.toc-widget.is-open {
  width: min(70%, 590px);
  min-height: min(50vh, 500px);
  background: #FFF;
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.25);
  gap: 35px;
}
.toc-widget.is-open .toc-widget__content {
  width: 100%;
  max-width: 660px;
  height: 100%;
  visibility: visible;
}
