.custom_select {
    height: var(--current-height);
    position: relative;
    box-sizing: unset;
}

.custom_select > div {
    border: solid 1px var(--color-mono-3);
    border-radius: 5px;
    transition-duration: var(--transition-duration);
    overflow: hidden;
    max-height: var(--current-height);
    background-color: var(--color-mono-1);
    width: 100%;
    box-sizing: border-box;
}

.custom_select.open > div{
    max-height: calc(var(--scroll-height) + 2px);
    overflow: unset;
}

.custom_select .current {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 1fr auto;
    padding: 10px 20px;
    align-items: center;
    cursor: pointer;
    /* width: max-content; */
    min-width: 100%;
    box-sizing: border-box;
    z-index: -1;
}

.custom_select .current::after {
    content: "\e01c";
    display: inline-block;
    font-family: var(--font-awesome);
    font-weight: 900;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition-duration: var(--transition-duration);
}

.custom_select .options {
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    transition-duration: var(--transition-duration);
    width: 100%;
    background-color: var(--color-mono-1);
    max-height: 50vh;
    overflow-y: auto;
    position: relative;
    pointer-events: none;
    border-radius: 5px;
    /* box-sizing: border-box; */
    border: solid 1px var(--color-mono-3);
    border-top: none;
    margin-left: -1px;
    z-index: 1;
}

.custom_select.open .options{
    opacity: 1;
    margin-top: var(--options-margin-top);
    pointer-events: auto;
    box-shadow: 2px 2px 4px 2px rgb(0 0 0 / 30%);
}

.custom_select.open .current::after {
    transform: rotate(180deg);
}

.custom_select .options > * {
    padding: 10px 20px;
    border-top: solid 1px var(--color-mono-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}