/* Basic styles for CPR plugin */
.cpr-form { 
    width: 100%;
    margin:20px auto;
    padding:16px;
    border:1px solid #eee;
    border-radius:6px; 
    background:#fff; 
}
.cpr-form label { display:block;
    margin:8px 0 4px;
    font-weight:600; 
}
.cpr-form input[type="text"], .cpr-form input[type="email"], .cpr-form textarea, .cpr-form select { 
    width:100%; 
    padding:8px; 
    border:1px solid #ddd; 
    border-radius:4px; 
}
.cpr-form .cpr-row { 
    display:flex; 
    gap:8px; }
.cpr-btn { display:inline-block;
     padding:8px 12px; 
     border-radius:4px; background:#0073aa; 
     color:#fff; 
     text-decoration:none;
     border:none; 
     cursor:pointer; 
     margin-top: 20px;
    }
.cpr-review { 
     border-bottom:1px solid #eee;
     padding:12px 0; 
    }
.cpr-star { 
    color:#f5a623; 
}
.cpr-admin-table { 
    width:100%; 
    border-collapse:collapse; 
}
.cpr-admin-table th, .cpr-admin-table td { 
    border:1px solid #ddd; padding:8px;
    text-align:left; 
    }
.cpr-badge { 
     background:#4caf50;
     color:#fff; 
     padding:2px 6px; 
     border-radius:3px; 
     font-size:12px; 
    }


/* Form container */
.cpr-form {
    max-width: 600px;
    margin: 20px auto;
    background: #fff8f0;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    font-family: 'Helvetica', sans-serif;
    color: #5a3e36;
}

/* Form heading */
.cpr-form h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

/* Labels */
.cpr-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Inputs and textarea */
.cpr-form input[type="text"],
.cpr-form input[type="email"],
.cpr-form input[type="file"],
.cpr-form select,
.cpr-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #e0d6d0;
    border-radius: 6px;
    font-size: 14px;
    background: #fffaf3;
}

