.wpv-pr-reviews {
    padding: 24px;
    column-gap: 1rem;
}
.wpv-pr-reviews[data-columns="1"] {
    column-count: 1;
}
.wpv-pr-reviews[data-columns="2"] {
    column-count: 2;
}
.wpv-pr-reviews[data-columns="3"] {
    column-count: 3;
}



/* Each review card */
.wpv-pr-review-item {
    break-inside: avoid;
    margin: 0 0 1rem;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.10), 0px 2px 4px -2px rgba(0, 0, 0, 0.10);
}

.wpv-pr-review-item > a {
    text-decoration: none; 
    color: inherit; 
    display: block;
}

/* Review Header (username and product taxonomy thumbnail) */
.wpv-pr-review-header {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
}
.wpv-pr-username{
    font-size: 16px;
    font-weight: 500; 
}

.wpv-pr-product-taxonomy {
    display: flex;
    align-items: center; 
    background-color: #fff;
    padding: 5px;
    border-radius: 8px;
}

.wpv-pr-product-logo {
    width: 40px; 
    height: auto; 
    object-fit: cover; 
    border-radius: 8px;
}

/* Star Rating */
.wpv-pr-star-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    color: #facc15;
    line-height: 1;
}

.wpv-pr-star-rating .wpv-pr-star{
    font-size: 22px;
    vertical-align: middle; 
    width: 1em;
    height: 1em;
    display: inline-block;
}
.wpv-pr-star-rating .wpv-pr-star-empty {
    color: #e5e7eb; /* Gray color for empty stars */
}

/* Title, content */
.wpv-pr-review-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 0;
    overflow: hidden; 
    white-space: nowrap; 
    text-overflow: ellipsis; 
}


.wpv-pr-review-content {
    font-size: 16px;
    font-weight: 400;
    margin-top: 10px;
    line-height: 1.6;
    overflow: hidden; 
    display: inline-block;
}

.wpv-pr-short-content .wpv-pr-review-content {
    display: -webkit-box; /* For multi-line ellipsis */
    line-clamp: 13; /* Limit content to 3 lines (adjust as needed) */
    -webkit-line-clamp: 13; /* Limit content to 3 lines (adjust as needed) */
    -webkit-box-orient: vertical; /* Required for -webkit-line-clamp */
}

.wpv-pr-loader {
    display: inline-block;
    margin: 20px auto;
    text-align: center;
    font-size: 14px;
    color: #444;
}

.wpv-pr-loader::after {
    content: "";
    display: block;
    margin: 10px auto 0;
    width: 24px;
    height: 24px;
    border: 3px solid #ccc;
    border-top-color: #0073aa; /* WP blue */
    border-radius: 50%;
    animation: wpv-pr-spin 1s linear infinite;
}

@keyframes wpv-pr-spin {
    to { transform: rotate(360deg); }
}



/* 2, 3 columns at wider view-ports */
@media (max-width: 767px) {
    .wpv-pr-reviews {
        column-count: 2 !important;
    }
}
@media (max-width: 425px) {
    .wpv-pr-reviews {
        column-count: 1 !important;
    }
}