/* The container must be positioned relative: */
.ha-custom-select {
    position: relative;
    width: 100%;
}

.ha-custom-select select {
    display: none; /*hide original SELECT element: */
}


/* Style the arrow inside the select element: */
.select-selected:after {
    position: absolute;
    top: 14px;
    right: 10px;


    border-color: var(--pink);
    border-style: solid;
    border-width: 2px 2px 0 0;
    content: '';
    height: 8px;
    transform: rotate(135deg);
    vertical-align: top;
    width: 8px;
    margin-left: 10px;
    margin-top: 5px;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
    border-color: var(--pink);
    top: 14px;
    transform: rotate(-45deg);
}

/* style the items (options), including the selected item: */

.select-items div {
    color: #fff;
    background-color: var(--purple);
    padding: 12px 20px;
    cursor: pointer;
}

.select-items div:hover {
    color:  var(--pink);
    background-color: var(--purple);
}


.select-selected {
    color: var(--pink);
    padding: 8px 0;
    border: 1px solid transparent;
    border-color: transparent transparent #A5A5A5 transparent;
    cursor: pointer;
}


/* Style items (options): */
.select-items {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    z-index: 99;
}

/* 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);
}*/

@media all and (max-width: 992px) {
    .select-selected {
        font-size: 1.3em;
        color: #fff;
    }

    .select-selected:after {
        height: 13px;
        width: 13px;
    }

    .select-items {
        position: relative;
        top: 0;
        margin: 0 -5%;
    }

    .select-items div {
        padding: 15px 5%;
        font-size: 1.2em;
    }

    .same-as-selected {
        color: var(--pink) !important;
    }
}