#wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

#wrapper {
    padding: 10px 0 20px;
}

#wrapper .col-l {
    flex-basis: 70%;
}

#wrapper .col-r {
    flex-basis: 28%;
}

/*chi tiết xe*/

#wrapper .car-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: var(--bgInfoCar);
    border-radius: 4px;
    padding: 5px;
}

#wrapper .col-l .title {
    margin-bottom: 15px;
}

/*danh sách ảnh xe*/

.car-info .box-img {
    flex-basis: 47%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.car-info .box-img #main-photo {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px
}

#main-photo img {
    height: 304px;
}

.car-info .box-img .list-img {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-flow: row wrap;
    overflow-y: auto;
    height: 83px;
    width: 100%;
}

.col-l .list-img:after {
    content: '';
    flex-basis: 24%;
}

.col-l .list-img li {
    flex-basis: 24%;
    margin-bottom: 5px;
}

.col-l .list-img .photo-list {
    display: inline-block;
    width: 100%;
}

.col-l .list-img .photo-list img {
    object-fit: cover;
    height: 78px;
    width: 100%;
}

/*thông tin xe và người bán*/

.car-info .box-info {
    flex-basis: 52%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
}

.car-info .box-info .item-info {
    flex-basis: 49%;
}

.box-info .item-info .item {
    padding: 10px;
    border-bottom: 1px dotted var(--gray2);
    display: flex;
    align-items: center;
}

.box-info .item-info .item:last-child {
    border-bottom: none;
}

.box-info .item-info .item span {
    flex-basis: 40%;
}

.item-info .item .price {
    font-size: 17px;
    font-weight: bold;
}

.box-member-sell {
    flex-basis: 100%;
    border-radius: 4px;
    padding: 10px 5px;
    margin-top: 19px;
}

.box-member-sell h4 {
    padding-bottom: 5px;
}

.box-member-sell .light:after {
    width: 40%;
}

.box-member-sell .item {
    padding: 5px 0;
}

/*mô tả xe*/

#wrapper .car-description {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    background: var(--bgInfoCar);
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.car-description h4 {
    margin-bottom: 20px;
    text-transform: uppercase;
}

/*vay trả góp*/
.col-l .box-installment {
    margin-top: 20px;
    background: var(--bgInfoCar);
    padding: 15px;
    border-radius: 4px;
}

.installment {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.installment .item {
    flex-basis: 49%;
    margin-bottom: 10px;
}

.installment .item:last-child {
    margin-bottom: 0;
}

.installment .item label {
    margin-bottom: 5px;
    display: inline-block;
}

.installment .item  input,  .installment .item  select {
    width: 100%;
    height: 35px;
    border: 1px solid #dedede;
    outline: none;
    padding-left: 10px;
    background: var(--gray);
    border-radius: 4px;
    color: var(--black);
}

.installment .item select option {
    color: var(--black);
}

.installment .item .icon {
    color: var(--red);
    font-weight: bold;
}

.installment .item .car-price {
    cursor: no-drop;
}

.installment .btn-send {
    text-align: left;
    flex-basis: auto;
    margin-top: 5px;
}

.installment input[type="text"][disabled] {
    font-weight: bold;
}

.installment .btn-send a {
    display: inline-block;
    text-transform: uppercase;
    color: var(--white);
    background: var(--red);
    font-weight: bold;
    padding: 6px 30px;
    border-radius: 4px;
}

.installment .btn-send a:hover {
    background: var(--redHover);
}

.rs-installment {
    border-radius: 4px;
    padding: 5px 15px;
    margin: 15px 0 0;
}

.rs-installment .item {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    border-bottom: 1px dotted var(--gray);
}

.rs-installment .item:last-child {
    border-bottom: none;
}

.rs-installment .item label {
    margin-bottom: 5px;
    font-weight: bold;
}

.rs-installment .item span {
    color: var(--red);
    font-weight: bold;
}

.extra-content p {
    margin: 10px 0;
}

/*xe mới về*/
.col-r .list .item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--bgInfoCar);
}

.col-r .item .img {
    width: 30%;
}

.col-r .item .img img {
    height: 82px;
}

.col-r .item .info {
    width: 67%;
    position: relative;
}

.col-r .item .info .car {
    display: inline-block;
}

.col-r .item .info .car:hover {
    color: var(--red);
}

.col-r .list .item:last-child {
    border: none;
}

@media only screen and (max-width: 1200px) {
    #wrapper {
        padding: 10px 0;
        flex-wrap: wrap;
    }

    #wrapper .col-l {
        flex-basis: 100%;
        margin-bottom: 15px;
    }

    #wrapper .col-r {
        flex-basis: 100%;
        padding: 0 15px;
    }

    .col-l .title {
        padding: 0 15px;
    }

    #wrapper .box-installment .title {
        padding: 0;
    }

    /*xe mới về*/
    #wrapper .col-r {
        flex-basis: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    #wrapper .col-r .title {
        flex-basis: 100%;
    }

    #wrapper .col-r .box-new-cars {
        flex-basis: 68%;
        padding: 0 15px;
    }

    #wrapper .col-r .box-advertisement {
        flex-basis: 30%;
        margin-top: 10px;
    }

    .col-r .item .img img {
        height: 150px;
    }
}

