#compareModal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:none;
    z-index: 99999;
    overflow-y:auto;
}

.compare-window{
    width:min(600px, calc(100% - 20px));
    margin:20px auto;
    background:#fff;
    padding:20px;
    border-radius:10px;
}
.compare-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.compare-title h3{
    margin:0;
    font-size:24px;
    font-weight:700;
}

.compare-close{
    border:0;
    background:transparent;
    width:40px;
    height:40px;
    border-radius:50%;
    cursor:pointer;
    font-size:34px;
    line-height:1;
    color:#777;
    transition:.2s;
}

.compare-close:hover{
    background:#f2f2f2;
    color:#000;
}
.compare-header{
    display:flex;
    gap:20px;
    margin-bottom:25px;
}

.compare-car{
    flex:1;
    border:1px solid #ddd;
    border-radius:10px;
    padding:20px;
    text-align:center;
    background:#fff;
}

.compare-car h3{
    margin:0;
    font-size:22px;
    font-weight:700;
}

.compare-version{
    color:#666;
    margin-top:8px;
}

.compare-price{
    font-size:28px;
    font-weight:bold;
    color:#0d6efd;
    margin:20px 0;
}    
.compare-empty{
    border:2px dashed #d5d5d5;
    border-radius:12px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    min-height:260px;
    background:#fafafa;
}

.compare-empty-icon{
    width:70px;
    height:70px;
    border-radius:50%;
    border:2px dashed #bbb;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:42px;
    font-weight:bold;
    color:#999;
    margin-bottom:20px;
}
.compare-section{
    overflow-x:auto;
}
.compare-table{
    width:100%;
    table-layout:fixed;
}
.compare-window{
    box-shadow:0 15px 40px rgba(0,0,0,.20);
}
@media (max-width:768px){

    .compare-window{
        width:calc(100% - 10px);
        margin:10px auto;
        padding:12px;
    }

    .compare-header{
        gap:10px;
    }

    .compare-car{
        padding:12px;
    }

    .compare-car h3{
        font-size:16px;
        line-height:1.2;
    }

    .compare-version{
        font-size:13px;
    }

    .compare-price{
        font-size:20px;
        margin:12px 0;
    }

    .compare-empty{
        min-height:180px;
    }

    .compare-empty-icon{
        width:50px;
        height:50px;
        font-size:30px;
        margin-bottom:10px;
    }

    .remove-compare{
        font-size:12px;
        padding:4px 8px;
    }

}
@media (max-width:768px){

    .compare-window{
        width:98%;
        margin:5px auto;
        padding:8px;
    }

    .compare-header{
        gap:6px;
    }

    .compare-car{
        padding:8px;
    }

    .compare-car h3{
        font-size:13px;
        line-height:1.2;
    }

    .compare-version{
        font-size:11px;
    }

    .compare-price{
        font-size:18px;
        margin:8px 0;
    }

    .compare-empty{
        min-height:150px;
    }

    .compare-empty-icon{
        width:42px;
        height:42px;
        font-size:24px;
        margin-bottom:8px;
    }

    .remove-compare{
        font-size:10px;
        padding:3px 6px;
    }

    .compare-table{
        font-size:11px;
    }

    .compare-table th,
    .compare-table td{
        padding:4px 6px;
        white-space:nowrap;
    }
.compare-table th{
    width:120px;
    font-size:11px;
}
    .compare-table td{
    width:90px;
    text-align:center;
        font-size:11px;
    }
.compare-table th{
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height:1.2;
}        
}