/* ============================================================
   Customer Reviews Module - Stiluri pagina Pareri Clienti
   ============================================================ */

/* Counter recenzii */
.reviews-count {
    margin-bottom: 15px;
    color: #555;
    font-size: 14px;
}

/* ============================================================
   Rating / Stele - identic cu site-ul existent
   ============================================================ */
.rating-container {
    min-width: 90px;
}

.rating-wrap {
    display: inline-block;
}

.rating.stars {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16'%3E%3Ctext x='0' y='14' font-size='14' fill='%23ddd'%3E★★★★★%3C/text%3E%3C/svg%3E") repeat-x left center;
    background-size: 80px 16px;
    vertical-align: middle;
}

.rating.stars .rating.fill {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16'%3E%3Ctext x='0' y='14' font-size='14' fill='%23f39c12'%3E★★★★★%3C/text%3E%3C/svg%3E") repeat-x left center;
    background-size: 80px 16px;
}

/* Fallback text star folosind CSS */

/* ============================================================
   Tabel recenzii
   ============================================================ */
.table-wrap-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.table-wrap-scroll table {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
}

.table-wrap-scroll table th {
    background-color: #2d6a4f;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
}

.table-wrap-scroll table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 13px;
    vertical-align: top;
    color: #333;
}

.table-wrap-scroll table tr:nth-child(even) td {
    background-color: #f9f9f9;
}

.table-wrap-scroll table tr:hover td {
    background-color: #f0f7f4;
    transition: background-color 0.15s ease;
}

.table-wrap-scroll table td a {
    color: #2d6a4f;
    text-decoration: none;
    font-weight: 500;
}

.table-wrap-scroll table td a:hover {
    text-decoration: underline;
    color: #1b4332;
}

/* Coloana data - latime fixa */
.table-wrap-scroll table td:nth-child(4) {
    white-space: nowrap;
    min-width: 90px;
}

/* Coloana nota - centrat */
.table-wrap-scroll table td:nth-child(1),
.table-wrap-scroll table th:nth-child(1) {
    min-width: 160px;
    text-align: center;
}

/* ============================================================
   Paginatie
   ============================================================ */
.pagination-reviews {
    margin: 30px 0 20px;
    display: flex;
    justify-content: center;
}

.pagination-reviews .page-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.pagination-reviews .page-item .page-link,
.pagination-reviews .page-item span.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #2d6a4f;
    border-radius: 4px;
    color: #2d6a4f;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-reviews .page-item .page-link:hover {
    background: #2d6a4f;
    color: #fff;
}

.pagination-reviews .page-item.active .page-link,
.pagination-reviews .page-item.active span.page-link {
    background: #2d6a4f;
    color: #fff;
    border-color: #2d6a4f;
    cursor: default;
    font-weight: 700;
}

.pagination-reviews .page-item.disabled .page-link,
.pagination-reviews .page-item.disabled span.page-link {
    color: #aaa;
    border-color: #ddd;
    background: #f8f8f8;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .table-wrap-scroll table th,
    .table-wrap-scroll table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .pagination-reviews .page-item .page-link,
    .pagination-reviews .page-item span.page-link {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .reviews-count {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .chk-container.v3 {
        padding: 0 10px;
    }
}
