/* Menu Lists widget rendered with Search Bar-style container/dropdown behavior */
.widget-menu-lists,
.widget-dropdown-multi.widget-menu-lists {
    position: relative;
    width: 100%;
}

.widget-menu-lists .menu-list-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-menu-lists .menu-list-input {
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    min-width: max-content;
    max-width: min(320px, calc(100vw - 24px));
    text-align: center !important;
}

.menu-list-dropdown {
    display: none;
    position: fixed;
    z-index: 2147483647;
    max-height: min(70vh, 420px);
    overflow: visible;
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    min-width: 240px;
}

#menu-list-portal-root {
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 2147483646;
}

#menu-list-portal-root .menu-list-dropdown {
    pointer-events: auto;
}

.menu-list-level {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: #ffffff;
    border-radius: 8px;
    min-width: 240px;
}

.menu-list-node {
    position: relative;
}

.menu-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    color: #1f2937;
    text-decoration: none;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.menu-list-item:hover,
.menu-list-node.open > .menu-list-item {
    background: #f3f4f6;
}

.menu-list-node .menu-list-level {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    border: 1px solid #d0d7de;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    z-index: 2147483648;
}

.menu-list-node.open-left > .menu-list-level {
    left: auto;
}

.menu-list-node.open-right > .menu-list-level {
    right: auto;
}

.menu-list-node.open > .menu-list-level {
    display: block;
}

.menu-list-arrow {
    opacity: 0.7;
    font-size: 11px;
}

.menu-list-empty {
    display: block;
    padding: 9px 12px;
    color: #6b7280;
}
