/*
Custom Select Field Styles
*/

.custom-select-field {
    position: relative;
    width: 100%;
    margin-bottom: 5px;
}

.custom-select-field label.custom-select-label {
    font-size: 16px;
    min-width: 100%;
    padding-left: 0px;
    color: var(--font-color);
    background-color: transparent;
}

.custom-select-field select.custom-select-dd {
    display: none;
}

.custom-select-field div.custom-select-selected, 
.custom-select-field div.custom-select-option
{
    display: flex;
    resize: none;
    padding: 5px 15px;
    cursor: pointer;
}
.custom-select-field div.custom-select-selected{
    position: relative;

    border: 1px solid rgb(200, 200, 200);
    outline: none;
    border-radius: 10px; 
    /* box-shadow: 2px 2px 3px #00000069; */
    padding: 10px 15px;
    padding-right: 25px;
}

.custom-select-field div.custom-select-selected::after{
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    right: 15px;
    rotate: 45deg;
    border: 2px solid #9e9e9e;
    border-left: unset;
    border-top: unset;
    transition: all .2s ease-in-out;
    translate: 50% 50%;
}

.custom-select-field.menu-shown div.custom-select-selected::after{
    rotate: 225deg;
}

.custom-select-field div.custom-select-options
{
    display: none;
    position: absolute;
    width: calc(100% - 4px);
    border: 1px solid #dedede;
    background: #fff;
    transform: translate(2px, -4px);
    box-shadow: 3px 3px 5px #00000052;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
.custom-select-field.menu-shown div.custom-select-options{
    display: block;
    animation-duration: .1s;
    animation-name: CustomSelectSlideDown;
    max-height: 200px;
    overflow: auto;
}
@keyframes CustomSelectSlideDown {
    0%{
        height: 0;
        overflow: hidden;
    }
    100%{
        height: 100%;
        overflow: hidden;
        /* overflow: auto; */
    }
}
.custom-select-field div.custom-select-option{
    border-bottom: 1px solid #dedede;
    background-color: var(--control-background-color);
}

.custom-select-field div.custom-select-option:hover{
    background: var(--header-background-color);
}


.custom-select-field div.custom-select-option.selected{
    background: var(--selected-background-color);
}

.custom-select-field div.custom-select-option:nth-last-child(1){
    border-bottom: unset;
}

.custom-select-field .custom-select-option-img {
    display: flex;
    width: 20px;
    height: 20px;
    overflow: hidden;
    margin-right: 10px;
}

.custom-select-field .custom-select-option-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    user-select: none;
    pointer-events: none;
}
.custom-select-field .custom-select-option-text.custom-select-none-selected {
    color: var(--input-color);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1px;
}
.custom-select-field .custom-select-option-text{
    flex-grow: 1;
    flex-basis: min-content;
    font-size: 15px;
    font-weight: 500;
    color: var(--input-color);
    user-select: none;
    pointer-events: none;
    background-color: transparent;
}
.custom-select-option:hover .custom-select-option-text {
	color:var(--font-hover-color);
}

.custom-select-option.selected .custom-select-option-text{
    color: var(--font-hover-color);
}


.custom-select-selected::after {
	filter: var(--dropdown-color);
}

