.car-compare-wrapper{
    margin: 25px 0;
    font-family: inherit;
}
.car-compare-selectors{
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    background: #f7f7f7;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e5e5e5;
}
.car-compare-selectors .selector-item{
    flex: 1;
}
.car-compare-selectors label{
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}
.car-compare-selectors select{
    width: 100%;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    padding: 0 10px;
    box-shadow: none;
}
.car-compare-selectors select option{
    color: #151515;
}
.car-compare-selectors select option[disabled]{
    color: #789789;
}
/* Thanh lọc Giống / Khác nhau */
.car-compare-filter-bar{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    background: #fff;
    padding: 10px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}
.car-compare-filter-bar span{
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}
.filter-btn{
    padding: 8px 14px;
    font-size: 13px;
    background: #fff;
    color: #446084;
    margin: 10px 0;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid #446084;
}
.filter-btn.active, 
.filter-btn:hover{
    background: #446084;
    color: #fff;
}
/* Bảng So Sánh Cố Định Bố Cục */
.car-compare-table-wrapper{
    width: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 4px;
    overflow: hidden;
}
.car-compare-table{
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed; /* Bắt buộc để chia đều rộng cột */
}
.car-compare-table th,
.car-compare-table td{
    padding: 12px 15px;
    vertical-align: top;
    text-align: left;
    word-wrap: break-word;
    vertical-align: middle;
    border: 1px solid #ececec;
}
.car-compare-table th:first-child,
.car-compare-table td:first-child{
    padding-left: 15px;
    text-align: left !important;
}
/* CHIA CỘT CỐ ĐỊNH ON DESKTOP: 1 tiêu chí (25%) + 3 xe (25% x 3) */
@media (min-width: 993px){
    .col-spec-title{ width: 25%; }
    .col-car-slot-1, 
    .col-car-slot-2, 
    .col-car-slot-3{ width: 25%; }
}
/* CHIA CỘT CỐ ĐỊNH ON TABLET & MOBILE: 1 tiêu chí (34%) + 2 xe (33% x 2) */
@media (max-width: 992px){
    .col-spec-title{ width: 34% !important; }
    .col-car-slot-1, 
    .col-car-slot-2{ width: 33% !important; }
    /* TỰ ĐỘNG ẨN 1 Ô LỰA CHỌN VÀ 1 CỘT SO SÁNH THỨ 3 KHI TRÊN TABLET/MOBILE */
    .selector-item-3,
    .col-car-slot-3{
        display: none !important;
    }
    .car-compare-table th, 
    .car-compare-table td{
        padding: 8px;
        font-size: 12px;
    }
    .car-title{ font-size: 13px !important; }
    .car-price{ font-size: 12px !important; }
}
/* Cột Tiêu Chí */
.col-spec-title{
    background-color: #f4f4f4;
    font-weight: 600;
    color: #333;
}
/* Cột Dữ Liệu Xe */
.row-header-info th{
    position: relative;
    background: #fff;
    text-align: center;
}
.btn-remove-car{
    position: absolute;
    top: 6px;
    right: 6px;
    background: #e53935;
    color: #fff;
    border: none;
    width: 24px;
    min-height: 24px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 23px;
    font-size: 16px;
    padding: 0;
}
.car-image-box{
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.car-image-box img{
    max-height: 100%;
    width: auto;
    object-fit: contain;
}
.car-title{
    font-size: 15px;
    margin: 5px 0;
    color: #446084;
    font-weight: 700;
}
.car-price{
    color: #d10000;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 12px;
}
.car-excerpt{
    font-size: 14px;
    font-weight: 400;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: left;
    text-transform: none;
}
/* Khung Placeholder khi chưa chọn xe */
.empty-slot-placeholder{
    padding: 30px 10px;
    color: #aaa;
    font-style: italic;
    text-align: center;
}
.row-group-title td{
    background-color: #446084;
    color: #fff;
}
.row-group-title h3{
    margin: 0;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
}
.row-spec-data:nth-child(even){
    background-color: #fafafa;
}
.empty-val{ color: #ccc; }
.compare-msg{
    padding: 15px;
    background: #fff8e5;
    border-left: 4px solid #ffb800;
    margin: 10px 0;
}
.car-compare-btn-wrapper{
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.car-compare-btn-wrapper a.button{
	display: block;
	margin: 10px;
	padding: 0;
	text-align: center;
    border-radius: 3px;
}
.car-compare-btn-wrapper a.primary{
	width: 66.7%;
}
.car-compare-btn-wrapper a.secondary{
	width: 33.3%;
}