.rcp5a-product-description, .rcp5a-product-specs,.rcp5a-product-reviews
{
    border-bottom: 1px dashed #ddd;
    margin:0px 0px 25px 0px;
}
.rcp5a-product-specs{border-bottom: none;}
.rcp5a-product-description h2, 
.rcp5a-product-specs h2,
.rcp5a-product_reviews h2{
    font-size:  1.2em;
}




.woocommerce-Reviews.rcp5a-loading {
    opacity: 0.5;
    position: relative;
}

.woocommerce-Reviews.rcp5a-loading::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #ccc;
    border-top-color: #0071a1;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.rcp5a-rating , .review-form-inner .has-border{
    background-color: #fff;
    border: 0px solid #ddd;
    border-radius: 8px;
    padding: 20px 25px;
    max-width: 457px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.rcp5a-rating-summary {
    margin-bottom: 20px;
    text-align: left;
}

.rcp5a-rating-summary strong {
    font-size: 22px;
    color: #222;
    display: block;
    margin-top: 5px;
}

.rcp5a-rating-summary span {
    font-size: 14px;
    color: #666;
}

.rcp5a-rating-stars {
    margin-bottom: 6px;
}
.rcp5a-review-header-flex {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .rcp5a-review-product-image img {
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
    max-height:300px;
  }
  
  @media (max-width: 550px) {
    .rcp5a-review-header-flex{display: block;}
    .rcp5a-review-product-image{display: none;}
}
.rcp5a-rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
  .rcp5a-review-breakdown {
    flex: 1;
  }
.rcp5a-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rcp5a-rating-label {
    width: 70px;
    text-align: right;
    font-weight: 500;
    color: #444;
}

.rcp5a-rating-bar {
    flex: 1;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.rcp5a-rating-fill {
    height: 100%;
    background-color: #f6a623;
    border-radius: 5px 0 0 5px;
    transition: width 0.3s ease;
}

.rcp5a-rating-count {
    min-width: 30px;
    text-align: center;
    font-size: 13px;
    color: #555;
}

.rcp5a-stars-wrapper {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 5px;
}

.rcp5a-star {
    display: inline-block;
    margin-right: 2px;
    color: #ddd;
}

.rcp5a-star.full {
    color: #f6a623;
}

.rcp5a-star.half {
    background: linear-gradient(90deg, #f6a623 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rcp5a-star.empty {
    color: #ddd;
}


/* Review - Form */
/* Wrapper general */
#review_form_wrapper {
    background-color: rgba(249, 249, 249, 0.2);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px 30px;
    padding-bottom: 0px;
    margin: 15px 0px 15px 0px;
    font-size: 15px;
    color: #333;
    height: fit-content;
}
@media (max-width: 850px) {
    #review_form_wrapper {margin-left: 15px;} 
}
/* form titlr */
#review_form_wrapper .comment-reply-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #222;
}


#review_form_wrapper .comment-form p {
    margin-bottom: 20px;
}

/* labels */
#review_form_wrapper .comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

/* Inputuri & textarea */
#review_form_wrapper .comment-form input[type="text"],
#review_form_wrapper .comment-form input[type="email"],
#review_form_wrapper .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.2s;
}

#review_form_wrapper .comment-form input:focus,
#review_form_wrapper .comment-form textarea:focus {
    border-color: #0071a1;
    outline: none;
}

/* Rating stars */

.star-rating span.rating {
    display: none;
}

#review_form_wrapper .comment-form-rating .stars {
    margin-top: 8px;
}

#review_form_wrapper .comment-form-rating .stars a {
    font-size: 18px;
    color: #ccc;
    margin-right: 4px;
    transition: color 0.2s;
    text-decoration: none;
}

#review_form_wrapper .comment-form-rating .stars a:hover,
#review_form_wrapper .comment-form-rating .stars a.active {
    color: #f6a623;
}

