.d-shop-category {
    display: flex;
    flex-direction: column;
    &-list {
        padding: 0;
        margin: 0;
        list-style: none;
        .d-shop-category-item {
            display: flex;
            flex-direction: column;
            padding: 10px;
            border-radius: 2px;
            background: #f2f2f2;
            margin: 0 0 10px 0;

            &:hover .d-operations .d-shop-category-btns {
                display: flex;
            }

            &:first-child .d-operations .d-shop-category-btns .d-icon-up,
            &:last-child .d-operations .d-shop-category-btns .d-icon-down {
                display: none;
            }

            .d-operations {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin: 0 0 10px 0;
                .d-shop-category-item-index {
                    font-size: 12px;
                    font-weight: 600;
                    color: #333;
                    line-height: 16px;
                }
                .d-shop-category-btns {
                    display: none;
                    align-items: center;
                    .d-shop-category-btn {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        width: 16px;
                        height: 16px;
                        cursor: pointer;
                        &:not(:last-child) {
                            margin: 0 8px 0 0;
                        }
                    }
                }
            }
            .d-shop-category-info {
                display: flex;
                align-items: center;
                height: 32px;
                background: #fff;
                border: 1px solid #e1e1e1;
                border-radius: 2px;
                .d-shop-category-name {
                    width: 66px;
                    height: 100%;
                    padding: 0 6px;
                    font-size: 12px;
                    color: #333;
                    border-right: 1px solid #e1e1e1;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
                .d-shop-category-info-wrapper {
                    display: flex;
                    flex-basis: 0;
                    flex-grow: 1;
                    height: 100%;
                    cursor: pointer;
                    .d-shop-category-value {
                        display: flex;
                        font-size: 12px;
                        color: #333;
                        padding: 0 6px;
                        flex-basis: 0;
                        flex-grow: 1;
                        cursor: pointer;
                        background: #fff;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                    }
                    .d-shop-category-icon {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        width: 31px;
                        border-left: 1px solid #e1e1e1;
                        cursor: pointer;
                    }
                }
            }
        }
    }
    .d-add-category {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #fff;
        height: 100px;
        border-radius: 2px;
        border: 1px dashed #c1c1c1;
        cursor: pointer;
        &-icon {
            font-size: 22px;
            color: #d8d8d8;
            margin: 0 0 5px 0;
        }
        &-text {
            font-size: 12px;
            color: #666;
        }
    }
}
