
/* Custom scrollbar */
/* width */
.dropdown::-webkit-scrollbar {
    width: 5px;
 
}

/* Track */
.dropdown::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px transparent; 
  
}
 
/* Handle */
.dropdown::-webkit-scrollbar-thumb {
	width: 5px;
    background: rgb(77, 77, 77);
    transition: width 0.3s ease;
}

/* Handle on hover */
.dropdown::-webkit-scrollbar-thumb:hover {
    width: 10px;
}

.dropdown-head {
    display: block;
    position: relative;
    width: 100%;
    background-color: white;
    cursor: pointer;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.dropdown-head span {
    width: 100%;
    font-family: "Adihaus-Regular", sans-serif;
    font-size: 17px;
    display: block;
    color: black;
    padding: 0 20px 2px 2px;
    border-bottom: 1px solid black;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-head span::after {
    content: url('../img/dropdown_arrow_black.png');
    position: absolute;
    right: 0px;
    transition: transform 0.3s ease;
}

.dropdown-head.expanded span::after {
    transform: rotate(180deg);
}

.dropdown-wrapper {
    position: relative;
    width: 100%;
}

.dropdown-wrapper.error .dropdown-head span {
    color: red;
    border-bottom-color: red;
}

.dropdown {
    width: 100%;
    height: 0;
    position: absolute;
    flex-flow: column;
    overflow-x: hidden;
    overflow-y: scroll;
    background-color: white;
    z-index: 1000;

    transition: height 250ms ease-in-out;
}

.dropdown.expanded {
    height: 152px;
    box-shadow: 0px 7px 22px 0px #888888;
}

.dropdown label {
    width: 100%;
    display: block;
    cursor: pointer;
    margin: 0;
}

.dropdown label > input {
    display: none;
}

.dropdown label > input + span {
    font-family: "Adihaus-Regular", sans-serif;
    font-size: 14px;
    padding-left: 8px;
    color: black;
    background-color: white;
    display: block;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown label > input + span:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.dropdown label > input:checked + span {
    background-color: rgba(0, 0, 0, 0.2);
}

