$select-prefix-cls: #{$prefix-name}select;

.#{$select-prefix-cls} {
    position: relative;
    user-select: none;
    height: $input-height-base;

    &-selection {
        display: flex;
        width: 100%;
        height: 100%;
        align-items: center;
        padding: $input-padding-vertical-base $input-padding-horizontal;
        font-size: $fontSize;
        border: 1px solid $input-border-color;
        border-radius: $borderRadius;
        color: $input-color;
        position: relative;
        cursor: pointer;
        transition: border .2s ease-in-out;
        background: white;

        &:hover {
            &:not(.#{$select-prefix-cls}-selection-disabled) {
                @include hover();
            }
        }

        &-focus {
            @include active();
        }

        &-disabled {
            cursor: not-allowed;
            background-color: $input-disabled-bg;
        }
    }

    &-placeholder {
        color: $disableColor;
    }

    &-selection-arrow {


        position: absolute;
        right: 8px;
        top: 0;
        bottom: 0;
        margin: auto;
        height: 100%;
        display: flex;
        align-items: center;

        &-inner {
            transition: transform .2s ease-in-out;
        }
    }

    &-active {
        transform: rotate(180deg);
    }

    &-list {
        margin: 5px 0;
        padding: 5px 0;
        background-color: #fff;
        box-shadow: 0 1px 6px rgb(0 0 0 / 20%);
        border-radius: $borderRadius;
        position: absolute;
        min-width: 100%;
        z-index: 1000;
        max-height: 200px;
        overflow-y: auto;
    }

    &-nodata {
        display: inline-block;
        width: 100%;
        text-align: center;
        font-size: 14px;
        margin: 0 auto;
    }

    &-option {
        margin: 0;
        line-height: normal;
        padding: 7px 16px;
        color: $textColor;
        font-size: 14px;
        cursor: pointer;
        transition: background .2s ease-in-out;

        &:hover {
            background-color: #eee;
        }

        &-disabled {
            color: $disableColor;
            cursor: not-allowed;

            &:hover {
                background-color: unset;
            }
        }
    }
}