/* FAQ Controls */

#mgc_faqs_insert_meta_box #control-wrapper{
    display: flex;
    justify-content: start;
    align-items: stretch;
    gap: 5px;
    max-width: 350px;
}

#mgc_faqs_insert_meta_box #select-faq{
    flex: 1 0 0;
    margin: 0;
    max-width: calc( 100% - 35px );
}

#mgc_faqs_insert_meta_box #add-faq{
    display: inline-flex;
    flex: 30px 0 0;
    justify-content: center;
    line-height: 1;
    background-color: black;
    color: white;
    border: none;
    align-items: center;
    cursor: pointer;
    padding: 0;
    font-size: 24px;
}

#mgc_faqs_insert_meta_box #add-faq:hover{
    background-color: #007cba;
}


/* FAQ List */

#mgc_faqs_insert_meta_box li{
    display: flex;
    box-sizing: border-box;
    cursor: grab;
    width: auto;
    background-color: #f0f0f0;
    max-width: 350px;
    overflow-x: hidden;
    white-space: nowrap;
    line-height: 2;
}
#mgc_faqs_insert_meta_box li:hover{
    background-color: #007cba;
    color: white;
}
#mgc_faqs_insert_meta_box li.dragging{
    cursor: move;
}

#mgc_faqs_insert_meta_box .remove-faq{
    margin-right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background-color: black;
    color: white;
    border: none;
    line-height: 1;
    cursor: pointer;
}
#mgc_faqs_insert_meta_box .remove-faq:hover{
    background-color: #cc1818;
}

#mgc_faqs_insert_meta_box li.dragging .remove-faq{
    color: #000000;
}