.container {
    display: flex;
    gap: var(--spacing-20);
}

.tab {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-4);
    font-family: var(--font-default), sans-serif;
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
    color: var(--color-text-primary-disabled);
    border-top: var(--border-width-sm) solid transparent;
    border-bottom: var(--border-width-sm) solid transparent;
    white-space: nowrap;
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        padding-left 0.3s ease,
        padding-right 0.3s ease;
    line-height: var(--line-height-xs);
    letter-spacing: var(--letter-spacing-negative-lg);
    overflow: hidden;
    z-index: 1;
}

.sm {
    padding: var(--spacing-12) 0;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    font-family: var(--font-decorative), monospace;
    color: var(--color-text-primary);
}

.md {
    padding: 8px 0 16px;
    font-size: var(--font-size-heading-md);
}

.lg {
    padding: var(--spacing-16) 0 var(--spacing-24);
    font-size: var(--font-size-display-sm);
}

.tab:hover,
.tab:focus {
    color: var(--color-text-secondary);
}

.inverted {
    color: var(--color-text-primary-inverted);
}

.inverted:hover,
.inverted:focus {
    color: var(--border-color-solar);
}

.disabled {
    color: var(--color-text-secondary-disabled);
    cursor: not-allowed;
    pointer-events: none;
}

.bottom {
    border-bottom-color: var(--border-color-light);
}

.top {
    border-top-color: var(--border-color-light);
}

.bottom.inverted {
    border-bottom-color: var(--color-text-primary-inverted);
}

.top.inverted {
    border-top-color: var(--color-text-primary-inverted);
}

.activeTab,
.activeTab:hover,
.activeTab:focus {
    color: var(--color-text-primary);
    cursor: default;
}

.activeTab.bottom {
    border-bottom-color: var(--color-text-primary);
}

.activeTab.top {
    border-top-color: var(--color-text-primary);
}

.activeTab.inverted,
.activeTab.inverted:hover,
.activeTab.inverted:focus {
    color: var(--border-color-solar);
}

.activeTab.bottom.inverted {
    border-bottom-color: var(--border-color-solar);
}

.activeTab.top.inverted {
    border-top-color: var(--border-color-solar);
}

.brackets {
    padding-left: var(--spacing-16);
    padding-right: var(--spacing-16);
}

.md.brackets {
    padding-left: 8px;
    padding-right: 8px;
}

.md.tab,
.lg.tab {
    &::before,
    &::after {
        content: '';
        position: absolute;
        opacity: 0;
        transition:
            transform 0.3s ease,
            opacity 0.6s ease;
    }

    &:before {
        content: '(';
        left: 0;
        transform: translateX(-40px);
    }

    &:after {
        content: ')';
        right: 0;
        transform: translateX(40px);
    }
}

.md.brackets::before,
.lg.brackets::before {
    opacity: 1;
    transform: translateX(0);
}

.md.brackets::after,
.lg.brackets::after {
    opacity: 1;
    transform: translateX(0);
}

.iconWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    min-width: 16px;
    max-width: 16px;
    height: 16px;
    max-height: 16px;
    overflow: hidden;

    & > * {
        width: 100%;
        height: 100%;
    }
}

.md .iconWrap {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 28px;
    max-height: 28px;
}

.lg .iconWrap {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    height: 56px;
    max-height: 56px;
}

.tabsTape {
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabsTape::-webkit-scrollbar {
    display: none;
}

.tabsWrapper {
    display: flex;
    width: 100%;
    position: relative;
}

.tabsWrapper::before,
.tabsWrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
}

.tabsWrapper.showFadeLeft::before {
    opacity: 1;
}

.tabsWrapper.showFadeRight::after {
    opacity: 1;
}

.tabsWrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), transparent);
}

.tabsWrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), transparent);
}

@media (width <= 768px) {
    .md {
        padding: var(--spacing-8) 0 var(--spacing-16);
        font-size: var(--font-size-heading-xs);
    }

    .md .iconWrap {
        width: 20px;
        min-width: 20px;
        max-width: 20px;
        height: 20px;
        max-height: 20px;
    }

    .md.brackets {
        padding-left: 6px;
        padding-right: 6px;
    }

    .lg {
        padding: var(--spacing-8) 0 var(--spacing-16);
        font-size: var(--font-size-heading-md);
    }

    .lg .iconWrap {
        width: 28px;
        min-width: 28px;
        max-width: 28px;
        height: 28px;
        max-height: 28px;
    }

    .brackets {
        padding-left: var(--spacing-8);
        padding-right: var(--spacing-8);
    }
}
