#favorites-container {
    position: absolute;
    top: 50px;
    right: 70px;
    background-color: #fff;
    z-index: 999999999999999999999999;
    width: 400px;
    font-size: 15px;
    color: black;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
}

.select2-list {
    width: 100% !important;
    top: 0 !important;
}

#select-container-list {
    position: relative;
    width: 400px !important;
    top: 0 !important;
    left: 50px !important;
}

.select2-list-add {
    width: 400px !important;
}

#add_favorite_modal {
    width: 500px;
    height: 360px;
    margin-left: -200px;
}

.modal_favorites {
    position: fixed;
    width: 100%;
    background-color: rgba(255,255,255,0.5);
    height: 100%;
    left: 0;
    top: 0;
    z-index: 9999999;
    display:none;
}

.overflow_hidden{
    overflow: hidden !important;
}

.modal{
    width: 800px;
    height: 640px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -400px;
    margin-top: -320px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: block !important;
}

.addable_filters{
    margin:0 40px;
}

.modal .close,
.modal .confirm,
.mobile_filters_buttons .close,
.mobile_filters_buttons .confirm
{
    display: inline-block;
    margin: 0 10px;
    border: 0;
    padding: 10px 30px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    background-color: #035fac;
    cursor: pointer;
    color: white;
    opacity:0.8;
    animation:0.3s;
}

.modal .close,
.mobile_filters_buttons .close{
    background-color: #f0f0f0;
    color: #666;
}

.modal .close:hover,
.modal .confirm:hover,
.mobile_filters_buttons .confirm:hover,
.mobile_filters_buttons .close:hover{
    opacity:1;
}

.modal_container_favorites {
    overflow-y:auto;
    height: 270px;
}

.modal h3{
    text-align: center;
    padding: 20px;
    font-size: 18px;
    text-transform: uppercase;
}

.modal_container{
    overflow-y:auto;
    height: 450px;
    margin-bottom: 40px;
}

#favorite-header {
    padding: 15px 15px 7px 15px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ccc;
    height: 50px;
}

.favorite-row {
    padding: 10px 20px;
    position: relative;
    height: 70px;
}

.favorite-img-container {
    float: left;
}

.favorite-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.favorite-text-container {
    margin-left: 60px;
}

.favorite-text-container {
    position: relative;
    top: 13px;
}

.favorite-title {
    text-overflow:ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 270px;
    margin-bottom: 5px;
}

.favorite-title-modal {
    text-overflow:ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 400px;
    margin: 20px auto;
    text-align: center;
}

.favorite-trash-container {
    position: absolute;
    top: 23px;
    right: 15px;
}

.favorite-img-container {
    margin-right: 10px;
}

.favorite-trash-container .fa-trash-alt {
    cursor: pointer;
}

#favorites-body {
    position: relative;
    max-height: 300px;
    overflow-x: auto;
}

#favorites-body .favorite-row:not(:last-child):after {
    content: '';
    border-bottom: 1px solid #f5f6fa;
    width: 70%;
    position: absolute;
    bottom: 0;
    right: 46px;
    height: 1px;
}

#close-favorites-mobile {
    display: none;
    background-color: #ccc;
    text-align: center;
    /* margin-top: 20px; */
    color: #333;
    margin: 10px;
    padding: 10px;
    cursor: pointer;
}

#link-to-new-list, #button-new-list {
    background-color: #7d7d7d;
    text-align: center;
    color: #fff;
    margin: 10px;
    padding: 10px;
}

@media (max-width: 812px){
    #favorites-container {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 99999999999;
    }

    #close-favorites-mobile {
        display: block;
    }
}

.fa-trash-alt {
    color: red;
}

.alert_favorites {
    background-color: #bfd4e7 !important;
    border: 1px solid blue !important;
}

#add_favorite_modal h3 {
    font-weight: bold;
    color: #666666;
}

#add_favorite_modal .fa-star {
    margin-right: 10px;
}

.favorite-title-modal .fa-check-circle {
    margin-right: 10px;
}

.favorite-title-modal {
    font-weight: bold;
    color: #000000;
    font-size: 16px;
}

#remove_favorite_list {
    width: 265px;
    margin: 0 auto 20px;
}

.remove_item_list {
    padding: 5px 0;
    color: #000000;
}

.remove_item_list .fa-times {
    margin-left: 10px;
    cursor: pointer;
}

#label-remove-list, #label-add-list {
    width: 400px;
    margin: 20px auto 5px;
    text-align: center;
    color: #000000;
    font-size: 18px;
    font-weight: bold;
}

.close-favorite-modal {
    position: absolute;
    top: 20px;
    right: 20px;
}

@media screen and (max-width: 992px) {
    #label-remove-list, #label-add-list {
        width: 100%;
    }

    .modal_favorites {
        top: 200px;
    }

    .modal{
        width: calc(100% - 40px) !important;
        left: 20px;
        margin-left: unset !important;
    }

    .favorite-title-modal {
        width: 250px;
    }

    #select-container-list {
        width: 270px !important;
    }

    .select2-list-add {
        width: 270px !important;
    }

    #create-list-modal {
        width: 250px !important;
    }

    .alert_favorites {
        width: 300px;
        left: 75%;
    }
}