/* Star rating */
.cpr-star-wrap {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.cpr-star-input {
    font-size: 22px;
    cursor: pointer;
    color: #d3d3d3;
}

.cpr-star-input.selected,
.cpr-star-input:hover,
.cpr-star-input:hover ~ .cpr-star-input {
    color: #f4b400;
}

/* Checkbox */
.cpr-form input[type="checkbox"] {
    margin-right: 10px;
}

/* Submit button */
.cpr-btn {
    display: block;
    width: 100%;
    background-color: #e67e22;
    color: #fff;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.cpr-btn:hover {
    background-color: #cf711c;
}


/* review showing  */


.cpr-filter-form {

    display: flex;
    gap: 12px;
    margin: 25px 0;
    flex-wrap: wrap;
    background-color: ;
}

.cpr-filter-form input,
.cpr-filter-form select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.cpr-filter-form button {
    background: #000;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.cpr-filter-form button:hover {
    background: #333;
}

.cpr-reviews-wrap {
    max-width: 900px;
    margin: 0 auto;
    font-family: "Inter", sans-serif;
}

.cpr-review {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 22px;
    display: flex;
    gap: 20px;
}

.cpr-review strong {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.cpr-badge {
    background: #f0f7ff;
    color: #0074ff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

.cpr-review div {
    font-size: 14px;
    color: #444;
}

.cpr-review small {
    color: #777;
}

.cpr-review h4 {
    margin: 8px 0 5px;
    font-size: 15px;
    font-weight: 600;
}

.cpr-review p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cpr-review a {
    color: #0074ff;
}

@media (max-width: 768px) {
    .cpr-review {
        grid-template-columns: 1fr;
    }
}
  

/* table  */


/* Base Table Styling */
table.cpr-admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-family: "Inter", sans-serif;
}

/* Header */
table.cpr-admin-table tr:first-child th {
    background: #f7f7f7;
    padding: 14px;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #e5e5e5;
}

/* Rows */
table.cpr-admin-table td {
    padding: 12px;
    border-bottom: 1px solid #efefef;
    font-size: 14px;
}

/* Hover */
table.cpr-admin-table tr:hover td {
    background: #fafafa;
}

/* Buttons */
table.cpr-admin-table button.button {
    background: #e8e8e8 !important;
    border: 1px solid #bfbfbf;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
}
table.cpr-admin-table button.button:hover {
    background: #d7d7d7 !important;
}

/* Delete Button */
table.cpr-admin-table button.button-danger {
    background: #d63638 !important;
    color: white !important;
    border-color: #b42a2b !important;
}
table.cpr-admin-table button.button-danger:hover {
    background: #b42a2b !important;
}

/* Approve Button (WP primary) */
table.cpr-admin-table button.button-primary {
    background: #2271b1 !important;
    color: #fff !important;
    border-color: #1d5e94 !important;
}
table.cpr-admin-table button.button-primary:hover {
    background: #195382 !important;
}

/* Status Colors Using nth-child */
table.cpr-admin-table tr td:nth-child(6) {
    font-weight: 600;
    text-transform: capitalize;
}

/* APPROVED */
table.cpr-admin-table tr td:nth-child(6):not(:empty):before {
    content: "";
}

/* Approved = green */
table.cpr-admin-table tr td:nth-child(6):contains("approved") {
    color: #0c8b2f !important;
}

/* Rejected = red */
table.cpr-admin-table tr td:nth-child(6):contains("rejected") {
    color: #d12d2d !important;
}

/* Default Pending = yellow */
table.cpr-admin-table tr td:nth-child(6):contains("pending") {
    color: #a88600 !important;
}

/* Action Column alignment */
table.cpr-admin-table td form {
    display: inline-block;
    margin-right: 5px;
}


/* review date style  */
.main-review-div{
    width: 30%;
}


@media (max-width: 580px) {
.main-review-div{
    width: 100%;
}
.cpr-review {
    display: inline;
}

.review-title-name{
    width: 100%;
    display: flex;
    flex-direction: column;
}
..show-review-name{
    width: 100%;
}
}


.review-title-name{
    width: 70%;
    display: flex;
    flex-direction: column;
}

.main-div-review-date{
    display: flex;
    justify-content: space-between !important;
    align-items: center;
}
.review-date{
    font-size: 12px;
    color: #555;
}

.image-and-name{
    display: flex;
    align-items: center;
    gap: 12px;
}

.cpr-review-image{
    max-width: 100px;
    max-height: 50px;
    border-radius: 10% !important;
    border: 1px solid #ddd;
    object-fit: cover;
    margin-bottom: 5px;
}
.cpr-review-attachment {
    margin-bottom: 10px; 
    
}
.cpr-pdf-link { 
    color: #e63946;
    font-weight: 600; 
    
}
.cpr-review-attachment a:hover { 
    text-decoration: underline;
}  

.verified-buyer{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;

}
.verified-icon{
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    background-color: #0c8b2f;
}
.verified-buyer p{
    margin: 0;
    font-size: 16px;
    color: #4caf50;
    font-weight: 600;
}

.age-reange-and-title{
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}
.age-reange-and-title div p{
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}
.show-review-name{
    margin-top: 20px;
}
.show-review-name h6{
    margin: 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}
.show-review-name p{
    margin: 5px 0;
    font-size: 14px;
    color: #000;
}

 form style  */
 .cpr-rating-field {
    margin-bottom: 15px;
}

.cpr-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.cpr-stars input[type="radio"] {
    display: none;
}

.cpr-stars label {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.cpr-stars input[type="radio"]:checked ~ label,
.cpr-stars label:hover,
.cpr-stars label:hover ~ label {
    color: #f5b301;
}


/* Product Review Stats */


.cpr-review-stats-widget {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.cpr-review-stats-widget h4 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 10px;
}

.cpr-star-count {
    list-style: none;
    padding: 0;
}

.cpr-star-count li {
    padding: 3px 0;
    font-size: 14px;
}


/* Form checkbox style  */ */.cpr-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    gap: 8px;
    user-select: none;
}

.cpr-checkbox input {
    display: none;
}

.cpr-checkmark {
    width: 10px;
    height: 10px;
    border: 2px solid #0073aa;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: 0.3s;
}

.cpr-checkbox input:checked + .cpr-checkmark {
    background: #0073aa;
    border-color: #0073aa !important;
}

.cpr-checkbox input:checked + .cpr-checkmark::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 0px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/* ===== Custom Review Admin Table Style ===== */

.cpr-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    font-size: 14px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.cpr-admin-table th {
    background: #0073aa;
    color: #fff;
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
}

.cpr-admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    text-align: center; /* Center All Texts */
}

/* Left alignment only for title & text for better view */
.cpr-admin-table td:nth-child(4), 
.cpr-admin-table td:nth-child(5),
.cpr-admin-table td:nth-child(3) {
    text-align: left;
}

/* Hover Row Effect */
.cpr-admin-table tr:hover {
    background: #f7fbff;
}

/* Action Buttons */
.cpr-admin-table form {
    display: inline-block;
}

.cpr-admin-table button.button {
    padding: 3px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

.cpr-admin-table button.button-danger {
    background: #cc0000 !important;
    border-color: #cc0000 !important;
    color: #fff !important;
}

.cpr-admin-table button:hover {
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
    .cpr-admin-table {
        font-size: 12px;
    }
    .cpr-admin-table button.button {
        padding: 2px 7px;
        font-size: 11px;
    }
}

.cpr-admin-table td:nth-child(2), 
.cpr-admin-table td:nth-child(7) {
    font-weight: bold;
    color: #0073aa;
}



.cpr-summary-box{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:10px;
    font-size:16px;
    font-weight:600;
}
.cpr-summary-stars {
    font-size:18px;
}
.cpr-summary-text {
    color:#444;
    font-size:14px;
}

/* Product info row */
.cpr-product-info {
    display: flex;
    align-items: center !important;
    gap: 30px; /* image and title distance */
    align-items: center;
    justify-content: center;
    padding-bottom: 29px;
}

.cpr-product-image img {
    border-radius: 50% !important;
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
}

.cpr-product-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}