.sxs-stabs {
    overflow: hidden;
    width: 100%;
    height: 100%;

    --_o-size: #{$text-25 * 2.5};

    --_ln-t: 200ms;
    --_i-t: 500ms;
    --_dlnt: var(--_ln-t);
    --_dit: var(--_dit);
    --_dit: var(--_i-t);

    &__lis {
        overflow: auto;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        width: 100%;
        height: 100%;
        padding: .25rem;
        list-style: none;

        &::-webkit-scrollbar-thumb {
            width: 4px;
            height: 4px;
            background-color: rgba($primaryClear, .5);

            &:hover {
                background-color: $primaryClear;
            }
        }

        &::-webkit-scrollbar-track {
            width: 4px;
            height: 4px;
            background-color: $accentClear3;
        }

        &::-webkit-scrollbar {
            width: 4px;
            height: 4px;
        }
    }

    &__tab {
        flex: 1;
        text-align: center;

        &.active {
            .sxs-stabs {
                &__ord {
                    background-color: $primaryClear;
                    color: $duller;
                }

                &__tit {
                    color: $duller;
                }
            }
        }
    }

    &__ln {
        display: block;
        content: "";
        z-index: -1;
        flex: 1;
        min-width: clamp(4rem, calc(2rem + 1vw + 1vh), 5rem);
        height: 2px;
        margin-top: calc(var(--_o-size) * .5);

        &::before,
        &::after {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-image: linear-gradient(to right, var(--_bg) 5px, rgba(255, 255, 255, 0) 0%);
            background-position: bottom;
            background-size: 7px 100%;
            background-repeat: repeat-x;
            clip-path: inset(0% 100% 0% 0%);
            transition: clip-path var(--_ln-t) ease;
        }

        &::before {
            transition-delay: calc((var(--_dit) * (var(--_idx))) + (var(--_dlnt) * (var(--_idx) - 1)) - (var(--_d-gp) * var(--_idx)));
            --_d-gp: 500ms;
            --_bg: #{$accentClear9};
        }

        &::after {
            --_ln-t: 600ms;
            --_bg: #{$primaryClear};
        }

        &.active::after {
            clip-path: inset(0% 0% 0% 0%);
        }
    }

    &__btn {
        display: block;
        width: 100%;
        height: 100%;
        font-weight: 700;
        transition: transform var(--_i-t), opacity var(--_i-t);
        transition-delay: calc((var(--_dit) * (var(--_idx))) + (var(--_dlnt) * (var(--_idx))) - (var(--_d-gp) * var(--_idx)));
        --_d-gp: 600ms;
    }

    &__ord {
        display: flex;
        align-items: center;
        justify-content: center;
        width: var(--_o-size);
        height: var(--_o-size);
        margin: 0 auto;
        font-size: $text-22;
        border-radius: 50%;
        background-color: $accentClear8;
        color: $accentClear6;
    }

    &__tit {
        min-width: 8ch;
        padding-top: $spacing2;
        color: $secondaryClear;
    }

    @include lg-wmin {
        &__ord {
            font-size: $text-25;
        }

        &__tit {
            font-size: $text-20;
        }
    }

    &.anmt {
        .sxs-stabs {
            &__ln::before {
                clip-path: inset(0% 0% 0% 0%);
            }
        }
    }
}