/* Removed overflow: hidden */
.comparison-slider {
    display: flex;
    position: relative;
    flex-direction: column;
}

/* Ensure swiper wrapper is flexible and fits properly */
.comparison-wrapper {
    display: flex;
    width: 100%;
    height: 673px;
    overflow: hidden;
    transition: height 0.5s ease-in-out; /* Smooth transition for height change */
    position: relative; /* Required for pseudo-element */
    font-size: var(--table-text-font-size);
    line-height: var(--table-text-line-height);

}

/* Ensure the swiper container is properly sized */
.swiper-container {
    width: 100%; /* or a fixed width, depending on your needs */
    height: auto;
    overflow: hidden;
}

/* Add some space for arrows */
.swiper-button-prev,
.swiper-button-next {
    background-color: unset;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    z-index: 10;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


.sticky-column {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
    width: 200px; /* Adjust width as needed */
    box-sizing: border-box;
}

.block_type_geometry .sticky-column {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
    width: 400px; /* Adjust width as needed */
    box-sizing: border-box;
}

.comparison-wrapper .row strong {
    display: block;
}

.value {
}

/*.swiper-container {*/
/*    flex-grow: 1;*/
/*    position: relative;*/
/*}*/

/*.swiper-wrapper {*/
/*    display: flex;*/
/*}*/

.comparison-wrapper  .swiper-slide {
    width: 312px;
    box-sizing: border-box;
}

.comparison-wrapper .row .value {
    padding-left: 10px;
    padding-right: 10px;
}


.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: unset;
}




.comparison-wrapper .row{

    padding: 10px 0;
    border-bottom: 1px solid var(--color-black);

}

.comparison-wrapper .row{

    padding: 10px 0;
    border-bottom: 1px solid var(--color-black);

}
.swiper-slide .attribute-row-colors {
    display: flex;
    align-items: center;
}
.variant-comparison-cta {
    display: flex;
    flex-direction: column;
}
.variant-comparison-cta .cta{
    align-self: flex-start;
}
.comparison-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px; /* Slightly shorter fade effect */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.5) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
    z-index: 1;
}

/* Remove fade when fully expanded */
.comparison-wrapper.expanded::after {
    opacity: 0; /* Hide the fade effect */
}

.comparison-wrapper .swiper-button-prev,
.comparison-wrapper .swiper-button-next {
    background-color: unset;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 50%;
    z-index: 10;
    margin: 0 auto;
}
.comparison-slider-pagination {
    width: 150px;
    align-items: center;
    /* justify-content: center; */
    /* text-align: center; */
    /* display: flex
; */
}
.comparison-wrapper .swiper-button-next:after {
    border-bottom: 2px solid var(--color-black);
    border-right: 2px solid var(--color-black);
}
.comparison-wrapper .swiper-button-prev:after {
    border-top: 2px solid var(--color-black);
    border-left: 2px solid var(--color-black);
}
.variant-comparison-header {
    background: var(--color-black);
    color: #ffffff;
    align-self: flex-start;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-s);
}
.comparison-wrapper.size-comparison-wrapper {

    height: 480px;

}
.comparison-wrapper.size-comparison-wrapper .swiper-slide {

    width: 150px;

}

.comparison-column .inline-font-bold{
    color: var(--color-red);
}

@media (max-width: 480px){

    .comparison-wrapper .swiper-button-prev, .comparison-wrapper .swiper-button-next {
        background-color: unset;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 40px;
        display: flex
    ;
        justify-content: center;
        align-items: center;
        position: relative;
        top: 50%;
        z-index: 10;
        margin: 0 auto;
        right: 0
    }

    .comparison-wrapper  .swiper-slide {
        width: 187px;
        box-sizing: border-box;
    }

    .comparison-slider-pagination {
        width: 75px;
        align-items: center;
    }

    .comparison-wrapper.size-comparison-wrapper .swiper-slide {
        width: 105px;
    }

    .comparison-wrapper .swiper-button-prev {
        left: 0;
    }

    .comparison-wrapper .swiper-button-prev:after,
    .comparison-wrapper .swiper-button-next:after {
        width: 18px;
        height: 18px;
        right: 0;
    }

}
