.more_options_container{
    position: relative;
    padding-top: 9px;
}

#more_options{
    /* font-size: 20px; */
    font-size: 18px !important;
    cursor: pointer;
    user-select: none;
}

.mo-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 8px;
    min-width: 180px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    padding: 6px 0;
    z-index: 1000;
}

.mo-menu[hidden] {
    display: none;
}

.mo-sub-item:hover {
    background: #f1f3f4;
}

.mo-sub-item {
    /* position: relative; */
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    gap: 12px;
    /* overflow: hidden; */
    text-overflow: ellipsis;
    max-width: 100%;         /* don't grow past the menu */
}

.mo-sub-item[data-full]:hover::after {
    content: attr(data-full);
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 3000;
    background: #202124;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.mo-item:hover { background: #f1f3f4; }

.mo-item {
    position: relative;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mo-arrow {
    font-size: 11px;
    color: #5f6368;
}

.mo-submenu {
    position: absolute;
    bottom: -100px;
    left: 95%;
    margin-left: 4px;
    min-width: 200px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    padding: 6px 0;
    display: none;
    max-width: 280px;    
}

.mo-has-submenu.open > .mo-submenu {
    display: block;
}

.mo-separator {
    height: 1px;
    background: #e0e0e0;
    margin: 6px 0;
}

.mo-empty {
    padding: 8px 16px;
    font-size: 13px;
    color: #80868b;
    font-style: italic;
    cursor: default;
}

.icon-right{
    display: inline-block;
    font-family: "ndflavorstudio" !important;
}

.icon-right:before{
    content: "\e01a";
}

.mo-sub-title{
    position: relative;
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 12px;
}

#new_template_container{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: calc(100% - 44px);
    padding: 20px 22px 0 22px;
}

.template_input{
    border-radius: 3px;
    background-color: #ffffff;
    border: 1px solid #f1f1f1;
    max-width: 200px;
    width: 100%;
    padding: 7px 10px;
    color: #3e5a7f;
    font-size: 14px;
    min-width: 300px !important;
    text-align: left !important;
}

#mo_template_list {
    max-height: 300px;      /* about 8-9 items, adjust to taste */
    overflow-y: auto;
    padding-right: 4px;
    overflow-x: hidden;
}

.mo-sub-item.mo-has-submenu{
    position: relative;
}

.mo-del-submenu {
    top: auto;          /* cancel the top positioning */
    bottom: 0;          /* align bottom edge to the parent item's bottom */
    left: 100%;
    margin-left: 4px;
}

#mo_delete_list {
    max-height: 300px;
    overflow-y: auto;
}

.mo-del-item{
    position: relative;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-overflow: ellipsis;
    max-width: 100%;
    overflow-x: hidden;
}


.mo-del-item:hover { background: #f1f3f4; }

.more_options_container:hover .mo-button{
    color: #3699ff !important;
}

/* inside the colorbox popup, open the menu upward and to the left */
#cboxContent .mo-menu {
    top: auto;
    bottom: 100%;      /* sit above the button */
    left: auto;
    right: -20px;          /* align the menu's right edge to the button */
    margin-bottom: 6px;
}

#cboxContent .mo-submenu{
    top: auto;
    right: 95%;
    left: auto;
    bottom: 0;
    margin-left: 0;
    margin-right: 4px;
    max-width: 210px;
}