
/***** Custom-select *****/

/* body */

.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-top: 10px;
}

.custom-select.opened {
    border: none !important;
    box-shadow: none !important;
    z-index: 1001;
    transition: 3s ease-in-out;
}

.custom-select.opened .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
    z-index: 1003;
}

.custom-select-trigger {
    cursor: pointer;
    position: relative;
    display: block;
    width: 100%;
    border: none;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 500;
    color: var(--nic-black);
    height: 54px;
    overflow: hidden;
}

/* input search */

.custom-select-input {
    position: absolute;
    top: 0px !important;
    width: 100% !important;
    right: 0px !important;
    border: 1px solid var(--nic-white) !important;
    height: 54px !important;
    font-size: 16px !important;
    padding: 0px 10px !important;
    color: var(--nic-light-gray) !important;
    opacity: 0;
}

.opened .custom-select-input {
    opacity: 1;  
}

/* title custom-select */

.custom-select.opened .custom-select-trigger {
    opacity: 0 !important;
}

.custom-select-trigger {
    cursor: pointer;
    position: relative;
    display: block;
    width: 100%;
    border: none;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 500;
    color: #212121;
    height: 54px;
    overflow: hidden;
}

/* arrow custom-select */

.custom-select-trigger:after {
    position: absolute;
    display: block;
    content: '';
    width: 0px;
    height: 0px;
    top: 50%;
    right: 0px;
    transform: rotate(90deg);
    transform-origin: 50% 0;
    border-left: 10px solid var(--nic-gray);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.custom-select.opened .custom-select-trigger:after {
    right: 10px;
    transform: rotate(-90deg);
}

/* options */

.custom-options {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 100% !important;
    margin: 15px 0;
    border: 1px solid var(--nic-gray);
    box-sizing: border-box;
    box-shadow: 0 2px 1px rgba(0,0,0,.07);
    background: var(--nic-white);
    transition: all .4s ease-in-out;
    max-height: 300px;
    overflow-y: scroll;
}

/* option */

.custom-option {
    position: relative;
    display: block;
    padding: 0 22px;
    border-bottom: 1px solid var(--nic-gray);;
    line-height: 52px;
    cursor: pointer;
    transition: all .4s ease-in-out;
    height: 54px;
    overflow: hidden;
}

.custom-option:first-of-type {
    border-radius: 4px 4px 0 0;
}

.custom-option:hover, .custom-option.selection {
    background: var(--nic-light-gray);
    color: var(--nic-black);
}

option.selection {
    background: var(--nic-light-gray);
    color: var(--nic-black);
}