.my-custom-menu {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #333;
}

.widget_my_iksm_custom_menu_widget .widget-title {
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 600;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0.5em;
}

.my-custom-menu .iksm-term__inner {
    display: flex;
    align-items: center;
    padding: 10px 5px;
    cursor: pointer;
}

.my-custom-menu .iksm-term__link {
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

.my-custom-menu .iksm-term__toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.my-custom-menu .iksm-term__toggle__inner::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-style: solid;
    border-color: #555;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease-in-out;
}

.my-custom-menu .iksm-term--is-open > .iksm-term__inner .iksm-term__toggle__inner::before {
    transform: rotate(-135deg);
    margin-top: -5px;
}

.my-custom-menu .iksm-terms-tree {
    border-left: 1px solid #f0f0f0;
    margin-left: 10px;
}

.my-custom-menu .iksm-terms-tree .iksm-term__inner {
    padding-left: 15px;
}

.my-custom-menu .iksm-term__link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget_my_iksm_custom_menu_widget {
    width: 100%;
    box-sizing: border-box;
}

.my-custom-menu .iksm-term__link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sidebar {
    width: 300px; /* Or whatever width looks best */
    min-width: 300px; /* This prevents it from shrinking */
}