.dynamic-toc-wrapper-wrapper{
  background: #F8F8F8;
  border: none;
  position: relative;
  padding: 12px 0;
  border-radius: 4px;
  max-width: 634px;
  margin-left: auto;
  margin-right: auto;
}

.dynamic-toc-underline {
  display: none
}

.dynamic-toc-wrapper{
    display: none;
}

.dynamic-toc-button{
cursor: pointer;
font-size: 1.3rem;
font-weight: 700;
line-height: 1.3rem;
text-align: left;
color:#979797;
text-decoration: none;
margin-left: 2rem;
}



.dynamic-toc-button::after {
  content: "";
  width: 12px;
  height: 12px;
  border-bottom: 1px solid #979797;
  display: inline-block;
  border-right: 1px solid #979797;
  transform: rotate(45deg);
  position: absolute;
  right: 2rem;
  top: 14px;
}
.dynamic-toc-wrapper-wrapper[open] .dynamic-toc-button::after{
  transform: rotate(-135deg);
  top: 18px;
}


/* .dynamic-toc-button:hover{
    color: #FAAE00;
}
.dynamic-toc-button:hover::after {
    border-color: #FAAE00;
} */

.dynamic-toc ol {
  list-style: decimal;
  margin-left: 8px;
  color: #979797;
  padding-left: 4rem;
}

.dynamic-toc ol span {
    font-size: 3rem;
    margin-right: 1rem;
    line-height: 0.75;
    vertical-align: middle;
}

.dynamic-toc ol a {
  text-decoration: none;
  padding: 7px 20px 7px 5px;
  display: block;
  color: #979797;
  font-weight: normal !important;
}

.dynamic-toc ol li,
.dynamic-toc ol li:marker {
  font-size: 1rem;
  cursor: pointer;
  font-weight: normal !important;
}
.dynamic-toc ol li:hover,
.dynamic-toc ol li:hover a {
    font-weight: 700;
    color: black !important;
    font-weight: bold !important;
}

.dynamic-toc ol li:hover::before {
  content: "";
  width: 35px;
  height: 12px;
  background-color: var(--wp--preset--color--primary);
  position: absolute;
  left: 0;
  margin-top: 12px;
}

/* .dynamic-toc li:nth-of-type(1) a{
    font-weight: bold !important;
} */

/* .dynamic-toc li::before{
    content: "";
    background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Ebene_1' data-name='Ebene 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 33 30'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23005092; stroke-width: 0px; %7D %3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M17.7.3v24.68l8.17-8.34,1.73,1.77-10.24,10.46-.87.85-.87-.85-10.24-10.46,1.73-1.77,8.17,8.34V.3h2.41Z'/%3E%3C/svg%3E");
    display: inline-block;
    height: 1.3rem;
    width: 1.3rem;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    top: 2px;
    right: 10px;
  
  } */

  .dynamic-toc-gradient-wrapper-right, 
  .dynamic-toc-gradient-wrapper-left {
    display: none;
  }

  
/* Here starts the tab view styling */ 


.is-style-tab-view.dynamic-toc-wrapper-wrapper {
  background: none;
  max-width: none;
  width: 100% !important;
  padding: 0;
  border-radius: 0;
}

.is-style-tab-view .dynamic-toc-button {
  display: none;
}

.is-style-tab-view .dynamic-toc-wrapper {
  list-style: none;
  padding: 0;
  padding-right: 0.5rem;
  display: flex !important;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100%;
  align-items: center;
  margin:0;
}

.is-style-tab-view .dynamic-toc-wrapper:has(:nth-child(10)) {
  justify-content: space-between;
}

.is-style-tab-view .dynamic-toc-wrapper::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #979797;
  z-index: 1; 
}

.is-style-tab-view .dynamic-toc-gradient-wrapper-left, 
.is-style-tab-view .dynamic-toc-gradient-wrapper-right {
  display: flex;
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 2;
}
.is-style-tab-view .dynamic-toc-gradient-wrapper-left {
  left: 0;
}
.is-style-tab-view .dynamic-toc-gradient-wrapper-right {
  right: 0;
}

.is-style-tab-view .dynamic-toc-gradient-box {
  background-color: white;
  width: 1rem;
  height: 100%;
}

.is-style-tab-view .dynamic-toc-gradient-left {
  width: 2rem;
  height: 100%;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
}
.is-style-tab-view .dynamic-toc-gradient-right {
  height: 100%;
  width: 2rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
}

.is-style-tab-view .dynamic-toc-button-left, 
.is-style-tab-view .dynamic-toc-button-right {
  width: 0.7rem;
  height: 0.7rem;
  position: absolute;
  top: 50%;
  border-bottom: 2px solid var(--wp--preset--color--primary);
  z-index: 3;
  cursor: pointer;
}
.is-style-tab-view .dynamic-toc-button-left {
  left: 3px;
  border-left: 2px solid var(--wp--preset--color--primary);
  transform: translateY(-60%) rotate(45deg);
}
.is-style-tab-view .dynamic-toc-button-right {
  right: 3px;
  border-right: 2px solid var(--wp--preset--color--primary);
  transform: translateY(-60%) rotate(-45deg);
}

.is-style-tab-view .dynamic-toc-wrapper::-webkit-scrollbar {
  display: none !important;
  -webkit-appearance: none;
  width: 0;
  height: 0;
}

.is-style-tab-view .dynamic-toc-wrapper li a {
  padding: 0;
  font-size: 1rem !important;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.is-style-tab-view.dynamic-toc .dynamic-toc-wrapper li:hover, 
.is-style-tab-view.dynamic-toc .dynamic-toc-wrapper li:hover a  {
  color: var(--wp--preset--color--primary) !important;
}

.is-style-tab-view.dynamic-toc .dynamic-toc-wrapper li:hover::before {
  width: 0;
  height: 0;
}

.is-style-tab-view.dynamic-toc .dynamic-toc-wrapper li a:hover::after {
  content: "";
  height: 2px;
  background-color: var(--wp--preset--color--primary);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0; 
  z-index: 3
}

@media only screen and (min-width: 702px) {
  .is-style-tab-view.dynamic-toc-wrapper-wrapper {
    padding: 0;
  }

  /* .is-style-tab-view .dynamic-toc-wrapper:last-of-type {
    padding-right: 0;
  }

  .is-style-tab-view .dynamic-toc-wrapper:first-of-type {
    padding-left: 0;
  } */
}

@media only screen and (min-width: 768px) {
  /* When dynamic toc is sticky in header */
    .dynamic-toc-header.sticky-reached .is-style-tab-view .dynamic-toc-gradient-wrapper-left,
    .dynamic-toc-header.sticky-reached .is-style-tab-view .dynamic-toc-button-left {
      left: 1rem;
    }
  
    .dynamic-toc-header.sticky-reached .is-style-tab-view .dynamic-toc-gradient-wrapper-right,
    .dynamic-toc-header.sticky-reached .is-style-tab-view .dynamic-toc-button-right {
      right: 1rem;
    }
}

@media only screen and (min-width: 1024px) {

  .is-style-tab-view .dynamic-toc-wrapper {
    gap: 15px;
  }
}
