﻿.chips {
    background: #f3f3f3;
    display: block;
    border-radius: 6px;
    padding: 2px;
    position: relative;
}

    .chips.process:before {
        content: 'در حال پردازش ...';
        width: 100%;
        color: #767676;
        height: 100%;
        display: flex;
        font-size: 11pt;
        position: absolute;
        background: #f8f8f8;
        opacity: 0.8;
        z-index: 1;
        border-radius: 25px;
        top: 0;
        align-items: center;
        right: 0;
        justify-content: center;
    }

    .chips input {
        background: transparent;
        display: inline-block;
        outline: none;
        direction: rtl;
        border: 0;
    }

    .chips .items {
        display: flow-root;
        align-items: center;
    }

        .chips .items .item,
        .chips .items input {
            align-items: center;
            display: flow-root;
            padding: 4px 10px;
            float: right;
            transition: all ease-in-out .3s;
            font-size: 14px;
            color: #fff;
            margin: 4px;
            background: rgb(0, 149, 255);
            border-radius: 6px;
        }

        .chips .items .chipsColor {
            position: absolute;
            transition: none;
            width: 50px;
            padding: 0;
            height: 16px;
            visibility: 0;
            z-index: 0;
            margin: 0;
            left: 0;
            top: -26px;
            cursor: pointer;
        }

        .chips .items .item {
            padding-left: 28px;
            position: relative;
        }

            .chips .items .item.color {
                padding-right: 32px;
            }

            .chips .items .item:is(.hover, .active) {
                background: rgb(255, 129, 0);
            }

        .chips .items input {
            background: transparent;
            color: #333;
            width: 100px;
            z-index: 1;
        }

        .chips .items .item a {
            display: block;
            margin-right: 6px;
            width: 10px;
            height: 10px;
            top: 50%;
            transform: translateY(-50%);
            position: absolute;
            left: 10px;
            cursor: pointer;
            border: 0;
            -webkit-mask-size: 10px;
            -webkit-mask-repeat: no-repeat;
            -webkit-mask-position: center;
            background: #fff;
            -webkit-mask-image: url(Close.svg);
        }

        .chips .items .item .color {
            display: block;
            width: 18px;
            height: 18px;
            position: absolute;
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
            border-radius: 25px;
        }

    .chips.openSuggest .items {
        padding-bottom: 24px;
    }

    .chips .suggests {
        display: none;
        margin-top: -24px;
        width: 100%;
        box-sizing: border-box;
        position: absolute;
        left: 0;
        padding: 10px 2px 0;
        border-radius: 0 0 6px 6px;
        background: #ddd;
    }

    .chips .suggest {
        align-items: center;
        display: flow-root;
        padding: 4px 10px;
        position: relative;
        box-sizing: border-box;
        float: right;
        transition: all ease-in-out .3s;
        font-size: 14px;
        margin: 4px;
        cursor: pointer;
        background: #fff;
        border-radius: 6px;
    }

        .chips .suggest.color {
            padding-right: 32px;
        }

        .chips .suggest .color {
            display: block;
            width: 18px;
            border: 1px solid #ddd;
            height: 18px;
            position: absolute;
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
            border-radius: 6px;
        }

    .chips.openSuggest .suggests {
        display: block;
    }

    .chips .suggest:hover {
        background: rgb(0, 149, 255);
        color: #fff;
    }
