.compare-table-wrap {
    position: relative;
    max-height: 72vh;
    margin: 18px 0 28px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(25, 42, 70, .06);
    scrollbar-color: #aab8cc #eef2f7;
    scrollbar-width: thin;
}

.compare-table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.compare-table-wrap::-webkit-scrollbar-track { background: #eef2f7; }
.compare-table-wrap::-webkit-scrollbar-thumb { background: #aab8cc; border: 2px solid #eef2f7; border-radius: 999px; }

.compare-table {
    width: 100%;
    min-width: 1120px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    line-height: 1.3;
}

.compare-table th,
.compare-table td {
    padding: 13px 14px;
    border: 0;
    border-bottom: 1px solid #e8edf3;
    background: #fff;
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}

.compare-table thead th {
    position: sticky;
    z-index: 3;
    top: 0;
    background: #f3f6fa;
    color: #26364d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    box-shadow: inset 0 -1px 0 #d7e0ea;
}

.compare-table thead th:not(:first-child) { min-width: 104px; }
.compare-table tbody tr:nth-child(even) th,
.compare-table tbody tr:nth-child(even) td { background: #fafbfd; }
.compare-table tbody tr:hover th,
.compare-table tbody tr:hover td { background: #eef5ff; }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }

.compare-table th:first-child {
    position: sticky;
    z-index: 2;
    left: 0;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    text-align: left;
    box-shadow: 1px 0 0 #dfe5ec;
}

.compare-table thead th:first-child { z-index: 4; }
.compare-model a { display: block; text-decoration: none; }
.compare-brand {
    display: inline-block;
    margin-bottom: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #315fa9;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}
.compare-name {
    display: block;
    overflow-wrap: anywhere;
    color: #26364d;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
}
.compare-model a:hover .compare-name { color: #315fa9; }
.compare-scroll-hint { display: none; }

@media (max-width: 767px) {
    .compare-table-wrap { max-height: 68vh; margin-right: -15px; margin-left: -15px; border-radius: 0; }
    .compare-scroll-hint {
        position: sticky;
        z-index: 5;
        left: 0;
        display: block;
        width: 100vw;
        margin: 0;
        padding: 9px 15px;
        background: #26364d;
        color: #fff;
        font-size: 12px;
        line-height: 1.3;
    }
    .compare-table { min-width: 940px; font-size: 13px; }
    .compare-table th, .compare-table td { padding: 11px 10px; }
    .compare-table th:first-child { width: 158px; min-width: 158px; max-width: 158px; }
    .compare-table thead th { top: 37px; font-size: 12px; }
}
