/* The container must be positioned relative: */
.custom-select {
    position: relative;
    width: 270px;
    min-width: 270px;
    display: inline-block;

}

.custom-select select {
    display: none; /*hide original SELECT element: */
}

.select-selected {
    background-color: #FBFBFB;
    border-radius: 5px;
    border: solid 1px #EBEBEB;

}

/* Style the arrow inside the select element: */
.select-selected:after {
    position: absolute;
    content: "";
    top: 24px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #666666 transparent transparent transparent;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
    border-color: transparent transparent #666 transparent;
    top: 14px;
}

/* style the items (options), including the selected item: */
.select-items div,.select-selected {
    color: #5C5C5C;
    padding: 14px 16px;
    border: solid 1px #EBEBEB;
    /*border: 1px solid transparent;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;*/
    cursor: pointer;
}

.select-items div {
    color: #5C5C5C;
    padding: 8px 16px;
    border: solid 1px;
    border: 1px solid transparent;
    border-color:  transparent #EBEBEB #EBEBEB #EBEBEB;
    cursor: pointer;
}


/* Style items (options): */
.select-items {
    position: absolute;
    background-color: #fff;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    max-height: 40vh;
    /*min-height: 100px;*/
    border-bottom: none;
    overflow-y: auto;
}
.select-items-search {
    min-height: 100px;
    border-bottom: 1px solid #EBEBEB;
}

.select-items-search-no-border {
    border-bottom: none;
}


/* Hide the items when the select box is closed: */
.select-hide {
    display: none;
}

.select-items div:hover, .same-as-selected {
    background-color: rgba(0, 0, 0, 0.1);
}