/**
 * Comparison Table Elementor Widget Styles
 * Version 1.4.0 - 3 Column Layout med 10px gap
 */

.comparison-table-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden !important;
}

.comparison-table-wrapper * {
    box-sizing: border-box;
}

/* Main Grid Container - 3 columns */
.ct-table {
    display: grid;
    grid-template-columns: var(--label-column-width, 1fr) var(--column-1-width, 1fr) var(--column-2-width, 1fr);
    column-gap: 10px;
    row-gap: 0;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Cell Base Styles */
.ct-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Header Cells */
.ct-cell.ct-header {
    padding: 30px 20px;
    min-height: 100px;
}

.ct-cell.ct-header.ct-col-1,
.ct-cell.ct-header.ct-col-2 {
    background-color: #E8E6DD;
    border-radius: 12px 12px 0 0;
}

.ct-cell.ct-header.ct-col-labels {
    background-color: transparent;
}

.ct-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.ct-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-header-logo img {
    width: 120px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.ct-header-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    line-height: 1.3;
}

.ct-header-title.ct-italic {
    font-style: italic;
}

/* Content Cells */
.ct-cell.ct-content {
    padding: 30px 20px;
    min-height: 120px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ct-cell.ct-content.ct-col-1,
.ct-cell.ct-content.ct-col-2 {
    background-color: #E8E6DD;
}

.ct-cell.ct-content.ct-col-labels {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Last row - remove border and add bottom radius */
.ct-cell.ct-content:nth-last-child(3).ct-col-labels {
    border-bottom: none;
}

.ct-cell.ct-content:nth-last-child(2).ct-col-1,
.ct-cell.ct-content:nth-last-child(1).ct-col-2 {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

/* Row Title */
.ct-row-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

/* Icon Styles */
.ct-icon-wrapper {
    margin-bottom: 15px;
}

.ct-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.ct-icon svg {
    width: 20px;
    height: 20px;
}

.ct-icon-check {
    background-color: #A8B896;
}

.ct-icon-cross {
    background-color: #E87B9E;
}

/* Description */
.ct-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Responsive Styles */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .ct-table {
        column-gap: 10px;
    }
    
    .ct-header-title {
        font-size: 20px;
    }
    
    .ct-row-title {
        font-size: 16px;
    }
    
    .ct-description {
        font-size: 14px;
    }
    
    .ct-icon {
        width: 35px;
        height: 35px;
    }
    
    .ct-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .ct-cell.ct-header {
        padding: 25px 15px;
    }
    
    .ct-cell.ct-content {
        padding: 25px 15px;
    }
}

/* Mobile (max 767px) */
@media screen and (max-width: 767px) {
    .comparison-table-wrapper {
        overflow: hidden !important;
        margin: 0;
        padding: 0;
    }
    
    .ct-table {
        grid-template-columns: var(--label-column-width, 1fr) var(--column-1-width, 1fr) var(--column-2-width, 1fr);
        column-gap: 10px;
        row-gap: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .ct-cell.ct-header {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .ct-cell.ct-content {
        padding: 20px 15px;
        min-height: 100px;
    }
    
    .ct-header-content {
        gap: 10px;
    }
    
    .ct-header-logo img {
        width: 80px;
    }
    
    .ct-header-title {
        font-size: 18px;
    }
    
    .ct-row-title {
        font-size: 15px;
    }
    
    .ct-description {
        font-size: 13px;
    }
    
    .ct-icon {
        width: 32px;
        height: 32px;
    }
    
    .ct-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Small Mobile (max 480px) */
@media screen and (max-width: 480px) {
    .ct-table {
        grid-template-columns: var(--label-column-width, 1fr) var(--column-1-width, 1fr) var(--column-2-width, 1fr);
        column-gap: 8px;
        row-gap: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .ct-cell.ct-header {
        padding: 18px 12px;
    }
    
    .ct-cell.ct-content {
        padding: 18px 12px;
    }
    
    .ct-header-logo img {
        width: 70px;
    }
    
    .ct-header-title {
        font-size: 16px;
    }
    
    .ct-row-title {
        font-size: 14px;
    }
    
    .ct-description {
        font-size: 12px;
    }
    
    .ct-icon {
        width: 30px;
        height: 30px;
    }
    
    .ct-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* Elementor Editor Specific Styles */
.elementor-editor-active .comparison-table-wrapper {
    pointer-events: auto;
}

/* Print Styles */
@media print {
    .ct-table {
        grid-template-columns: 1fr 1fr 1fr;
        column-gap: 10px;
        row-gap: 0;
    }
}
