/**
 * Batch Comparison Table Styles
 */

.edmark-batch-comparison-wrapper {
    width: 100%;
    margin: 40px 0;
    overflow-x: auto;
}

.batch-comparison-table-container {
    min-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.batch-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Header Styles */
.batch-comparison-table thead th {
    padding: 20px 15px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    border: none;
}

.batch-comparison-table thead th.feature-column {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    text-align: center;
    width: 20%;
    min-width: 150px;
}

.batch-comparison-table thead th.batch-column {
    width: auto;
    min-width: 180px;
    position: relative;
}

.batch-comparison-table .batch-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.batch-comparison-table .batch-name {
    font-size: 16px;
    font-weight: 700;
    display: block;
}

/* Body Styles */
.batch-comparison-table tbody tr {
    transition: background-color 0.2s ease;
}

.batch-comparison-table tbody tr.even-row {
    background-color: #fff;
}

.batch-comparison-table tbody tr.odd-row {
    background-color: #f8f9fa;
}

.batch-comparison-table tbody tr:hover {
    background-color: #f0f4f8 !important;
}

.batch-comparison-table tbody td {
    padding: 18px 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.batch-comparison-table tbody td.feature-name {
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.batch-comparison-table tbody td.feature-value {
    font-size: 14px;
    color: #555;
}

/* Check and Cross Icons */
.batch-comparison-table .check-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: #28a745;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
}

.batch-comparison-table .cross-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: #dc3545;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
}

/* Price Styles */
.batch-comparison-table .price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.batch-comparison-table .checkbox-wrapper {
    flex-shrink: 0;
}

.batch-comparison-table .price-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4A90E2;
}

.batch-comparison-table .price-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.batch-comparison-table .current-price {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.batch-comparison-table .original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.batch-comparison-table .enroll-text {
    font-size: 11px;
    color: #28a745;
    font-weight: 500;
    margin-top: 2px;
}

.batch-comparison-table .price-simple {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* Footer Styles */
.batch-comparison-table tfoot tr {
    background-color: #f8f9fa;
}

.batch-comparison-table tfoot td {
    padding: 20px 15px;
    text-align: center;
    border-top: 2px solid #dee2e6;
}

.batch-comparison-table tfoot td.feature-name {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.batch-comparison-table .enroll-button-cell {
    padding: 15px;
}

.batch-comparison-table .enroll-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #dc3545;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.batch-comparison-table .enroll-button:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #fff;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .batch-comparison-table {
        font-size: 13px;
    }
    
    .batch-comparison-table thead th,
    .batch-comparison-table tbody td,
    .batch-comparison-table tfoot td {
        padding: 12px 10px;
    }
    
    .batch-comparison-table .batch-name {
        font-size: 14px;
    }
    
    .batch-comparison-table .current-price {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* .edmark-batch-comparison-wrapper {
        margin: 20px -15px;
    } */
    
    .batch-comparison-table {
        min-width: 700px;
        font-size: 12px;
    }
    
    .batch-comparison-table thead th,
    .batch-comparison-table tbody td,
    .batch-comparison-table tfoot td {
        padding: 10px 8px;
    }
    
    .batch-comparison-table .batch-name {
        font-size: 12px;
    }
    
    .batch-comparison-table .check-icon,
    .batch-comparison-table .cross-icon {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 16px;
    }
    
    .batch-comparison-table .current-price {
        font-size: 13px;
    }
    
    .batch-comparison-table .original-price {
        font-size: 12px;
    }
    
    .batch-comparison-table .enroll-text {
        font-size: 10px;
    }
    
    .batch-comparison-table .enroll-button {
        padding: 10px 20px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .batch-comparison-table {
        min-width: 600px;
        font-size: 11px;
    }
    
    .batch-comparison-table thead th.feature-column {
        min-width: 120px;
    }
    
    .batch-comparison-table thead th.batch-column {
        min-width: 140px;
    }
}

/* Pricing Options Styles */
.pricing-option-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pricing-option-item:hover {
    border-color: #4A90E2;
    background-color: #f8f9fa;
}

.pricing-option-item:has(input:checked) {
    border-color: #4A90E2;
    background-color: #e7f3ff;
}

.pricing-option-radio {
    flex-shrink: 0;
    padding-top: 2px;
}

.pricing-radio {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4A90E2;
}

.pricing-option-label {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.pricing-option-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.pricing-option-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.pricing-current {
    font-size: 16px;
    font-weight: 700;
    color: #28a745;
}

.pricing-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.pricing-discount-text {
    font-size: 11px;
    color: #28a745;
    font-weight: 500;
    margin-top: 4px;
}

/* Print Styles */
@media print {
    .batch-comparison-table {
        box-shadow: none;
    }
    
    .batch-comparison-table .enroll-button {
        background-color: #333 !important;
        color: #fff !important;
    }
    
    .pricing-option-radio {
        display: none;
    }
}
