*,
*::before,
*::after {
    box-sizing: border-box;
}

.select-menu {
    position: relative;
}

/* CUSTOM BUTTON */

.custom-button {
    /* original JQuery CSS */
    text-align: left;
    white-space: nowrap;
    /* width: 14em; */
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid #c5c5c5;
    /* background: #f6f6f6; */
    font-weight: normal;
    font-size: 1rem;
    padding: 0.4em 1em;
    display: inline-block;
    position: relative;
    line-height: normal;
    margin-right: 0.1em;
    cursor: pointer;
    vertical-align: middle;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: visible;
    /* Added CSS */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* .custom-button:hover {
    border: 1px solid #cccccc;
    font-weight: normal;
}
.custom-button:active {
    border: 1px solid #003eff;
    background: #006cd8;
    font-weight: normal;
} */

.button-disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* Prevent possible conflicts with the function that is closing the select menu when clicking outside. */
.custom-button > * {
    pointer-events: none;
}

.custom-button-icon_rotated {
    transform: rotate(180deg);
}

.custom-button-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* MENU */

.menu-wrapper {
    /* original JQuery CSS */
    display: block;
    padding: 0;
    margin: 0;
    position: absolute;
    z-index: 100;
}
.menu {
    /* Original CSS style from JQuery */
    border: 1px solid #c5c5c5;
    overflow: auto;
    overflow-x: auto;
    overflow-x: hidden;
    padding-bottom: 1px;
    border-radius: 0 0 3px 3px;
    background: #ffffff;
    color: #333333;
    list-style: none;
    padding: 0;
    padding-bottom: 0px;
    margin: 0;
    outline: 0;
    /* Added CSS */
    display: none;
}

.menu-close {
    display: none;
}

.menu-open {
    display: block;
}

/* MENU ITEMS */

.menu-item {
    cursor: pointer;
    padding: 3px 1em 3px 0.4em;
}
/* .menu-item:hover,
.menu-item:focus {
    font-weight: normal;
    color: #ffffff;
} */
