﻿
.new-card-listing {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-bottom: 10px;
    box-shadow: 1px 1px 5px #112d607a;
    border-radius: 5px;
    cursor: pointer;
    justify-content: space-between;
}


a .new-offer-dealer:hover {
    color: black;
}

a.new-sell-type:hover {
    color: white;
}

.new-card-listing:hover {
    box-shadow: 0px 0px 2px #112d607a;
}

.new-offers-container {
    display: flex;
    flex-wrap: wrap;
    width: 74%;
    height: fit-content;
}

.new-offer-country img {
    width: 23px;
}

.csshub-ribbon svg {
    fill: #0713eb;
    filter: invert(1);
    vertical-align: text-top;
    width: 15px;
    margin: -4px 4px;
}

.new-offer-country {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 1px 10px;
    width: fit-content;
    gap: 5px;
}

.new-card-image {
    width: 35%;
    display: flex;
    position: relative;
    height: auto;
    border-radius: 5px;
}

    .new-card-image > a {
        width: 100%;
        height: 100%;
        display: flex;
    }

        .new-card-image > a amp-img {
            width: 100%;
            height: auto;
        }

            .new-card-image > a amp-img > img:not(:nth-child(2)) {
                max-height: none;
                max-width: none;
                min-height: 0;
                min-width: 0;
                width: 100%;
                height: auto;
                margin: auto;
                border-top-left-radius: 5px;
                border-bottom-left-radius: 5px;
            }


.new-card-detailes {
    width: 65%;
    max-width: 65%;
    min-width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 3px;
}

.new-card-title-div {
    position: relative;
}

.new-card-part-number {
    padding: 0 10px;
    font-weight: 600;
    margin: 0px;
}

.new-details-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.new-card-title-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.new-card-title-div > i {
    position: absolute;
    right: 7px;
    top: 7px;
    cursor: pointer;
    font-size: 25px;
}

.new-card-payment-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 10px;
}

.new-card-price span {
    font-size: 16px;
    font-weight: 600;
    text-shadow: none;
    margin: 0;
    min-height: 1.5em;
}

    .new-card-price span:not(:last-child) {
        color: #dd0000;
    }

.new-card-title-div {
    display: flex;
    flex-direction: column;
}


.new-card-place {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
}

.new-card-offer-details {
    display: flex;
    flex-wrap: nowrap;
    justify-content: start;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}

.new-card-title {
    color: black;
    font-weight: 700;
    font-size: 18px;
    padding: 5px 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding-right: 30px;
    align-items: center;
    display: flex;
}

.new-card-payment-way {
    font-size: 14px;
    font-weight: 600;
}



    .new-card-payment-way[data-pay="Cash"] {
        display: none;
    }

.new-sell-type {
    border: 1px solid;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: white !important;
    padding: 0px 26px;
    white-space: nowrap;
    width: fit-content;
    margin: auto 10px;
}

    .new-sell-type[data-type="Sale"] {
        /*border-color: #0067c0db;
        background-color: #0067c0db;*/
        border-color: #0080a7;
        background-color: #0080a7;
    }

    .new-sell-type[data-type="Wanted"] {
        border-color: #d31018;
        background-color: #d31018;
    }

    .new-sell-type[data-type="Rent"] {
        border-color: #f68d00;
        background-color: #f68d00;
    }


