/*the container must be positioned relative:*/
.custom-select {
    position: relative;
    line-height: 40px;
    width: 100% !important;
    border: 1px solid var(--light-grey-80);
    border-radius: .375rem;
    margin-bottom: 15px;
}

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

.select-selected {
    background: var(--white);
    border-radius: .375rem;
    color: var(--dark-grey-130);
    font-size: var(--size-000);
    height: 3.625rem;
    padding: .5625rem 1rem;
    transition: all var(--transition-duration) var(--easing);
    width: 100%;
    overflow: hidden;
}

/*style the arrow inside the select element:*/
.select-selected:after {
    position: absolute;
    content: "";
    top: 23px;
    right: 20px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--dark-grey-100);
    border-bottom: 2px solid var(--dark-grey-100);
    transform: rotate(45deg);
}

/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after {
    transform: rotate(225deg);
    top: 28px;
}

/*style the items (options), including the selected item:*/
.select-items div,.select-selected {
    color: var(--dark-grey-130);
    padding: 8px 16px;
    border: 1px solid transparent;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    cursor: pointer;
    user-select: none;
}

/*style items (options):*/
.select-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    font-size: 14px;
    border: 1px solid var(--light-grey-20) !important;
    border-radius: .375rem !important;
    box-shadow: 0 0 2px 0 #0000001f, 0 4px 8px 0 #00000024 !important;
    background-color: var(--white);
    margin-top: 5px;
}

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

.select-items div:hover, .same-as-selected {
    background: var(--indigo-10);

}

.same-as-selected {
    background: var(--indigo-10);
    border-left: 4px solid var(--indigo-100) !important;
}

.select-selected::placeholder{
    color: var(--dark-grey-60) !important;
    opacity: 1;
}

.custom-select.has-error{
    background: var(--red-2);
    border-color: var(--red-100);
}

