.sifency-toc-wrapper {
    background: var(--sifency-addons-whitecolor);
    border-radius: 6px;
    overflow: hidden;
    transition: .3s;
    --toc-indent: 15px
}

.sifency-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    font-weight: 600
}

.sifency-toc-toggle {
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .05);
    border-radius: 4px;
    transition: background .3s
}

.sifency-toc-toggle:hover {
    background: rgba(0, 0, 0, .1)
}

.sifency-toc-body {
    padding: 20px;
    display: block
}

.sifency-toc-wrapper.collapsed .sifency-toc-body {
    display: none
}

.sifency-toc-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.sifency-toc-list-item {
    margin-bottom: 0
}

.sifency-toc-link {
    display: block;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: .2s;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 0 4px 4px 0
}

.sifency-toc-link:hover {
    background: rgba(0, 0, 0, .02);
    color: #000
}

.sifency-toc-marker {
    margin-right: 8px;
    font-weight: 600;
    opacity: .7;
    display: inline-block
}

.sifency-toc-level-h2 {
    margin-left: 0;
    font-weight: 600
}

.sifency-toc-level-h3 {
    margin-left: calc(var(--toc-indent) * 1)
}

.sifency-toc-level-h4 {
    margin-left: calc(var(--toc-indent) * 2);
    font-size: .95em
}

.sifency-toc-level-h5 {
    margin-left: calc(var(--toc-indent) * 3);
    font-size: .9em
}

.sifency-toc-level-h6 {
    margin-left: calc(var(--toc-indent) * 4);
    font-size: .9em
}

.sifency-toc-link.is-active {
    color: var(--e-global-color-primary);
    border-left-color: var(--e-global-color-primary);
    background: linear-gradient(90deg, rgba(0, 115, 230, .1) 0, transparent 100%)
}

.sifency-toc-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: 1s linear infinite sifencySpin;
    margin: 0 auto
}

@keyframes sifencySpin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}