/* Desktop View */
.cew-desktop-view {
    display: table;
    width: 100%;
}

.cew-mobile-view {
    display: none;
}

/* Desktop Table Styles */
.cew-pricing-comparison-table {
    width: 100%;
    margin: 20px 0;
}

.cew-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* STICKY HEADER - ALWAYS STICKY TILL CONTACT */
.cew-comparison-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: inherit;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cew-comparison-table th {
    padding: 20px;
    text-align: center;
    border: 1px solid #dee2e6;
    font-weight: 600;
}

.cew-comparison-table td {
    padding: 15px 20px;
    border: 1px solid #dee2e6;
    text-align: center;
}

.cew-feature-name {
    text-align: left;
    background: #f8f9fa;
    font-weight: 600;
    width: 25%;
}

.cew-plan-header {
    color: white;
    padding: 25px 15px !important;
}

.cew-plan-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.cew-check-mark {
    color: #27ae60;
    font-weight: bold;
    font-size: 18px;
}

.cew-cross-mark {
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
}

.cew-text-value {
    font-weight: 500;
    color: #333;
}

.cew-custom-icon,
.cew-individual-icon {
    display: inline-block;
    font-size: 18px;
}

.cew-custom-icon i,
.cew-individual-icon i {
    font-size: inherit;
    color: inherit;
}

/* Contact Section */
.cew-contact-info {
    background: #34495e !important;
    color: white;
    border: none !important;
    text-align: center;
    padding: 20px !important;
}

.cew-contact-content {
    font-size: 16px;
}

.cew-contact-content a {
    color: #3498db !important;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
}

.cew-contact-content a:hover {
    text-decoration: underline;
}

.cew-quote-btn {
    background: #e74c3c;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cew-quote-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.cew-cta-row td {
    padding: 20px;
}

/* Mobile View */
@media (max-width: 768px) {
    .cew-desktop-view {
        display: none !important;
    }
    
    .cew-mobile-view {
        display: block;
        width: 100%;
    }
    
    /* Mobile Header - ALWAYS STICKY */
    .cew-mobile-header {
        display: flex;
        background: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .cew-mobile-plan {
        flex: 1;
        text-align: center;
        padding: 15px 5px;
        font-weight: bold;
        color: white;
        font-size: 14px;
    }
    
    /* Mobile Feature Group */
    .cew-mobile-feature-group {
        border-bottom: 1px solid #dee2e6;
    }
    
    /* Feature Name */
    .cew-mobile-feature-name {
        background: #2c3e50 !important;
        color: white !important;
        padding: 12px 15px;
        text-align: center;
        font-weight: bold;
        font-size: 14px;
    }
    
    /* Feature Values - 3 Columns */
    .cew-mobile-feature-values {
        display: flex;
        background: white;
    }
    
    .cew-mobile-feature-value {
        flex: 1;
        text-align: center;
        padding: 12px 5px;
        border-right: 1px solid #f1f1f1;
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
    }
    
    .cew-mobile-feature-value:last-child {
        border-right: none;
    }
    
    /* Mobile Contact */
    .cew-mobile-contact {
        background: #34495e !important;
        color: white !important;
        padding: 20px 15px;
        text-align: center;
    }
    
    .cew-mobile-contact-content {
        font-size: 14px;
    }
    
    .cew-mobile-contact-content a {
        color: #3498db !important;
        text-decoration: none;
        font-weight: bold;
        margin-left: 5px;
    }
    
    /* Mobile CTA Buttons */
    .cew-mobile-cta {
        display: flex;
        background: white;
        padding: 15px 10px;
        gap: 10px;
    }
    
    .cew-mobile-quote-btn {
        flex: 1;
        background: #e74c3c;
        color: white;
        padding: 12px 10px;
        border: none;
        border-radius: 5px;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        display: block;
    }
    
    .cew-mobile-quote-btn:hover {
        background: #c0392b;
        color: white;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .cew-mobile-plan {
        font-size: 12px;
        padding: 12px 3px;
    }
    
    .cew-mobile-feature-name {
        font-size: 16px;
        padding: 10px 12px;
        background: #EE4036 !important;
    }
    
    .cew-mobile-feature-value {
        font-size: 15px;
        padding: 10px 3px;
        min-height: 45px;
        background-color: #262261 !important;
        color: white !important;
    }
    
    .cew-mobile-contact {
        padding: 15px 10px;
        background-color:#000000 !important;
        color:#ffffff !important;
    }
    .cew-mobile-contact a{
        color:#EE4036 !important;
    }
    
    .cew-mobile-contact-content {
        font-size: 13px;
    }
    
    .cew-mobile-quote-btn {
        font-size: 12px;
        padding: 10px 8px;
    }
}

/* WordPress Admin Bar Support */
.admin-bar .cew-comparison-table thead {
    top: 32px;
}

.admin-bar .cew-mobile-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .cew-comparison-table thead {
        top: 46px;
    }
    
    .admin-bar .cew-mobile-header {
        top: 46px;
    }
}