.tabs-wrapper {
    position: relative;
    .tabs {
        list-style: none;
        padding-left: 0;
        margin: 0;
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        overflow: auto;

        &::-webkit-scrollbar {
            display: none;
        }

        li {
            margin-bottom: 0.5rem;

            a {
                text-decoration: none;
                display: block;
                white-space: nowrap;
                padding: 0.75rem 1.5rem;
                min-width: 8rem;
                text-align: center;
                font-weight: 500;
                position: relative;
                color: $dark-grey;
                cursor: pointer;

                &.disabled {
                    opacity: 0.5;
                    cursor: not-allowed;
                }

                &.active {
                    color: $brand-primary;
                    font-weight: 700;
                }
            }

            &:not(.has-dropdown) {
                a {
                    &:hover {
                        &:not(.disabled):not(.active) {
                            color: $brand-primary;
                        }
                    }
                }
            }

            &.has-dropdown {
                // position: relative;

                >a {
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    .arrow-down {
                        width: 0;
                        height: 0;
                        border-left: 0.375em solid transparent;
                        border-right: 0.375em solid transparent;
                        border-top: 0.375em solid $brand-primary;
                        margin-left: 0.5em;
                    }
                }

                .sub-nav {
                    display: none;
                    position: absolute;
                    min-width: 100%;
                    z-index: 10;
                    white-space: nowrap;
                    background: $white;
                    box-shadow: $box-shadow;
                    border-radius: $border-radius;
                    padding: 1rem;

                    li {
                        a {
                            text-align: left;
                            padding: 0;
                            margin-bottom: 0.5rem;

                        }

                        &:last-child {
                            a {
                                margin-bottom: 0;
                            }
                        }
                    }
                }

                &:hover {
                    .sub-nav {
                        display: block;
                        min-width: 120px;
                    }
                }
            }
        }

        &.simple {
            li {
                a {
                    &:after {
                        position: absolute;
                        transition: all 0.1s linear 0s;
                        width: 100%;
                        display: block;
                        background-color: $brand-primary;
                        height: 0px;
                        content: "";
                        left: 0;
                        z-index: 125;
                        top: 100%;
                        margin-top: -0.25em;
                        border-top-left-radius: 0.25em;
                        border-top-right-radius: 0.25em;
                    }

                    &.active {
                        &:after {
                            height: 4px;
                        }
                    }
                }
            }
        }

        &.angled {
            >li {
                >a {
                    padding: 0 1.5rem;
                    padding-right: 2rem;
                    line-height: 2.4;

                    &.active {
                        border-bottom: 3px solid $brand-primary;

                        span {
                            position: relative;
                            z-index: 1;
                        }

                        &:after {
                            position: absolute;
                            top: 0;
                            right: 0;
                            bottom: 0;
                            left: 0;
                            z-index: 0;
                            border: 1px solid #d2d2d2;
                            border-bottom: 0;
                            border-radius: 2px 0 0 0;
                            background: #fff;
                            content: "";
                            -webkit-transform: perspective(5px) rotateX(1.43deg) translateZ(-1px);
                            transform: perspective(5px) rotateX(1.43deg) translateZ(-1px);
                            -webkit-transform-origin: 0 0;
                            transform-origin: 0 0;
                            -webkit-backface-visibility: hidden;
                            backface-visibility: hidden;
                        }
                    }
                }
            }
        }

        &.pills {
            >li {
                margin-right: 0.5rem;

                >a {
                    background-color: $light-grey;
                    border-radius: $tabs-border-radius;

                    &.active {
                        background: $brand-primary;
                        color: $white;
                        font-weight: 500;
                    }
                }
            }
        }

        &-stacked {
            flex-direction: column;

            li {
                margin-bottom: 0.5rem;
                margin-right: 0 !important;
            }
        }

        &-fill {
            li {
                flex: 1 1 auto;
            }
        }

        &-center {
            justify-content: center;
        }

        &-right {
            justify-content: flex-end;
        }

        &-wrap {
            flex-wrap: wrap;
        }
    }

    @media (max-width: 767px) {
        .tabs {
            li {
                a {
                    padding: 0.75rem 1rem;
                    min-width: 0;
                }
            }
        }
    }
}