.custom-select:focus,
.custom-select *:focus {
    outline: none;
    border: none;
    box-shadow: none;
}
.custom-select.open {
    z-index: 2;
    transition: none;
    position: relative;
}

.custom-select {
    width: 100%;
    cursor: pointer;
    position: relative;
    z-index: 9;
}

.custom-select.isSelected + label {
    font-size: 11px;
    transform: translateY(-38px);
    color: #b7b6b6;
    width: auto !important;
    z-index: 10000;
}

.custom-select .placeholder {
    position: relative;
    padding: 20px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    border: solid 1px #d8d8d8;
    resize: none;
    transition: var(--transition);
    height: 100%;
    color: #0f0f0f;
    z-index: 9999;
    transition: background 0.3s ease-out;
}

select.custom-select-white + div {
    margin-top: 25px;
    margin-bottom: 25px;
    transition: box-shadow 0.3s ease;
}

select.custom-select-white + div:not(.open):hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

select.custom-select-white + div.isSelected .placeholder {
    background: none;
    font-weight: bold;
    color: white;
}

select.custom-select-white + div.isSelected .placeholder::before {
    content: "\f00d";
    color: white;
    font-weight: normal;
    font-size: 18px;
}

select.custom-select-white + div.isSelected {
    background: linear-gradient(to right, #d27101, #d1374e);
}

select.custom-select-white + div .placeholder {
    padding: 15.5px !important;
    border: none;
    background: white;
    font-family: 'SecondaryFont';
    font-size: 12px;
    font-weight: 300;
    font-stretch: normal;
    font-style: normal;
    line-height: 2;
    letter-spacing: normal;
    text-align: left;
    color: #404040;
}

.custom-select .before-element {
    position: absolute;
    right: 8px;
    width: 25px;
    height: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000 !important;
}

select.custom-select-white + div .placeholder::before {
    right: 15px;
    color: #bf1b67;
}

select.custom-select-white + div .options-wrapper {
    border: none;
}

select.custom-select-white + div .options > div {
    position: relative;
    padding: 11px 0px 10px 15px;
    cursor: pointer;
    font-size: 12px;
    color: #404040;
}

select.custom-select-white + div .options {
    padding: 0 0;
}

select.custom-select-white + div .options > div:not(:last-of-type){
    border-bottom: 1px solid #f2efef;
}

.custom-select .placeholder.has-img {
    padding-left: 35px;
}
.custom-select.not-filled + .custom-select .placeholder {
    border-bottom-color: var(--warning);
}
.custom-select .placeholder::before {
    content: "\f078";
    font-family: FontAwesome;
	position: absolute;
	top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.custom-select .placeholder.has-img span {
    position: absolute;
    top: 0;bottom: 0;
    left: 0;
    margin: auto !important;
    width: 20px;
    height: 20px;
    background-position: center;
    background-size: cover;
}

.custom-select .options-wrapper {
    position: absolute;
    left: 0;
    width: 100%;
    max-height: 0;
    transition: var(--transition);
    overflow: hidden;
    background-color: white;
    border-left: 1px solid #d8d8d8;
    border-right: 1px solid #d8d8d8;
    border-bottom: 1px solid #d8d8d8;
    opacity: 0;
    z-index: 2;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.custom-select.open .options-wrapper,
.custom-select.open .options {
    max-height: 250px;
    opacity: 1;
    z-index: 9999 !important;
}

.custom-select .options {
    padding: 10px 0;
    overflow: auto;
}
.custom-select .options::-webkit-scrollbar-track {
    background-color: transparent;
    margin: 15px 0;
}
.custom-select .options::-webkit-scrollbar {
    width: 2px;
    background-color: transparent;
}
.custom-select .options::-webkit-scrollbar-thumb {
    background-color: #d0d1d1;
}

.custom-select .options > div {
    position: relative;
    padding: 5px 10px;
    transition: var(--transition);
    cursor: pointer;
    color: #888787;
}
.custom-select .options > div.selected,
.custom-select .options > div:hover {
    color: var(--black);
}
.custom-select .options > div.disabled {
    opacity: .5;
    pointer-events: none;
}

.custom-select .options > div.has-img {
    padding-left: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.custom-select .options > div.has-img span {
    position: absolute;
    top: 0;bottom: 0;
    left: 10px;
    margin: auto;
    width: 20px;
    height: 20px;
    background-position: center;
    background-size: cover;
}
.custom-select .options > div.has-img span::before {
    content: "";
    position: absolute;
    top: -3px;bottom: -3px;
    left: -3px;right: -3px;
    border: 1px solid transparent;
    transition: var(--transition);
    pointer-events: none;
}
.custom-select .options > div.has-img.selected span::before {
    border-color: var(--black)
}


@media(min-width: 768px) {
    .custom-select .options > div {
        padding: 5px 20px;
    }

    .custom-select .options > div.has-img {
        padding-left: 55px;
    }
    .custom-select .options > div.has-img span {
        left: 20px;
    }
}