/**
 * CSS for [CI] Favorites
 * main shortcode
 */

.cifm_wrapper {
    display: inline-block;
    width: 25px;
    height: 25px;
}

.cifm_inner {
    position: relative;
    z-index: 999;
    overflow: visible;
}

.cifm_btn {
    display: block;
    width: 22px;
    height: 22px;
    margin-top: 5px;
}

#cifm-main.cifm-empty .cifm_btn {
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: var(--wpr-bg-39499cd6-865d-4952-9c2a-85036611eeb4);
}

#cifm-main.cifm-full .cifm_btn {
    background-image: var(--wpr-bg-bb584f11-6064-4572-8702-84f05355b006);
}

.cifm_hidden {
    display: none;
}

.cifm_content {
    display: none;
    width: 500px;
    max-height: 550px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: -1px 5px 6px rgba(0, 0, 0, 0.09);
    position: absolute;
    z-index: 999;
    top: 50px;
    left: -450px;
    padding: 20px;
    transition: all linear 0.3s;
}

.cifm_content.cifm_open {
    display: block;
}

.cifm_content-inner {
    width: 100%;
    max-height: 530px;
    overflow-y: scroll;
}

.cifm_content-inner::-webkit-scrollbar {
    width: 2px;
}

.cifm_content-inner::-webkit-scrollbar-track {
    background-color: #FFFFFF;
}

.cifm_content-inner::-webkit-scrollbar-thumb {
    background-color: #000000;
}

.cifm_content-inner::-webkit-scrollbar-thumb:hover {
 background-color: #B29F6B;
}

.cifm_empty-text {
    font-size: 12px;
}

.cifm_popup-share-btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #B29F6B;
    border-radius: 3px;
    font-family: "Playfair Display", sans-serif;
    line-height: 1;
}

.cifm_popup-share-btn:hover {
    background: #B29F6B;
    color: #fff;
}

/*------------------------------------------ ITEM --*/
.cifm_fav-item {
    position: relative;
    margin-bottom: 15px;    
}

.cifm_fav-item:not(:nth-last-child) {
    margin-bottom: 20px;
}

.cifm_fav-item_btn-remove {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    background-color: transparent;
    color: #ffffff !important;
    text-shadow: 0 0 3px #000000;
    display: block;
    padding: 3px 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px !important;
    line-height: 28px;
    text-decoration: none !important;
}

.cifm_fav-item_btn-remove:hover {
    background-color: #8a0000;
    color: #FFFFFF !important;
    text-shadow: none;
}

.cifm_fav-item_inner {
    display: flex;
    flex-direction: row;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.cifm_fav-item_img {
    min-width: 150px;
}

.cifm_fav-item_data {}

.cifm_fav-item_title {
    font-family: "Playfair Display", Sans-serif;
    font-size: 25px !important;
    line-height: 20px;
}

.cifm_fav-item_infos {
    margin-top: 10px;
}

.cifm_fav-item_surface {
    color: #828282;
    margin-right: 30px;
}

.cifm_fav-item_city {
    text-transform: uppercase;
    font-weight: 500;
}

.cifm_fav-item_stats {
    color: #828282;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.cifm_fav-item_price {
    font-family: "Playfair Display", Sans-serif;
    font-size: 35px !important;
    /*line-height: 20px;*/
    line-height: 1;
    margin: 0 !important;
    color: #B29F6B;
}

/*------------------------------------------ RESPONSIVE --*/

@media screen and (max-width: 950px) {}

@media screen and (max-width: 768px) {
    .cifm_content {
        max-width: 450px;
        left: -400px;
    }        
}

@media screen and (max-width: 480px) {
    .cifm_content {
        max-width: 350px;
        left: -280px;
    }
    
    .cifm_fav-item {
        margin-bottom: 40px;
    }

    .cifm_fav-item_inner {
        flex-direction: column;
    }
}