.qb-tabs {
    --qb-tabs-header-height: 40px;
    display: flex;
}

.qb-tabs--top {
    flex-direction: column-reverse;
}

.qb-tabs__content {
    overflow: hidden;
    position: relative;
    flex-grow: 1;
}

.qb-tabs__header {
    padding: 0;
    position: relative;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qb-tabs__nav-wrap {
    overflow: hidden;
    margin-bottom: -1px;
    position: relative;
    flex: 1 auto;
}

.qb-tabs__nav-wrap:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--qb-border-color-light);
    z-index: var(--qb-index-normal);
}

.qb-tabs__nav-wrap.is-scrollable {
    padding: 0 20px;
    box-sizing: border-box;
}

.qb-tabs__nav-scroll {
    overflow: hidden;
}

.qb-tabs__nav {
    display: flex;
    white-space: nowrap;
    position: relative;
    transition: transform var(--qb-transition-duration);
    float: left;
    z-index: calc(var(--qb-index-normal) + 1);
}

.qb-tabs__active-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: var(--qb-color-primary);
    z-index: 1;
    transition: width var(--qb-transition-duration) var(--qb-transition-function-ease-in-out-bezier),transform var(--qb-transition-duration) var(--qb-transition-function-ease-in-out-bezier);
    list-style: none;
}

.qb-tabs__item {
    padding: 0 20px;
    height: var(--qb-tabs-header-height);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    font-size: var(--qb-font-size-base);
    font-weight: 500;
    color: var(--qb-text-color-primary);
    position: relative;
}

.qb-tabs__item:focus,.qb-tabs__item:focus:active {
    outline: none;
}

.qb-tabs__item:focus-visible {
    box-shadow: 0 0 2px 2px var(--qb-color-primary) inset;
    border-radius: 3px;
}

.qb-tabs__item.is-active {
    color: var(--qb-color-primary);
}

.qb-tabs__item:hover {
    color: var(--qb-color-primary);
    cursor: pointer;
}

.qb-tabs--top>.qb-tabs__header .qb-tabs__item:nth-child(2),.qb-tabs--bottom>.qb-tabs__header .qb-tabs__item:nth-child(2) {
    padding-left: 0;
}

.qb-tabs--top>.qb-tabs__header .qb-tabs__item:last-child,.qb-tabs--bottom>.qb-tabs__header .qb-tabs__item:last-child {
    padding-right: 0;
}