.new-card-city {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.new-offer-dealer {
    border: 1px solid #247ec9;
    border-radius: 5px;
    font-size: 12px;
    padding: 0 8px;
    color: black;
}

.new-offer-category {
    color: black;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 47%;
    padding: 0px 10px;
    display: flex;
    gap: 3px;
    align-items: center;
}

.new-card-city,
.new-offer-country span {
    color: black;
    font-size: 13px;
}

.new-imaghes-count {
    position: absolute;
    background-color: #00000094;
    border-radius: 5px;
    line-height: 0;
    padding: 3px 4px;
    font-size: 14px;
    color: white;
    bottom: 5px;
    right: 5px;
}

.new-fav-heart.faourite {
    color: red;
}

.new-card-condition {
    color: green;
    font-weight: 700;
    line-height: normal;
    font-size: 12px;
    margin: 0;
}

.new-card-buts a {
    color: black !important;
    background-color: #ffffff;
    border: 0;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
    line-height: 2;
    border-radius: 3px;
    width: 30%;
    border: 1px solid transparent;
    border-color: black;
}

    .new-card-buts a span a {
        width: 100%;
        border: none;
    }

    .new-card-buts a span.full-phones a span {
        color: black !important;
    }

.new-card-buts {
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 0 10px;
    gap: 5px;
}

.out-of-search {
    box-shadow: 0px 0px 3px 0px #ff4100;
}

.new-first-part amp-img,
.new-first-part > img {
    width: 47px;
    height: auto;
}

    .new-first-part amp-img > img {
        width: auto;
        height: auto;
    }

.chat-with.online {
    color: white !important;
    border-color: green;
}

.new-card-image a {
    position: relative;
}

    .new-card-image a .csshub-ribbon-wrapper {
        width: 106px;
        height: 108px;
        overflow: hidden;
        position: absolute;
        top: -6px;
        left: -4px;
    }

    .new-card-image a .csshub-ribbon {
        color: #e9ea7b;
        text-align: center;
        text-transform: uppercase;
        -webkit-transform: rotate(315deg);
        -moz-transform: rotate(315deg);
        -ms-transform: rotate(315deg);
        -o-transform: rotate(315deg);
        position: relative;
        padding: 7px 0;
        width: 168px;
        background-color: #6daaab;
        /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
        letter-spacing: 0.5px;
        /*box-shadow: -3px 5px 6px -5px rgba(0, 0, 0, 0.5);*/
        outline: 1px dotted #E5E82C;
        outline-offset: -4px;
        background-image: radial-gradient(circle farthest-side, #FF1C1A, #BF0B00);
        text-shadow: 2px 1px 0px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

        .new-card-image a .csshub-ribbon:before, .new-card-image a .csshub-ribbon:after {
            content: "";
            border-top: 4px solid #BF0B00;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            position: absolute;
            bottom: -4px;
        }

        .new-card-image a .csshub-ribbon:before {
            content: "";
            position: absolute;
            left: 0px;
            top: 100%;
            z-index: -1;
            border-left: 4px solid #BF0B00;
            border-right: 4px solid transparent;
            border-bottom: 4px solid transparent;
            border-top: 4px solid #BF0B00;
        }

        .new-card-image a .csshub-ribbon:after {
            content: "";
            position: absolute;
            right: 7px;
            top: 100%;
            z-index: -1;
            border-left: 4px solid transparent;
            border-right: 4px solid #BF0B00;
            border-bottom: 4px solid transparent;
            border-top: 4px solid #BF0B00;
        }

.new-card-title-div svg {
    fill: #0713eb;
    filter: invert(1);
    vertical-align: text-top;
    margin: auto 0;
}

.new-card-listing.special-offer-card {
    box-shadow: 0px 0px 4px 3px #9a532b;
}


    .new-card-listing.special-offer-card .new-card-image a {
        padding: 5px;
        border-radius: 5px;
    }



@media only screen and (min-width: 768px) {
    .new-card-listing.special-offer-card .new-card-image {
        border-right: 0px solid #112d607a !important;
    }

    .new-card-condition {
        border-bottom-left-radius: 0px;
        border-top-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    .new-card-image a .csshub-ribbon {
        font-size: 12px;
        line-height: 18px;
        left: -40px;
        top: 27px;
    }

    .new-offer-country p {
        margin: 0;
    }

    h2.new-card-title,
    .new-card-payment-type,
    .new-offer-country p,
    .new-first-part h2,
    .new-offer-category,
    .new-sell-type {
        line-height: 1.7em !important;
    }

    .new-card-payment-way[data-pay="CashPremuim"] {
        color: green;
    }

    .new-card-image > a amp-img > img {
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .new-card-part-number {
        height: 1.8em;
        font-size: 14.5px;
    }

    .new-card-price {
        height: 1.8em;
        font-size: 16px;
    }

    .new-card-title {
        width: 89%;
    }

    .new-card-condition,
    .new-offer-category {
        font-size: 16px;
        height: 1.8em;
    }

    h2.new-card-title,
    .new-first-part div h2,
    .new-first-part h2 {
        width: auto;
        padding-right: 0;
        padding-left: 5px;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .new-first-part div, .new-first-part {
        display: flex;
    }

    .new-first-part {
        padding: 0px 10px;
    }

    .new-card-title-div {
        gap: 5px;
    }

    .new-offer-dealer {
        line-height: normal;
    }

    .new-card-place {
        height: 24.09px;
    }
}

@media only screen and (max-width: 768px) {

    .dealers-box-enhance {
        display: none !important;
    }

    .csshub-ribbon svg {
        margin: -7px 4px;
        width: 12px;
    }

        .csshub-ribbon svg:first-child {
            margin-right: 4px;
        }

    .new-card-image a .csshub-ribbon {
        padding: 1px 0;
    }

    .new-card-image > a amp-img > img {
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        object-fit: cover;
    }

    .new-card-listing.special-offer-card {
        width: 48%;
        margin-right: 1%;
        margin-left: 1%;
    }

    .new-card-image a .csshub-ribbon {
        font-size: 8px;
        line-height: 9px;
        left: -50px;
        top: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 7px;
    }

    .new-card-image a {
        overflow-y: hidden;
    }

    h2.new-card-title,
    .new-first-part div h2,
    .new-first-part h2 {
        width: auto;
        padding-right: 0;
        padding-left: 5px;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .new-card-payment-way[data-pay="CashPremuim"] {
        background-color: green;
        color: white;
        height: fit-content;
        border-radius: 5px;
        position: absolute;
        padding: 13px 10px;
        font-weight: 400;
        line-height: 0;
        right: 0;
        border-top-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .new-offers-container {
        justify-content: space-around;
        width: 100%;
    }

    .new-card-buts a {
        font-size: 14px;
        width: 50%;
        flex: 1;
        border-color: white;
        background-color: #0080a7;
        color: white !important;
        font-weight: 400;
    }

    .new-card-listing {
        flex-direction: column;
        justify-content: flex-start;
        width: 49%;
        padding: 0px;
    }

    .new-card-city {
        display: initial;
    }

    .new-card-city, .new-offer-country span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px;
    }

    .new-card-place .mobile-price {
        color: #f00;
        white-space: nowrap;
        font-size: 14px;
    }

    .new-card-image {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        height: 131px;
        max-height: 131px;
        border-right: 0px;
    }

    .new-card-detailes {
        flex: 1;
        width: 100%;
        height: fit-content;
        max-width: 100%;
        min-width: 100%;
    }

    .new-card-title-div > i {
        right: 5px;
        top: -130px;
        font-size: 20px;
    }

    .new-card-title {
        display: -webkit-box;
        white-space: initial;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        max-height: 3.1em;
        line-height: 1.5em;
    }

    .new-card-offer-details {
        align-items: self-start;
        padding: 0px 10px;
    }

    /* .new-offer-dealer {
        border: 0px;
        font-size: 12px;
        line-height: initial;
        padding: 1px 3px;
        margin-bottom: 2px;
        text-decoration: revert;
        max-width: 50%;
        text-overflow: ellipsis;
        overflow: hidden;
    }*/

    .new-offer-country {
        padding: 0 0px;
        max-width: 50%;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .new-card-buts {
        width: 100%;
        justify-content: center;
        gap: 0;
        padding: 0;
    }



    .new-first-part {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

        .new-first-part > div:first-child {
            display: flex;
            flex-direction: row-reverse;
            justify-content: center;
            gap: 3px;
            align-items: center;
        }

        .new-first-part span {
            font-size: 16px;
            font-weight: 400;
        }

        .new-first-part > div {
            text-align: center;
            width: 100%;
        }

    .new-card-place {
        margin-bottom: 5px;
        padding: 0px 10px;
    }

    .new-card-title-div {
        margin: 0px 5px;
    }

    .new-offer-dealer,
    .new-card-payment-type,
    .new-card-price,
    .new-offer-category,
    .new-sell-type {
        display: none;
    }

    .new-card-title {
        padding: 5px 10px 5px 10px;
    }

    .new-sell-type[data-type="Rent"] {
        height: auto;
        padding: 2px 10px;
        line-height: 1;
        text-align: center;
        width: auto;
        position: absolute;
        bottom: 0;
        left: 0;
        margin: 0;
        font-weight: 400;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }

    .new-sell-type[data-type="Sale"] {
        height: auto;
        padding: 2px 10px;
        line-height: 1;
        text-align: center;
        width: auto;
        position: absolute;
        bottom: 0;
        left: 0;
        margin: 0;
        font-weight: 400;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }

    .new-sell-type[data-type="Wanted"] {
        height: auto;
        padding: 2px 10px;
        line-height: 1;
        text-align: center;
        width: auto;
        position: absolute;
        bottom: 0;
        right: 0;
        margin: 0;
        font-weight: 400;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
        border-bottom-left-radius: 0px;
    }
}
