//css for RecommandList
@import 'cbkfe-assets/dist/css/control.less';

@keyframes icon_rotate {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

.template-recommands {
    .recommands__endText {
        padding-top: 1.5rem;
        padding-bottom: 1.75rem;
        .font(0.7rem, #9d9d9d, 0.9rem);
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .recommands__endText__icon {
        width: 0.8rem;
        height: 0.8rem;
        margin-right: 0.5rem;
        animation-name: icon_rotate;
        animation-duration: 0.8s;
        animation-iteration-count: infinite;
        animation-fill-mode: both;
        animation-timing-function: linear;
    }

    .recommands__iphonex {
        display: block;
        width: 100%;
        height: 0;
        min-height: constant(safe-area-inset-bottom);
        min-height: env(safe-area-inset-bottom);
    }
}

.template__header {}

.recommands-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: hidden;



    .item__image {
        flex-shrink: 0;
        width: 5.5rem;
        height: 5.5rem;
        border-radius: 0.4rem;
        object-fit: cover;
    }

    .item__content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        align-content: flex-start;
        flex-wrap: wrap;
        min-height: 5.5rem;
        flex: 1;
        overflow: hidden;
        width: 100%;
        margin-left: 0.5rem;
    }

    .item-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        width: 100%;
        overflow: hidden;

        &:empty {
            display: none;
        }

        .item__title {
            .font(0.75rem, #000, 1rem);
            font-weight: 500;
            flex: 1;
            .text-overflow();
        }

        .item__distance {
            flex-shrink: 0;
            .font(0.6rem, #757575, 0.8rem);
            font-weight: 400;
            padding-left: 0.5rem;
        }
    }

    .item__subTitle {
        width: 100%;
        .font(0.65rem, #000, 0.9rem);
        margin-top: 0.1rem;
        .text-overflow();
    }

    .item__subTitle--gray {
        width: 100%;
        .font(0.65rem, #757575, .85rem);
        margin-top: 0.15rem;
        .line-clamp(2);
    }

    .item__recommandText {
        width: 100%;
        position: relative;
        padding-left: 0.55rem;
        .font(0.6rem, #757575, 0.85rem);
        margin-top: 0.1rem;


        &::before {
            content: '';
            position: absolute;
            top: 0.1rem;
            left: 0;
            width: 0.35rem;
            height: 0.3rem;
            background: url(https://static.caibeike.com/i/15c9bcb1e3a23b10c207f46214c4e7d9-PzvWWf-AOwAehp1) no-repeat;
            background-size: 0.35rem 0.3rem;
        }
    }

    .item__recommandText--lineCamp1 {
        .text-overflow();
    }

    .item__recommandText--lineCamp2 {
        .line-clamp(2);
    }

    .item-tags {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        margin-top: 0.2rem;

        &:empty {
            display: none;
        }

        .tag--join {
            display: inline-block;
            position: relative;
            padding-left: 0.85rem;
            padding-right: 0.35rem;
            background: #FF224426;
            .font(0.5rem, #ff2244, 0.75rem);
            border-radius: 0.38rem;
            .text-overflow();
            margin-right: 0.25rem;

            &::before {
                content: '';
                position: absolute;
                left: 0.3rem;
                width: 0.35rem;
                height: 0.43rem;
                background: url(https://static.caibeike.com/i/cdf90d98af6342fe9fb9cc058ce2c75a-Hzf6do-bewbihp1) no-repeat;
                background-size: 0.35rem 0.43rem;
                top: 50%;
                transform: translateY(-50%);
            }
        }

        .tag--normal {
            display: inline-block;
            position: relative;
            .font(0.5rem, #ff2244, 0.75rem);
            padding: 0 0.37rem;
            .border-1px(#ff2244, 0.38rem);
            .text-overflow();
        }
    }

    .item-price {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        flex: 1;
        padding-bottom: 0.12rem;

        .bar_soldPrice__price {
            font-size: 1rem;
            line-height: 0.75rem;
        }

        .item__btn {
            min-width: 2.75rem;
            height: 1.2rem;
            background: linear-gradient(38deg, #FF2244 0%, #FF2244 100%);
            border-radius: 0.75rem;
            text-align: center;
            line-height: 1.2rem;
            font-size: 0.6rem;
            color: #fff;
            font-weight: 500;
            transform: translateY(0.12rem);
        }
    }

    .item__soldPrice {
        // .bar_soldPrice__price {
        //     font-size: 0.8rem;
        // }

        .bar-afterPrice-unit {
            font-size: 0.5rem;
            line-height: 0.5rem;
        }

        .bar_soldPrice__unit {
            font-size: 0.5rem;
            line-height: 0.4rem;
            margin-right: 0.05rem;
        }

        .bottom-bar_marketPrice {
            margin-left: 0.2rem;
        }

        .bottom-bar__prePrice {
            font-size: 0.5rem;
            line-height: 0.5rem;
        }
    }

}



.template-recommands--line {
    background: #fff;
    padding: 0 0.75rem;
    // padding-bottom: 1.5rem;

    .recommands-item {
        &:not(:last-child) {
            margin-bottom: 0.75rem;
        }
    }

    .template__header {
        position: relative;
        .font(0.9rem, #000, 1.1rem);
        padding: 0.9rem 0;
        padding-left: 0.6rem;
        font-weight: 500;

        &:before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 0.15rem;
            height: 0.75rem;
            background: #ff2244;
            border-radius: 0.08rem;
        }

    }
}










.template-recommands--flower {
    background: #f5f5f5;
    padding: 0 0.5rem;
    // padding-bottom: 1.5rem;

    .recommands-item {
        padding: 0.75rem 0.5rem;
        background: #fff;
        border-radius: 0.4rem;

        &:not(:last-child) {
            margin-bottom: 0.5rem;
        }
    }

    .template__header {
        display: flex;
        align-items: center;
        justify-content: center;
        .font(0.85rem, #000, 1.05rem);
        padding: 0.9rem 0;
        font-weight: 500;

        &::before {
            content: '';
            display: block;
            width: 1.1rem;
            height: 0.5rem;
            background: url(https://static.caibeike.com/i/795c7c9c42302b2f3bce2008c5cacfb4-uDwVJH-OOweMhp1) no-repeat;
            background-size: 1.1rem 0.5rem;
            margin-right: 0.5rem;
        }

        &::after {
            content: '';
            display: block;
            width: 1.1rem;
            height: 0.5rem;
            background: url(https://static.caibeike.com/i/795c7c9c42302b2f3bce2008c5cacfb4-uDwVJH-OOweMhp1) no-repeat;
            background-size: 1.1rem 0.5rem;
            margin-left: 0.5rem;
            transform: rotate3d(0, 1, 0, 180deg);
        }

    }

    .item__soldPrice {
        .bar_soldPrice__price {
            font-size: 0.8rem;
            line-height: 0.6rem;
        }
    }
}