.comp-table-wrapper {
    text-align: center;
    font-family: inherit;
    max-width: 1140px;
    margin: 0 auto;
}

.comp-table-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #000;
}

.comp-table-subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
}

.comp-table-container {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    table-layout: fixed;
}

.comp-table th, 
.comp-table td {
    padding: 15px 20px;
    border: 1px solid #e5e5e5;
    text-align: center;
    font-size: 15px;
    color: #333;
}

.comp-table th:first-child,
.comp-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comp-table th {
    font-weight: 600;
    background: #fafafa;
}

.comp-table tr:hover {
    background: #f9f9f9;
}

.comp-table th:first-child:empty {
    border-top: none;
    border-left: none;
    background: transparent;
}

/* Base Visibility Rules */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

.comp-mobile-wrapper {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    text-align: left;
}

.comp-features-col {
    width: 45%;
    flex-shrink: 0;
    border-right: 2px solid #e5e5e5;
    background: #fafafa;
    z-index: 2;
}

.comp-products-swiper {
    width: 55%;
    overflow: hidden;
    position: relative;
    padding-bottom: 30px;
    display: block; /* Ensure it is a block element for swiper */
}

.comp-products-swiper .swiper-wrapper {
    display: flex;
}

.swiper-slide {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: auto; /* Allow auto height for swiper slide */
    flex-shrink: 0; /* Important for swiper layout */
}

.table-cell {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    min-height: 45px;
}

.comp-features-col .table-cell {
    font-weight: 500;
}

.swiper-slide .table-cell {
    text-align: center;
    justify-content: center;
    border-right: 1px solid #e5e5e5;
    width: 100%;
}

.header-cell {
    font-weight: 600;
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
    min-height: 50px;
}

.comp-features-col .header-cell:empty {
    background: transparent;
}

.table-cell:last-child {
    border-bottom: none;
}

.comp-products-swiper .swiper-pagination {
    bottom: 5px;
}

.comp-products-swiper .swiper-pagination-bullet-active {
    background: #000;
}

.comp-mobile-wrapper .header-cell,
.comp-table-container th {
    box-sizing: border-box;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
    }
    .comp-table-title {
        font-size: 24px;
    }
}