﻿.combo-box {
    & .combo-search {
        anchor-name: var(--combo-anchor);
    }

    & .combo-selected {
        & .tag {
            cursor: default;

            & i {
                cursor: pointer;
                color: var(--wbs-error-4);
            }
        }
    }

    & .combo-options {
        display: none;
        background: var(--wbs-white);
        border: 1px solid rgb(from var(--wbs-text-primary) r g b / 0.2);
        list-style: none;
        padding: var(--padding-sm);
        position: absolute;
        position-anchor: var(--combo-anchor);
        top: anchor(bottom);
        left: anchor(left);
        right: anchor(right);
        z-index: 10;

        &.show {
            display: block;
        }

        & > li {
            cursor: pointer;

            &.hide {
                display: none;
            }
        }
    }

    & > select {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        opacity: 0;
    }
}
