#toc_wrapper {
  padding: 15px;
  max-height: 40vh;
  overflow-y: auto;
  background-color: var(--toc-background-color, #f0f0f0);
  color: var(--toc-text-color, #000);
    position: relative;
}
#toc_wrapper ul {
  margin: 0;
}
#toc_wrapper a {
  color: var(--toc-text-color, #000);
}
.toc-title {
  margin-bottom: 5px;
  font-size: 20px;
}
.toc-item {
  padding: 5px 0 5px 10px;
  text-decoration: none;
}
.toc-item.active-title {
  color: var(--base-3);
  background-color: var(--accent-1-2);
}
.wp-block-navigation__responsive-container.is-menu-open {
  height: 60vh;
}
#toc ul {
  list-style: none;
  margin: 0;
}
.toc-item {
  margin-left: 0;
  display: block;
}
.toc-item.h2 {
  margin-left: 0px;
  font-size: 15px;
}
.toc-item.h3 {
  margin-left: 10px;
  font-size: 13px;
}
.toc-item.h4 {
  margin-left: 20px;
  font-size: 11px;
}
.mobile-icon {
  /* font-size: 24px; */
  display: inline-block;
  cursor: pointer;
  margin-right: 10px;
}
.active-title {
  font-weight: bold;
}
#toc #mobile_open_icon {
  display: none;
}
#toc-content {
  display: block;
  /* overflow-y: auto;
    max-height: 400px;  */
}

.toc-icon-open-box {
  display: none;
}
.toc-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toc-icon-open-box,
.toc-icon-close-box {
  cursor: pointer;
}
/* Stick sidebars 
@media (min-width: 769px) {
  .inside-right-sidebar,
  .inside-left-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 60px;
  }
}*/
.mobile-icon {
  width: 18px;
}
@media (max-width: 769px) {
  .mobile-header {
    /* padding: 3px; */
    background-color: var(--toc-background-color, #f0f0f0);
  }
  #toc_wrapper {
    font-size: 80%;
    border-radius: 10px 0px 0px 10px;
    background-color: var(--toc-background-color, #f0f0f0);
    color: var(--toc-text-color, #000);
    position: fixed;
    top: 20vh;
    right: 5px;
    padding: 10px 5px 6px 5px;
    z-index: 9999;
    max-width: 40%;
  }
  #toc_wrapper.closed-toc {
    background-color: var(--toc-background-color, #f0f0f0) !important;
    width: 30px !important;
    height: 30px !important;
    overflow: hidden !important;
    padding: 4px 0px 0px 6px !important;
    border-radius: 30px !important;
    display: flex !important;
    align-items: center !important;
  }
  #toc-content {
    display: none;
    padding-right: 10px;
  }
  #toc_wrapper #mobile_open_icon {
    display: block;
  }
  #close-icon {
    color: var(--toc-text-color, #000);
  }
  .toc-title-wrapper,
  .toc-icon-open-box,
  .toc-icon-close-box {
    display: none;
  }

  .toc-title {
    font-size: 14px;
  }
  .toc-content {
    padding-right: 8px;
  }
}
