.dynamic-toc-wrapper-wrapper{
  background: #f5f5f5;
  border: none;
  top: 120px;
  left: 4px;
  z-index: 1;
  line-height: 1;
  border-radius: 12px;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  max-height: calc(100vh - 65px - 5rem);
  overflow: auto;
  margin-bottom: 32px !important;
}

.dynamic-toc-underline {
  display: none
}

.dynamic-toc-button{
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  color:#000;
  text-decoration: none;
  font-family: 'Proxima Nova', sans-serif;
  padding:16px;
  display: block;
  position: relative;
}
.dynamic-toc-button::after {
  content: "";
    position: absolute;
    right: 16px;
    top:16px;
    background-color: #000;
    width: 12px;
    height: 12px;
    -webkit-mask-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Ebene_1' xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 20 20'%3E%3Cpath d='M11.7,17.9l8-13.9c.8-1.3-.2-3-1.7-3H2C.5,1.1-.5,2.7.3,4l8,13.9c.8,1.3,2.7,1.3,3.4,0h0Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Ebene_1' xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 20 20'%3E%3Cpath d='M11.7,17.9l8-13.9c.8-1.3-.2-3-1.7-3H2C.5,1.1-.5,2.7.3,4l8,13.9c.8,1.3,2.7,1.3,3.4,0h0Z'/%3E%3C/svg%3E");
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.dynamic-toc-wrapper-wrapper[open] .dynamic-toc-button::after{
  transform: rotate(180deg);
}

.dynamic-toc-wrapper {
  list-style: none;
  margin-left: 8px;
  color: #979797;
  padding-left: 1rem;
  margin-left: 0;
  display: none;
  margin-top: 0;
}

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

.dynamic-toc-wrapper a {
  text-decoration: none;
  padding: 7px 20px 7px 5px;
  display: block;
  color: #4A4A4A;
  font-weight: normal !important;
  font-size: 14px;
  line-height: 1.2;
}

.dynamic-toc-wrapper li,
.dynamic-toc-wrapper li:marker {
  cursor: pointer;
  font-weight: normal !important;
}

.dynamic-toc-wrapper li:hover a,
.dynamic-toc-wrapper li a.active {
    font-weight: 700;
    color: var(--wp--preset--color--monza) !important;
    text-decoration: underline;
    position: relative;
    background-position: left center;
    /*padding-left: 2rem;*/
  }

.dynamic-toc-wrapper li:hover a::before,
.dynamic-toc-wrapper li a.active::before {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  left: -16px;
  margin-top: 12px;
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='a' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 890.95 795.1'%3E%3Cdefs%3E%3Cstyle%3E .b %7B fill: %23DC0028; %7D %3C/style%3E%3C/defs%3E%3Cpath class='b' d='M369.13,44.1L11.93,662.8c-33.9,58.8,8.5,132.3,76.4,132.3h714.3c67.9,0,110.3-73.6,76.4-132.4L521.83,44.1c-33.9-58.8-118.8-58.8-152.8,0h.1Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
    background-size: contain;
    background-position: left center;
    margin-top: 4px;
    transform: rotate(90deg);
}

/* .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--monza);
  z-index: 3;
  cursor: pointer;
}
.is-style-tab-view .dynamic-toc-button-left {
  left: 3px;
  border-left: 2px solid var(--wp--preset--color--monza);
  transform: translateY(-60%) rotate(45deg);
}
.is-style-tab-view .dynamic-toc-button-right {
  right: 3px;
  border-right: 2px solid var(--wp--preset--color--monza);
  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--monza) !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--monza);
  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;
  }
}

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