.chapters-template {
    display: flex;
    flex-flow: row nowrap;
    margin-bottom: 70px;
}

.chapters-template .chapters-template__content {
    padding-left: 0;
    width: 100%;
}

button.chapter-index__shower {
    align-items: center;
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    bottom: 20px;
    cursor: pointer;
    display: inline-flex;
    flex-flow: row nowrap;
    gap: 8px;
    left: 20px;
    padding: 8px 16px;
    position: fixed;
    transition: all 0.4s ease;
    z-index: 1000;
}

button.chapter-index__shower:hover {
    background-color: var(--color-primary-blue);
}

button.chapter-index__shower svg * {
    fill: var(--color-white);
}

.chapters-template:not(.chapter-index--hidden) button.chapter-index__shower {
    flex-direction: row-reverse;
}
.chapters-template:not(.chapter-index--hidden) button.chapter-index__shower svg {
    rotate: 180deg;
}

.chapter-single-top-section {
    margin-bottom: 24px;
    display: flex;
    flex-flow: row nowrap;
    gap: 10px;
    justify-content: space-between;
}

.m-button.chapter-export {
    background-color: var(--color-primary-blue);
    border-color: var(--color-primary-blue);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 14px;
    height: 43px;
}

.m-button.chapter-export:hover {
    background-color: var(--color-primary-orange);
    border-color: var(--color-primary-orange);
}

.single-title {
    color: var(--color-primary-orange);
    font-family: var(--font-family);
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

.single-chapter-title {
    color: var(--color-primary-blue);
    font-family: var(--font-family);
    font-size: 25px;
    font-weight: bold;
    margin: 0;
}


@media screen and (min-width: 981px) {
    .chapters-template:not(.chapter-index--hidden) .chapters-template__menu {
        padding-right: 16px;
        width: 27%;
    }

    .chapters-template.chapter-index--hidden .chapters-template__menu {
        display: none;
    }

    .chapters-template:not(.chapter-index--hidden) .chapters-template__content {
        padding-left: 16px;
        width: 73%;
    }
}

@media screen and (max-width: 980px) {
    button.chapter-index__shower {
        display: none;
    }

    .chapters-template {
        flex-flow: column-reverse nowrap;
    }

    .chapters-template__content {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .chapters-template__menu {
        --admin-bar-height: 0px;
        background-color: var(--color-white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-flow: column nowrap;
        gap: 24px;
        height: calc(100dvh - var(--admin-bar-height));
        left: -100%;
        overflow-y: auto;
        padding: 20px;
        position: fixed;
        top: var(--admin-bar-height);
        transition: left 0.3s ease;
        width: 70%;
        z-index: 100;
    }

    .chapters-template__menu.active {
        left: 0;
    }

    .admin-bar .chapters-template__menu {
        --admin-bar-height: 46px;
    }

    .chapter-single-top-section {
        flex-flow: column wrap;
    }
}

@media screen and (max-width: 480px) {
    .chapters-template__menu {
        width: 90%;
    }
}