/* Buton submit */
#review_form_wrapper .form-submit input[type="submit"] {
    background-color: #0071a1;
    color: #fff;
    padding: 10px 24px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#review_form_wrapper .form-submit input[type="submit"]:hover {
    background-color: #005b86;
}
.review-form-inner.has-border {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;padding:0px
}
.rcp5a-product-no-reviews p{margin-bottom:0px;}
.rcp5a-product-no-reviews #review_form_wrapper{
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 0px;
    max-width: 636px;

}
.rcp5a-product-no-reviews #review_form_wrapper .comment-form p {
    margin-bottom: 5px;
}
.rcp5a-product-no-reviews #reply-title{font-size:15px;}
.rcp5a-product-no-reviews .must-log-in{margin-bottom:20px;}
/*--------------------------------External review */
.rcp5a-external-reviews {
    margin-top: 30px;
}

.rcp5a-external-reviews h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.rcp5a-review-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 15px;
    padding: 15px 15px 0px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.rcp5a-review-thumb {
    width: 200px;
    flex-shrink: 0;
    text-align: center;
}

.rcp5a-review-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.rcp5a-review-title {
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.rcp5a-review-content {
    flex: 1;
}
@media (max-width: 550px) {
    .rcp5a-review-item {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .rcp5a-review-content {
        width: 100%;
        margin-top: 0px;
    }

    .rcp5a-review-thumb {
        width: auto;
    }
}
/* pagination ajax efect */
.rcp5a-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.rcp5a-loading::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #ccc;
    border-top-color: #0071a1;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.rcp5a-pagination-arrows {
    margin-top: -15px;
    font-size: 35px;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 16px;
}

.rcp5a-pagination-arrows a {
    color: #0071a1;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    padding: 0px 14px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.rcp5a-pagination-arrows a:hover {
    background-color: #f0f8ff;
}

.rcp5a-arrow.disabled {
    color: #aaa;
    padding: 0px 14px;
    opacity: 0.4;
    cursor: default;
}

.rcp5a-pagination-info {
    font-size: 14px;
    color: #444;
    min-width: 60px;
    text-align: center;
}
.rcp5a-review-divider {
    height: 1px;
    border-top: 1px dashed #ddd;
    margin: 15px 0;
    opacity: 0.6;
}
/* --> made in USA badge*/
.badge-container{margin-top:5px !important;}
.rcp5a-made-in-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 25;
}

.rcp5a-badge-small img {
    width: 48px;
    height: auto;
}

.rcp5a-badge-large img {
    width: 60px;
    height: auto;
}

@media (max-width: 600px) {
    .rcp5a-badge-small img {
        width: 48px;
    }

    .rcp5a-badge-large img {
        width: 80px;
    }
}
/*made in USA badge <--*/

/* SPECIFICATION PRODUCTS TABLE */

.rcp5a-product-specs table.shop_attributes {
    display: flex;
    flex-wrap: wrap;
    border: none;
    width: 100%;
}
.rcp5a-product-specs table.shop_attributes th {
    min-width: 40%;
}
.rcp5a-product-specs table.shop_attributes tr {
    display: inline-block;
    flex-direction: row;
    width: 46%;
    margin: 1px;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    padding: 5px;
    box-sizing: border-box;
    background-color: #ffffff;
    transition: all 0.2s ease; /* smooth transition */
}

.rcp5a-product-specs table.shop_attributes tr:hover {
    background-color: #f9f9f9;
    border-color: #ccc;
    cursor: default;
}

.rcp5a-product-specs table.shop_attributes th,
.rcp5a-product-specs table.shop_attributes td {
    display: inline-block;
    padding: 0 6px;
    font-size: 13px;
    text-align: left;
    width: auto;
    border:0px;
}

.rcp5a-product-specs table.shop_attributes th {
    font-weight: bold;
    color: #333;
    text-transform: capitalize;
}

.rcp5a-product-specs table.shop_attributes td {
    color: #555;
}
.rcp5a-product-specs table.shop_attributes tr p,
.rcp5a-product-specs table.shop_attributes td p{
    margin:0px;
    padding:0px;

}
/* Responsive: 1 per row under 600px */
@media (max-width: 600px) {
    .rcp5a-product-specs table.shop_attributes tr {
        width: 100%;
    }
}

