.thp-features-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.thp-features-table th,
.thp-features-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.thp-features-table th {
    background-color: #f1f1f1;
    font-weight: bold;
}

.thp-features-table tr:hover {
    background-color: #f9f9f9;
}

.thp-features-table td:nth-child(2),
.thp-features-table td:nth-child(3) {
    text-align: center;
    width: 100px;
}

.thp-features-table .thp-feature-yes {
    color: #2ecc71;
    font-weight: bold;
}

.thp-features-table .thp-feature-no {
    color: #e74c3c;
    font-weight: bold;
}

.thp-features-table .thp-feature-count {
    color: #3498db;
    font-weight: bold;
}
.thp-tooltip {
    position: relative;
    display: inline-block;
    width: 13px;
    height: 13px;
    background: #8f2ecc;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 13px;
    margin-left: 5px;
    font-size: 11px;
}

.thp-tooltip:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 10px;
    background: #333;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
    width: max-content;
    max-width: 300px;
    z-index: 99;
}

.thp-tooltip:before {
    min-width: 200px;
    max-width: 300px;
    white-space: normal;
    line-height: 1.4;
}

.thp-tooltip:hover:before {
    visibility: visible;
    opacity: 1;
}

/* Optional arrow */
.thp-tooltip:after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.thp-tooltip:hover:after {
    visibility: visible;
    opacity: 1;
}

@media screen and (max-width: 420px) {
    .thp-features-table {
        font-size: 13px;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .thp-features-table th,
    .thp-features-table td {
        padding: 8px 6px;
        font-size: 13px;
        min-width: 80px;
    }
    
    .thp-features-table td:nth-child(2),
    .thp-features-table td:nth-child(3) {
        width: 70px;
        min-width: 70px;
        font-size: 13px;
    }
    
    .thp-features-table thead {
        display: none;
    }
    
    .thp-features-table,
    .thp-features-table tbody,
    .thp-features-table tr,
    .thp-features-table td {
        display: block;
        white-space: normal;
    }
    
    .thp-features-table tr {
        border: 1px solid #ddd;
        margin-bottom: 15px;
        padding: 12px;
        border-radius: 8px;
        background-color: #fafafa;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .thp-features-table td {
        border: none;
        padding: 6px 0;
        text-align: left;
        position: relative;
        padding-left: 35%;
        border-bottom: 1px solid #eee;
    }
    
    .thp-features-table td:last-child {
        border-bottom: none;
    }
    
    .thp-features-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 30%;
        text-align: left;
        font-weight: bold;
        color: #555;
        font-size: 13px;
    }
    
    .thp-features-table td:nth-child(1):before {
        content: "Feature:";
    }
    
    .thp-features-table td:nth-child(2):before {
        content: "Free:";
    }
    
    .thp-features-table td:nth-child(3):before {
        content: "Premium:";
    }
}

@media screen and (max-width: 320px) {
    .thp-features-table {
        font-size: 12px;
    }
    
    .thp-features-table tr {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .thp-features-table td {
        padding: 5px 0;
        font-size: 12px;
        padding-left: 40%;
    }
    
    .thp-features-table td:before {
        font-size: 12px;
        width: 35%;
    }
}