.wt-chapter-menu {
    margin: 24px 0;
}

.wt-chapter-menu__label {
    color: #8a5da4;
    font-size: 14px;
    font-weight: 900;
    line-height: 20px;
    margin-bottom: 12px;
}

.wt-chapter-menu__bar {
    display: flex;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.wt-chapter-menu__links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.wt-chapter-menu__link {
    color: #151515;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

.wt-chapter-menu__link:hover,
.wt-chapter-menu__link:focus-visible {
    color: #ec6608;
    text-decoration: none;
}

.wt-chapter-menu__link.active {
    color: #ec6608;
}

.wt-chapter-menu__link--chapter {
    font-weight: 900;
}

.wt-chapter-menu__link--chapter.active {
    color: #1d3437;
}

.wt-chapter-menu__overview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #111317;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 20px;
    text-decoration: none;
    padding: 12px 20px;
    white-space: nowrap;
}

.wt-chapter-menu__overview:hover,
.wt-chapter-menu__overview:focus-visible {
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}

@media (max-width: 959px) {
    .wt-chapter-menu__bar {
        flex-direction: column;
        overflow: visible;
    }

    .wt-chapter-menu__links {
        gap: 16px;
        padding: 24px;
        flex-direction: column;
        align-items: start;
        box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .wt-chapter-menu__overview {
        width: max-content;
        padding: 14px 16px;
        align-self: end;
    }

    .wt-chapter-menu__bar {
        box-shadow: none;
    }
    .wt-chapter-menu__link {
        white-space: wrap;
    }
}
