/*
* by Hayk Margaryan
*/

/** Custom Select2 styles start **/

.custom-select-wrapper {
    position: relative;
    min-width: 100px;
    user-select: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}
.custom-select-wrapper select {
    visibility: hidden;
    display: none;
    opacity: 0;
}
.custom-select-wrapper .custom-select {
    padding: 0;
    border-radius: 4px;
    border: 1px solid #b9b7b7;
    background-color: #fff;
}

.custom-select-wrapper .custom-select label {
    position: absolute;
    top: 8px;
    left: 9px;
    font-size: 14px;
    transition: all 0.3s ease-in;
}
.custom-select-wrapper .custom-select label.selected {
    top: 0;
    font-size: 12px;
    opacity: .75;
}

.custom-select-trigger .selected-options {
    margin-top: 2px;
}

.custom-select-wrapper .custom-select.opened {
    outline: 1px solid #22b8b6;
    border: 1px solid #22b8b6;
}
.custom-select-wrapper .custom-select-trigger {
    position: relative;
    display: block;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 14px 8px 4px 8px;
    min-height: 40px;
}
.custom-select-wrapper .custom-select-trigger .select-arrow {
    position: absolute;
    display: block;
    content: '';
    width: 7px;
    height: 7px;
    top: 19px;
    right: 15px;
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
    transform: rotate(45deg) translateY(-50%);
    transition: all 0.3s ease-in-out;
    transform-origin: 50% 0;
}

.custom-select-wrapper .custom-select.opened .custom-select-trigger .select-arrow {
    transform: rotate(-135deg) translateY(-50%);
    top: 22px;
}
.custom-select-wrapper .custom-options-wrapper {
    position: absolute;
    display: block;
    width: fit-content;
    box-sizing: content-box;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 99%;
    margin: 2px 0 10px 0;
    padding-top: 7px;
    border: 1px solid #b5b5b5;
    border-radius: 5px;
    background: #fff;
    transition: all .2s ease-in-out;
    z-index: 9;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-15px);
    overflow: auto;
    /*-ms-overflow-style: none;  !* IE and Edge *!
    scrollbar-width: none;  !* Firefox *!*/
    min-height: 70px;
    box-shadow: 0 11px 15px -7px rgb(0 0 0 / 20%),
                0 24px 38px 3px rgb(0 0 0 / 14%),
                0 9px 46px 8px rgb(0 0 0 / 12%);
}

.custom-select-wrapper .custom-select-search {
    width: 93%;
    margin: auto;
}

.custom-select-wrapper .custom-search-input {
    width: 100% !important;
    padding: 4px 6px !important;
    border: 1px solid #019696 !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    min-height: 34px !important;
    height: 36px !important;
}
.custom-select-wrapper input[type="search" i]::-webkit-search-cancel-button {
    opacity: 1;
}

.custom-select-wrapper .custom-options {
    display: block;
    width: max-content;
    box-sizing: content-box;
    max-height: 243px;
    min-width: 100%;
    padding-top: 5px;
    background: #fff;
    overflow-x: auto;
}

.custom-options-wrapper.searchable .custom-options {
    padding-top: 0;
    margin: 6px 0 4px;
}

.custom-select-wrapper .no-results {
    display: none;
    margin: 8px;
}
.custom-select-wrapper .no-results.show {
    display: block;
}
/*.custom-select-wrapper .custom-options::-webkit-scrollbar {*/
/*    width: 9px;*/
/*    min-height: 20px;*/
/*}*/
/*.custom-select-wrapper .custom-options::-webkit-scrollbar-thumb {*/
/*    background: #F32388;*/
/*    border-radius: 4px;*/
/*}*/
/*.custom-select-wrapper .custom-options {*/
/*    scrollbar-width: thin;*/
/*    scrollbar-color: #F32388 #fff;*/
/*}*/
.custom-select-wrapper .custom-options::-webkit-scrollbar-thumb {
    background: #019696;
}
.custom-select-wrapper .custom-options {
    scrollbar-color: #019696 #fff;
}
.custom-select-wrapper .custom-select.opened .custom-options-wrapper {
    opacity: 1;
    visibility: visible;
    z-index: 9999;
    pointer-events: all;
    transform: translateY(0);
    overflow-x: hidden;
}
.custom-select-wrapper .custom-options-wrapper:before {
    position: absolute;
    display: none;
    content: '';
    bottom: 100%;
    right: 25px;
    width: 7px;
    height: 7px;
    margin-bottom: -4px;
    border-top: 1px solid #b5b5b5;
    border-left: 1px solid #b5b5b5;
    background: #fff;
    transform: rotate(45deg);
    transition: all 0.2s ease-in-out;
}
.custom-select-wrapper .custom-option {
    position: relative;
    display: block;
    padding: 6px 8px;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin: 2px 6px 2px 8px;
    border-radius: 4px;
}
.custom-select-wrapper .custom-option.option-hide {
    display: none;
}

.custom-select-wrapper .custom-option.selection::before {
    position: absolute;
    right: 29px;
    top: 15px;
    height: 8px;
    width: 2px;
    background-color: #ffffff;
    content: "";
    transform: translateX(10px) rotate(-45deg);
    transform-origin: left bottom;
}

.custom-select-wrapper .custom-option.selection::after {
    position: absolute;
    right: 16px;
    top: 21px;
    height: 2px;
    width: 15px;
    background-color: #ffffff;
    content: "";
    transform: translateX(10px) rotate(-45deg);
    transform-origin: left bottom;
}

.custom-select-wrapper .custom-option:hover,
.custom-select-wrapper .custom-option.selection {
    background-color: #019696;
    color: #fff;
}
.custom-select-wrapper .custom-select:after {
    display: none;
}

@media screen and (max-width: 767px) {
    .custom-select-wrapper .custom-options::-webkit-scrollbar {
        width: 6px;
        min-height: 20px;
    }
}
/** Custom Select2 styles end **/
