/* Styles for expandable rows */
.science-detailed-search, .user-detailed-search {
    width: 100%;
    flex: 1; 
}
.expandable-row {
    cursor: pointer;
}
.expandable-row:hover {
    background-color: #f5f5f5;
}
.expanded-product-details {
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}
.expanded-product-details-container {
    display: grid;
    grid-auto-flow: column;
    grid-gap: 20px;
}
.expanded-view {
    display: flex;
    width: 100%;
    padding: 10px;
}
.expanded-view .rel-product-name {
    font-weight: bold;
    margin-bottom: 10px;
}
.expanded-view .rel-product-image-and-scores {
    display: flex;
    align-items: center;
}
.expanded-view .product-image {
    margin-right: 20px;
}
.products-table-view {
    margin-bottom: 40px;
    overflow-x: auto;
}
.products-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}
.products-comparison-table th,
.products-comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
.products-comparison-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}
.active-ingredient-header {
    background-color: #eaeaea;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}
.products-comparison-table tr.product-row:hover {
    background-color: #f9f9f9;
}
.score-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.score-bar {
    flex-grow: 1;
    height: 16px;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}
.score-fill {
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}
..products-comparison-score-text {
    min-width: 40px;
    text-align: right;
    font-weight: 500;
}
@media (max-width: 768px) {
    .products-comparison-table {
        font-size: 13px;
    }
    .products-comparison-table th,
    .products-comparison-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {  /* mobile vert */
    .product-table-link {
        display: block;
    }
    .products-comparison-table {
        table-layout: fixed;
    }
    .product-table-header-1 {
        width: 50%;
    }
    .product-table-header-2 {
        width: 25%;
    }
    .product-table-header-3 {
        width: 25%;
    }
    .product-search-lp {
        padding: 0 ! important;
    }
}

@media (min-width: 481px) and (max-width: 767px) {  /* small tablet vert */
    .expanded-product-details-container {
        grid-auto-flow: row;
        grid-gap: 0px;
    }
    .expanded-product-detailed {
        display: flex;
    }
    .science-detailed-search, .user-detailed-search {
        width: 48%;
    }
}

@media (max-width: 320px) {  /* small mobile vert */
    .score-number-subdiv {
        font-size: 2rem ! important;
        line-height: 2rem ! important;
    }
    .score-number {
        width: 45px ! important;
        height: 45px ! important;
        min-width: 45px ! important;
        min-height: 45px ! important;
    }
}