.tpc-table-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 20px 0;
}

.tpc-comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    margin: 0;
    table-layout: fixed;
}

.tpc-comparison-table th {
    background-color: #6161bb;
    color: #f5f5f5;
    text-align: center;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
}

.tpc-comparison-table td {
    padding: 1px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    overflow: hidden;
}

.tpc-comparison-table tr:last-child td {
    border-bottom: none;
}

.tpc-image-col {
    width: 33%;
    position: relative;
    padding-left: 30px;
    box-sizing: border-box;
}

.tpc-product-col {
    width: 22%;
    box-sizing: border-box;
}

.tpc-details-col {
    width: 22%;
    box-sizing: border-box;
}

.tpc-price-col {
    width: 23%;
    text-align: center;
    vertical-align: middle;
    padding-right: 30px;
    box-sizing: border-box;
}

.tpc-product-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.tpc-feature {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.tpc-feature-icon {
    color: #4CAF50;
    margin-right: 10px;
}

.tpc-check-price {
    background: linear-gradient(135deg, #126c88 0%, #5945b6 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.tpc-check-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tpc-check-price:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f57c00 0%, #ff8a00 100%);
}

.tpc-check-price:hover::before {
    left: 100%;
}

.tpc-check-price:active {
    transform: translateY(0);
}

.tpc-badge {
    position: absolute;
    top: 5px;
    left: 10px;
    display: inline-block;
    width: auto;
    min-width: fit-content;
    padding: 4px 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.4);
    transition: transform .2s ease;
}

.tpc-badge:hover {
    transform: translateY(-2px);
}

.tpc-best-overall {
    background: linear-gradient(135deg, #3b8dff 0%, #00d2ff 100%);
}

.tpc-best-value {
    background: linear-gradient(135deg, #1ecb6b 0%, #12a59f 100%);
}

.tpc-premium-choice {
    background: linear-gradient(135deg, #9b59ff 0%, #ff3db4 100%);
}

.tpc-product-image {
    width: 100%;
    height: auto;
    max-height: 150px;
    max-width: 100%;
    object-fit: contain;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: block;
}

.tpc-comparison-table tbody td {
    padding-top: 20px;
}

@media (max-width: 768px) {
    .tpc-comparison-table {
        font-size: 14px;
    }
    
    .tpc-comparison-table th,
    .tpc-comparison-table td {
        padding: 1px;
    }
    
    .tpc-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .tpc-check-price {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .tpc-image-col {
        padding-left: 15px;
    }
    
    .tpc-price-col {
        padding-right: 15px;
    }
    
    .tpc-product-image {
        max-height: 120px;
    }
}

@media (max-width: 640px) {
    .tpc-comparison-table th {
        font-size: 16px;
        padding: 15px 8px;
    }
    
    .tpc-comparison-table td {
        padding: 1px;
    }
    
    .tpc-image-col {
        padding-left: 10px;
    }
    
    .tpc-price-col {
        padding-right: 10px;
    }
    
    .tpc-badge {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    .tpc-product-image {
        max-height: 100px;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .tpc-table-container {
        padding: 0;
    }
    
    .tpc-comparison-table thead {
        display: none;
    }

    .tpc-comparison-table,
    .tpc-comparison-table tbody,
    .tpc-comparison-table tr,
    .tpc-comparison-table td {
        display: block;
        width: 100%;
    }

    .tpc-comparison-table tr {
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        padding: 15px;
        background: white;
    }

    .tpc-comparison-table td {
        padding: 1px 0;
        border-bottom: none;
        overflow: visible;
    }

    .tpc-badge {
        position: static;
        display: inline-block;
        margin: 0 auto 10px;
        width: auto;
        min-width: fit-content;
        max-width: 100%;
    }

    .tpc-image-col {
        padding-left: 0;
        text-align: center;
        width: 100%;
    }

    .tpc-product-image {
        margin: 10px auto 0;
        max-width: 200px;
        width: 100%;
        max-height: 150px;
    }

    .tpc-product-col .tpc-product-name {
        text-align: center;
        margin: 10px 0;
        font-size: 16px;
        width: 100%;
    }

    .tpc-details-col .tpc-feature {
        justify-content: center;
        width: 100%;
    }

    .tpc-price-col {
        text-align: center;
        padding-right: 0;
        width: 100%;
    }
    
    .tpc-check-price {
        margin: 15px auto 0;
        display: block;
        width: fit-content;
        max-width: 100%;
    }
}
