/* Spacing Between Reviews */
#product-reviews .review-item + .review-item {
    margin-top: 10px;
}
h2.review-title {
    line-height: 1.2;
    font-size: 20px;
}
#review-image-previews {
    display: flex;
    gap: 10px;
}
#product-reviews {
    margin: 20px auto;
    max-width: 1480px;
}
.review-item {
    display: flex;
    border: none;
    margin-bottom: 20px;
    padding: 5px 15px;
    border-radius: 0;
    align-items: flex-start;
    background: #fff;
    flex-wrap: wrap;
}
.reply-wrap {
    width: calc(100% - 60px);
    background: #f9f9f9;
    padding: 15px;
    margin: 0 0 0 60px;
    font-size: 13px;
    line-height: 1.3;
}
.review-author-image {
    width: 100%;
}

.review-author-image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.review-content {
    flex: 1;
}
.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
}
.review-rating {
    color: #f5c518;
    margin-right: 10px;
}

.review-rating .star {
    font-size: 24px;
}

.review-rating-text { 
    color: #333;
    width: 100%;
}

.review-author {
    font-size: 14px;
    margin-bottom: 5px;
    color: #555;
}

.review-text {
    font-size: 14px;
    color: #333;
}

.review-pagination {
    text-align: center;
    margin-top: 20px;
}

.review-pagination button {
    padding: 10px 15px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
}
.review-pagination button:hover{
    background: #3BB77E;
}
.review-pagination button.active {
    background-color: #ccc !important;
    font-weight: bold;
}

.review-pagination button:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
}
.custom-review-form h2{
    font-size: 18px;
    margin: 0;
    font-family: var(--global-font-family);
}
.custom-review-form p {
    margin: 0 0 15px;
    font-size: 15px;
    font-family: var(--global-font-family);
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    line-height: 1.2;
}
.custom-review-form input[type=text], .custom-review-form input[type=email], .custom-review-form textarea {
    width: 100%;
    font-size: 16px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    font-family: var(--global-font-family);
    max-width: 330px;
}
.custom-review-form textarea{
    min-height: 150px;
}
.custom-review-form label {
    width: 100%;
    display: flex;
    font-family: var(--global-font-family);
}
.custom-review-form select {
    width: 100%;
    font-size: 1.2rem;
    padding: 3px; 
    border: 1px solid #ddd;
    font-family: var(--global-font-family);
    max-width: 330px;
}
.custom-review-form button{
    outline: none;
    background: #3BB77E;
    padding: 10px 20px;
    font-size: 15px;
    border:none;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
}
.custom-review-form button:hover{
    background: #000;
    color: #fff;
}
.custom-review-form {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 20px 20px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-width: 1480px;
    margin: 0 auto 30px;
}
.review-wrapper {
    background: #eee;
    padding: 30px 60px;
    border-radius: 5px;
    border: #ddd solid 1px;
}
div#review-form-response {
    width: 100%;
    padding: 10px 0;
}
#review-form-response .success{
    color: #3BB77E;
}
#review-form-response .error{
    color: red;
}
/* Add to existing CSS file */

.image-preview-container {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
}

.review-images {
    display: flex;
    gap: 10px;
    margin: 10px 0 0;
    flex-wrap: wrap;
}

.review-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* Add lightbox styles if needed */
.review-image:hover {
    opacity: 0.9;
}
.review-customer-images{
    width: 70px;
    height: 70px;
}
.review-customer-images img{
    max-width: 100px;
    height: auto;
}
.reply-item {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 15px 0 0 30px;
    color: #333;
    font-size: 14px;
}
.reply-image{
    width: 100%;
}
.cpr-reviews-summary{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.cpr-reviews-summary .star-rating{
  min-width: 100px;
}
.cpr-reviews-summary .rating-data {
    width: 100%;
    font-size: 13px;
    color: #525252;
}
.cpr-reviews-summary  .star-div {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 15px;
    line-height: 1;
    padding: 0 0 5px;
    color: #4b4b4b;
    font-weight: 600;
}
.cpr-reviews-summary .review-rating .star {
    font-size: 24px;
    margin: 0 2px 0 0;
}
.cpr-reviews-summary  .review-rating{
    margin-right: 5px;
}
.cpr-reviews-summary .customer-reviews{
    display: flex;
    padding: 3px 0 0;
}
/* Override WooCommerce star ratings */

.cpr-reviews-summary .star-rating {
    position: relative;
    padding: 0;
    display: inline-block;
    font-size: 16px;       /* Adjust star size */
    line-height: 1;
    color: #cccccc;        /* color for "empty" stars */
  }
  
  .cpr-reviews-summary .star-rating::before {
    content: "★★★★★";      /* 5 empty stars */
    letter-spacing: 2px;   /* spacing between stars */
  }
  
  .cpr-reviews-summary .star-rating span {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;      /* hides stars beyond the rating width */
    color: #2ecc71;        /* green color for "filled" stars */
  }
  
  .cpr-reviews-summary .star-rating span::before {
    content: "★★★★★";      /* 5 filled stars */
    letter-spacing: 2px;
  }

  

@media(max-width:767px){
    .reply-wrap {
        width: calc(100% - 20px); 
        margin: 0 0 0 20px; 
    }
    .review-wrapper{
        padding: 15px;
    }
}