model-comparison{
    display: block;
}
model-comparison .item{
    background-color: #ffffff;
}
model-comparison .model-comparison-header{
    margin-bottom: 40px;
}
model-comparison .model-comparison-input{
    display: flex;
    width: 100%;
    gap: 27px;
    margin-bottom: 24px;
}

model-comparison .model-comparison-table{
    position: relative;
    --first-padding-left:20px;
    display: flex;
    flex-direction: column;
    overflow: auto;
    max-height: 80vh;
    width: 100%;
}

model-comparison .table-title-grid{
    width: 100%;
    display: flex;
    padding-block: 12px;
    background-color: var(--background-color);
    color: var(--text-color);
    cursor: pointer;
}
model-comparison .row{
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

model-comparison .item{
    padding-block: 16px;
    position: relative;
}

model-comparison .item::after{
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid #F7F7F7;
    content: "";
    display: block;
    top: 0;
    left: 0;
    pointer-events: none;
}
model-comparison .table-first,
model-comparison .table-title{
    position: sticky;
    left: 0px;
    padding-left: var(--first-padding-left);
    z-index: 2;
}

model-comparison .table-first{
    background-color: var(--first-background-color);
    color: var(--first-text-color);
}
model-comparison .table-title{
    display: flex;
    gap: 15px;
    align-items: center;
}

model-comparison .product-grid{
    min-height: 300px;
    position: sticky;
    top: 0px;
    z-index: 3;
}
model-comparison .product-grid>div{
    background-color: #ffffff;
    display: flex;
    align-items: center;
    padding-inline: 12px;
}

model-comparison .table-row.price .product-item{
    background: rgba(228, 228, 228, 0.50);
}

model-comparison .table-expand.close .table-body{
    display: none;
}
model-comparison .table-expand.close .table-title svg{
    transform: rotate(180deg);
}

model-comparison .product-item.item{
    display: flex;
    justify-content: center;
}
model-comparison .table-body,
model-comparison .table-expand{
    width: fit-content;
    min-width: 100%;
}
@media(max-width:959px){
    model-comparison .row,
    model-comparison .table-title-grid {
        width: 180%;
    }

    model-comparison .row{
        grid-template-columns: 150px 1fr 1fr 1fr;
    }
}