.compare {
    background-color: #fff;
    display: none;
    width: 100%;
    height: auto;
    position: fixed;
    z-index: 1000;
    bottom: 0;
    margin-bottom: 0;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 0px 16px rgba(0, 0, 0, 0.4);
}

.compare .panel {
    margin-bottom: 0;
}

.compare .d-flex.justify-content-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 15px;
}

.compare .item-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: 100px;
    border: 1px dotted #b4b4b4;
    background: #efefef;
    padding: 2px;
    margin: 2px;
    border-radius: 5px !important;
    text-align: center;
    background-size: cover;
    position: relative;
}
.compare .item-box .btn-close {
    position: absolute;
    top: -2px;
    right: 0px;
    width: 20px;
    padding: 0;
    height: 20px;
    margin: 0;
    background: transparent;
    color: #000000;
    font-size: 18px;
}


.compare i {
    float: right;
    font-size: 25px;
    padding: 10px 0;
}

.compare button.close-btn {
    background: none;
    border: var(--themeColor) solid 2px;
    color: var(--themeColor);
    font-size: 20px;
}

.compare button.btn-info {
    position: absolute;
    margin-left: 162px;
    margin-top: -11px;
    height: 27px;
    border-radius: 5px !important;
}
.accordion-button {
    background-color: var(--themeColor) !important;
    align-items: center;
    width: 100%;
    color: #ffff;
    text-align: left;
    background-color: #fff;
    border: 0;
    border-radius: 0;
    outline: 0 !important;
    transition: color .15s ease-in-out,
    background-color .15s ease-in-out,
    border-color .15s ease-in-out,
    box-shadow .15s ease-in-out,
    border-radius .15s ease;
}



.compare-table-container {
    max-height: 70vh;
    overflow-y: auto;
    background: white;
    margin: 10px;
    border: 1px solid #ddd;
}

#compare-table {
    width: 100%;
    table-layout: fixed;
}

#compare-table th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.compare-items {
    min-width: 200px;
    position: relative;
}
.compare-items h3 {
    font-size: 14px;
}

.compare-items img {
    max-width: 25%;
    height: 112px;
    object-fit: contain;
}
.custom-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px !important;
    transition: background-color 0.3s;
}

.custom-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.custom-slider::before {
    transform: var(--slider-transform, translateX(0));
}
/* ============================= */
/* EXTRA SMALL DEVICES */
/* ============================= */
#compare-bottom-container{
    text-align: center;
}
@media (max-width: 500px) {

    /* Keep container fluid */
    .compare,
    .compare-table-container,
    .table-responsive {
        width: 100%;
        overflow-x: auto;
    }

    /* Table should size to content */
    #compare-table {
        table-layout: fixed;
        width: max-content;   /* IMPORTANT */
    }

    /* Label column */
    #compare-table th:first-child,
    #compare-table td:first-child {
        width: 100px;
        min-width: 100px;
    }

    /* Product columns */
    #compare-table th:not(:first-child),
    #compare-table td:not(:first-child) {
        width: 120px;
        min-width: 120px;
    }

    /* Compact spacing */
   #compare-table th,
    #compare-table td {
        overflow-wrap: break-word;  
        white-space: normal;       
        max-width: 200px;          
        word-break: break-word;    
    }

    /* Compact product header */
    .compare-items {
        width: 200px;
        min-width: unset;
        text-align: center;
    }

    .compare-items img {
        height: 105px;
        max-width: 100px;
        object-fit: contain;
        margin-left: 45px;
    }

    .compare-items h3 {
        font-size: 10px;
        margin: 2px 0;
    }
    .compare button.btn-info {
        margin-left: 60px;
    }

}