.smart-multiple-select-wrapper {
    position: relative;
}

.smart-multiple-select-popup {
    position: absolute;
    z-index: 1000;
    background-color: white;
}

.smart-multiple-select-container {
    overflow-y: auto;
    max-height: calc(20 * (1lh + 4px));
    border: 1px solid #767676;
    border-radius: 2px;
}

.smart-multiple-select-option {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    white-space: nowrap;
    min-block-size: 24px;
    padding-inline: 2px;
    padding-left: 5px;
    white-space: nowrap;
    position: relative;
}

.smart-multiple-select-option-background {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: initial;
}

.smart-multiple-select-option:hover {
    color: white;
}

.smart-multiple-select-option:hover .smart-multiple-select-option-background {
    background-color: SelectedItem;
}

.smart-multiple-select-option-selected {
    color: white;
}

.smart-multiple-select-option-selected .smart-multiple-select-option-background {
    background-color: SelectedItem;
}

/* with smart-multiple-select-container:hover */
.smart-multiple-select-wrapper:not(.smart-multiple-select-mode-multi):not(.smart-multiple-select-several-selected)
    .smart-multiple-select-container:hover
    .smart-multiple-select-option-selected:not(:hover) {
    color: initial;
}

.smart-multiple-select-wrapper:not(.smart-multiple-select-mode-multi):not(.smart-multiple-select-several-selected)
    .smart-multiple-select-container:hover
    .smart-multiple-select-option-selected:not(:hover)
    .smart-multiple-select-option-background {
    background-color: initial;
    filter: none;
}

.smart-multiple-select-mode-multi .smart-multiple-select-option-selected:not(:hover) .smart-multiple-select-option-background,
.smart-multiple-select-mode-multi .smart-multiple-select-option-selected:not(:hover) .smart-multiple-select-option-background,
.smart-multiple-select-several-selected .smart-multiple-select-option-selected:not(:hover) .smart-multiple-select-option-background,
.smart-multiple-select-several-selected .smart-multiple-select-option-selected:not(:hover) .smart-multiple-select-option-background {
    filter: hue-rotate(-27deg) saturate(80%) brightness(157%);
}

/* disabled */
.smart-multiple-select-option-disabled {
    background-color: white !important;
    color: gray !important;
}

.smart-multiple-select-option-selected.smart-multiple-select-option-disabled {
    background-color: lightgray !important;
    color: white !important;
}
