.compare-container {
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    font-size: 0.9rem;
    scrollbar-width: none;
}

.compare-container table td {
    background: var(--bs-white);
    min-width: 260px;
}

/* Column width same for each product cell */
.comp-col {
    min-width: 220px;
}

/* Slider arrows */
.compare-arrow {
    position: absolute;
    top: 52%;
    transform: translateY(-50%);
    z-index: 20;
    background-color: #fff;
    border-color: #fff;
}

.compare-arrow i {
    border-radius: 50%;
    border: 2px solid var(--bs-dark);
    padding: 10px; 
}

.compare-wrapper .btn-light:focus {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0);
}

.left-arrow {
    left: 235px;
}

.right-arrow {
    right: -30px;
}

@media(max-width: 768px) {
    .sticky-col {
        min-width: 120px;
    }

    .comp-col {
        min-width: 200px;
    }
}

.compare-container th,
.compare-container td {
    padding: 16px 0px;
}

.compare-container th {
    color: var(--bs-dark);
}

@media (max-width: 576px) {
    .compare-container th,
    .compare-container td {
        padding: 6px 8px;
        font-size: 14px;
    }
}

.compare-container table td.sticky-col {
    text-align: left;
    padding-left: 30px;    
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 10;
    font-weight: 600;
    width: 250px;
}

@media (max-width: 768px) {
    .compare-container table .sticky-col {
        display: none !important;
    }

    .left-arrow {
        left: 0px;
    }

    .right-arrow {
        right: 0px;
    }
}

.compare-container table td.sticky-col::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: var(--bs-dark);
}

.compare-container table tr:first-child td.sticky-col::before {
    top: 50%;
}

.compare-container table tr:last-child td.sticky-col::before {
    height: 0%;
}

.compare-container table tr:nth-last-child(2) td.sticky-col::before {
    height: 50%;
}

.table-row-border td,
.table-row-border th {
    position: relative;
}

.table-row-border td::after,
.table-row-border th::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80%;
    height: 1px;
    background: var(--bs-dark);
    transform: translateX(-50%);
}
