/** Custom Select **/
.select-wrapper {
    position: relative;
    z-index: 2;
    display: inline-block;
    user-select: none;
}

.select-wrapper select {
    display: none;
}

.select {
    position: relative;
    display: inline-block;
}

.select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 140px;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    line-height: 20px;
    background: #262626;
    border-radius: 12px;
    cursor: pointer;
}

.select-trigger:after {
    position: absolute;
    display: block;
    content: '';
    width: 10px;
    height: 10px;
    top: 50%;
    right: 25px;
    margin-top: -3px;
    border-bottom: 1px solid #9DA7A7;
    border-right: 1px solid #9DA7A7;
    transform: rotate(45deg) translateY(-50%);
    transition: all .4s ease-in-out;
    transform-origin: 50% 0;
}

.select.opened .select-trigger:after {
    margin-top: 3px;
    transform: rotate(-135deg) translateY(-50%);
}

.options {
    position: absolute;
    display: block;
    top: 100%; left: 0; right: 0;
    min-width: 100%;
    margin: 15px 0;
    border-radius: 12px;
    background: #262626;
    transition: all .4s ease-in-out;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-15px);
    max-height: 0;
}

.select.opened .options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
    max-height: 600px;
    overflow-y: hidden;
}

.option-hover:before {
    opacity: 0.8;
}

.option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-bottom: 1px solid #b5b5b5;
    font-size: 16px;
    font-weight: 500;
    color: white;
    line-height: 20px;
    cursor: pointer;
    transition: all .4s ease-in-out;
}

.option:last-of-type {
    border-bottom: 0;
}

.option:hover {
    background: #2D2D2D;
}

.option.selection {
    background: #1E3A5F;
}

.flag {
    position: relative;
    top: 50%;
    width: 20px;
    height: auto;
}