/* SPECIFICATION PRODUCTS TABLE */

.woocommerce-Reviews-title {
    display: none; /* hide title from comments_template() */
  }
  
  .rcp5a-custom-review-title {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0 15px;

    padding-bottom: 5px;
  }
  
  .rcp5a-custom-review-title span {
    color: #0073aa; 
    font-weight: 500;
  }
  .commentlist li{margin-left:0px !important;}  
.commentlist li .comment-text{padding:0px !important;}
.rcp5a-product-reviews #reviews {margin-right: 0px;}
.rcp5a-product-reviews #reviews {margin-right: 0px;}
.rcp5a-product-reviews #reviews .woocommerce-pagination{width:fit-content;}
  @media (max-width: 850px) {
    .rcp5a-product-reviews #reviews .commentlist .description p{font-style: normal;}
}  
/* Top Summary Review */
.rcp5a-amazon-review-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    position: relative;
    z-index: 1;
    padding: 0px;
    border-radius: 6px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  .rcp5a-amazon-review-top:hover {
    background-color: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  } 
  .rcp5a-average-score {
    font-weight: bold;
    font-size: 16px;
    color: #111;
  }
  
  .rcp5a-review-summary-hover {
    position: relative;
    display: inline-block;
    cursor: pointer;
  }
  
  .rcp5a-review-summary-hover svg {
    vertical-align: middle;
  }
  
  .rcp5a-breakdown-flyout {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: -5px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 12px;
    z-index: 100;
    min-width: 173px;
  }
  
  .rcp5a-review-summary-hover:hover .rcp5a-breakdown-flyout {
    display: block;
  }
  
  .rcp5a-breakdown-icon {
    font-size: 12px;
    color: #666;
    user-select: none;
    line-height: 1;
    margin-left: -5px;
  }
  
  .rcp5a-total-reviews {
    color: #555;
  }
  
  .rcp5a-no-reviews {
    font-style: italic;
    color: #777;
  }
  .rcp5a-breakdown-flyout .rcp5a-rating-breakdown{gap: 0px;}
  .rcp5a-breakdown-flyout .rcp5a-rating {padding:5px;max-width: 170px;font-size:13px;border: 0px; box-shadow: none;}
  .rcp5a-breakdown-flyout .rcp5a-rating-bar{height: 7px;}
  .rcp5a-breakdown-flyout .rcp5a-rating-label {width: 45px;}
  .rcp5a-breakdown-flyout .rcp5a-breakdown-seeall {padding-bottom: 5px;text-align: center;}
 /* Top Summary Review */ 

/*Invite banner (CSS-based)*/
.rcp5a-review-invite-banner {
    width: 100%;
    max-width: 583px;
    height: 303px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .rcp5a-review-invite-banner p {
    font-size: 18px;
    color: #333;
    max-width: 90%;
    margin: 0;
    line-height: 1.4;
  }

  

  @media (max-width: 980px) {
    .rcp5a-review-invite-banner {display:none;}
  }
.rcp5a-see-all{width:100%; text-align: right;line-height: 14px;font-size:14px;;}
.rcp5a-see-all a{
    
    font-weight:normal;
    padding:0px;
    margin:0px;
}
.rcp5a-see-all a:hover{text-decoration: underline;background: none;}

.rcp5a-see-all-main{width:100%;text-align: center;padding:15px;border:0px solid #ddd;background-color: rgba(238, 238, 238, 0.5);margin-bottom:15px;}
.rcp5a-see-all-main a {margin:0px; text-transform:none;}

/*ALL REVIEWS PAGE*/

.rcp5a-product-info-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rcp5a-product-thumbnail .button {
    margin-top: 30px;
}
.rcp5a-product-actions .rcp5a-rating{line-height: 1.3;}
@media (max-width: 500px) {
    .rcp5a-product-actions {
        width: 100%;
    }
    .rcp5a-rating {
        margin-top: 15px;
    }
}