@media only screen and (max-width: 1024px) {
    /*xe mới về*/
    .col-r .item .img img {
        height: 130px;
    }
}

@media only screen and (max-width: 991px) {
    /*chi tiết xe*/
    #wrapper .car-info {
        flex-wrap: wrap;
    }

    .car-info .box-img {
        flex-basis: 100%;
        margin-bottom: 10px;
    }

    .car-info .box-info {
        flex-basis: 100%;
    }

    .box-member-sell {
        margin-top: 0;
    }

    /*danh sách ảnh xe*/
    #main-photo img {
        height: 550px;
    }

    .car-info .box-img .list-img {
        height: 156px;
    }

    .col-l .list-img .photo-list img {
        height: 153px;
    }

    /*thông tin người bán*/
    #wrapper .car-description {
        padding: 10px;
    }

    /*xe mới về*/

    .col-r .item .info {
        top: 0;
    }

    .col-r .item .info .car {
        margin-bottom: 3px;
    }
}

@media only screen and (max-width: 768px) {
    /*danh sách ảnh xe*/
    #main-photo img {
         height: 480px;
    }

    .col-l .list-img .photo-list img {
        height: 115px;
    }

    .car-info .box-img .list-img {
        height: 118px;
    }

    /*xe mới về*/
    .col-r .item .img img {
        height: 140px;
    }

    #wrapper .col-r .box-new-cars {
        flex-basis: 100%;
    }

    /*ảnh quảng cáo*/

    #wrapper .col-r .box-advertisement {
        flex-basis: 100%;
    }

    #wrapper .col-r .box-advertisement a {
        width: 100%;
    }
}

@media only screen and (max-width: 640px) {
    /*danh sách ảnh xe*/
    #main-photo img {
        height: 400px;
    }

    .col-l .list-img .photo-list img {
        height: 95px;
    }

    .car-info .box-img .list-img {
        height: 98px;
    }

    /*xe mới về*/
    .col-r .item .img img {
        height: 120px;
    }
}

@media only screen and (max-width: 576px) {
    /*danh sách ảnh xe*/
    #main-photo img {
        height: 360px;
    }

    .col-l .list-img .photo-list img {
        height: 85px;
    }

    .car-info .box-img .list-img {
        height: 88px;
    }

    /*xe mới về*/
    .col-r .item .img img {
        height: 105px;
    }

    /*thông tin người bán*/
    .car-description h4 {
        margin-bottom: 10px;
        font-size: 14px;
    }

    /*vay trả góp*/
    .installment .item {
        flex-basis: 100%;
    }
}

@media only screen and (max-width: 480px) {
    /*danh sách ảnh xe*/
    #main-photo img {
        height: 300px;
    }

    .col-l .list-img .photo-list img {
        height: 73px;
    }

    .car-info .box-img .list-img {
        height: 75px;
    }

    /*chi tiết thông tin xe*/
    .car-info .box-info .item-info {
        flex-basis: 100%;
    }

    .box-info .item-info .item:last-child {
        border-bottom: 1px dotted var(--gray2);
    }

    .item-info .item .price {
        font-size: 18px;
    }

    .box-info .item-info .item span {
        flex-basis: 35%;
    }

    /*xe mới về*/
    .col-r .item .img img {
        height: 85px;
    }

    .col-r .list .item {
        padding: 10px 0;
    }
}

@media only screen and (max-width: 420px) {
    /*danh sách ảnh xe*/
    #main-photo img {
        height: 260px;
    }

    .col-l .list-img .photo-list img {
        height: 63px;
    }

    .car-info .box-img .list-img {
        overflow-y: hidden;
        height: auto;
    }
}

@media only screen and (max-width: 375px) {
    /*danh sách ảnh xe*/
    #main-photo img {
        height: 243px;
    }

    .col-l .list-img .photo-list img {
        height: 58px;
    }

    /*xe mới về*/
    .col-r .item .img img {
        height: 75px;
    }
}

@media only screen and (max-width: 370px) {
    /*xe mới về*/
    .col-r .item .img img {
        height: 90px;
    }
}

@media only screen and (max-width: 320px) {
    /*danh sách ảnh xe*/
    #main-photo img {
        height: 199px;
    }

    .col-l .list-img .photo-list img {
        height: 48px;
    }

    .car-info .box-img .list-img {
        height: 50px;
    }

    /*xe mới về*/

    .item-info .item .price {
        font-size: 16px;
    }
}
