/*
  Theme Name: wphome
  Description: Customer Reviews for WooCommerce style
*/

/* =============================================
   1. MASONRY GRID
   ============================================= */

body.theme-wphome #reviews.cr-reviews-ajax-reviews .commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
  column-width: 250px;
  column-gap: 15px;
  column-fill: balance;
}

/* Reset WoodMart grid — wd-col uses float/width that breaks columns */
.cr-reviews-ajax-reviews .commentlist .review.wd-col {
  float: none;
  width: auto;
  max-width: none;
}

.cr-reviews-ajax-reviews .commentlist .review {
  break-inside: avoid;
  margin: 0 0 15px !important;
  padding: 25px !important;
  background-color: #f4f7fa;
  border-radius: 8px;
}

/* Mobile: single column */
@media (max-width: 575px) {
  body.theme-wphome #reviews.cr-reviews-ajax-reviews .commentlist {
    columns: 1;
  }
}

.cr-reviews-ajax-reviews .commentlist .review .comment_container {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.cr-reviews-ajax-reviews .commentlist .review .comment_container .cr-comment-text .description {
  min-height: 70px;
  padding: 4px 12px;
  background-color: #fff;
  border-radius: 8px;
}

.theme-wphome .cr-reviews-ajax-reviews .cr-reviews-ajax-comments .cr-ajax-reviews-list .review .cr-comment-text {
  border-bottom: none;
  padding-bottom: 0px;
}

.wph-review-text-wrap {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  transition: all 0.3s ease;
}

.wph-review-text-wrap.wph-expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.wph-read-more-btn {
  display: inline-block;
  margin-top: 5px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.theme-wphome .cr-all-reviews-shortcode .cr-count-row,
.theme-wphome #reviews.cr-reviews-ajax-reviews .cr-count-row {
  background-color: #f4f7fa;
  border-radius: 8px;
}

.theme-wphome .cr-all-reviews-shortcode ol li.review .comment_container .meta,
.theme-wphome #reviews.cr-reviews-ajax-reviews #comments.cr-reviews-ajax-comments .cr-ajax-reviews-list .comment_container .meta {
  font-size: 13px;
}

.theme-wphome .cr-all-reviews-shortcode ol.commentlist li .cr-comment-text .meta .woocommerce-review__verified,
.theme-wphome .cr-reviews-ajax-reviews .cr-reviews-ajax-comments .cr-ajax-reviews-list .cr-comment-text .meta .woocommerce-review__verified {
  font-size: 12px;
  line-height: 1;
  margin-left: 2px;
}

.theme-wphome .crstar-rating-svg {
  margin-top: 0px;
}

.theme-wphome .cr-reviews-ajax-reviews .commentlist .review .comment_container .cr-comment-text:not(:has()) .description p {
  margin: 0;
}

.theme-wphome .cr-reviews-ajax-reviews .commentlist .review .comment_container .cr-comment-text .description p {
  margin: 0;
}

.theme-wphome .pswp__caption {
  display: none !important;
}

.theme-wphome .cr-all-reviews-shortcode .cr-comment-images,
.theme-wphome .cr-comment-videos {
  padding: 10px;
  margin-top: 15px;
  background-color: #fff;
  border-radius: 8px;
}

.theme-wphome #reviews.cr-reviews-ajax-reviews .cr-voting-cont {
  margin-top: 25px;
}

.theme-wphome #reviews div.iv-comment-image img,
.theme-wphome div.iv-comment-image img {
  width: 55px;
  height: 55px;
  max-width: 55px;
  max-height: 55px;
}

.theme-wphome #reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-div,
.theme-wphome .cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-div {
  padding: 20px 30px;
  background-color: #f4f7fa;
  border-radius: 8px;
}

.theme-wphome #reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-div .cr-ajax-reviews-cus-images-title,
.theme-wphome .cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-div .cr-ajax-reviews-cus-images-title {
  display: block;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 3px solid #fff;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.theme-wphome #reviews .cr-summaryBox-wrap {
  background-color: #f4f7fa;
  padding: 15px;
  border-radius: 8px;
}

.theme-wphome .cr-all-reviews-shortcode .cr-review-form-wrap .cr-review-form-nav,
.theme-wphome .cr-ajax-reviews-review-form .cr-review-form-wrap .cr-review-form-nav,
.theme-wphome .cr-reviews-grid .cr-review-form-wrap .cr-review-form-nav,
.theme-wphome .cr-qna-block .cr-review-form-nav {
  border: none;
  background-color: #f4f7fa;
  padding: 10px;
  height: 70px;
  border-radius: 8px;
}

.theme-wphome .cr-all-reviews-shortcode .cr-review-form-wrap .cr-review-form-nav .cr-nav-left > svg,
.theme-wphome .cr-all-reviews-shortcode .cr-review-form-wrap .cr-review-form-nav .cr-nav-right > svg,
.theme-wphome .cr-ajax-reviews-review-form .cr-review-form-wrap .cr-review-form-nav .cr-nav-left > svg,
.theme-wphome .cr-ajax-reviews-review-form .cr-review-form-wrap .cr-review-form-nav .cr-nav-right > svg,
.theme-wphome .cr-reviews-grid .cr-review-form-wrap .cr-review-form-nav .cr-nav-left > svg,
.theme-wphome .cr-reviews-grid .cr-review-form-wrap .cr-review-form-nav .cr-nav-right > svg,
.theme-wphome .cr-qna-block .cr-review-form-nav .cr-nav-left > svg,
.theme-wphome .cr-qna-block .cr-review-form-nav .cr-nav-right > svg {
  background-color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out 0s;
}

.theme-wphome .cr-all-reviews-shortcode .cr-review-form-wrap .cr-review-form-nav .cr-nav-left > svg:hover,
.theme-wphome .cr-all-reviews-shortcode .cr-review-form-wrap .cr-review-form-nav .cr-nav-right > svg:hover,
.theme-wphome .cr-ajax-reviews-review-form .cr-review-form-wrap .cr-review-form-nav .cr-nav-left > svg:hover,
.theme-wphome .cr-ajax-reviews-review-form .cr-review-form-wrap .cr-review-form-nav .cr-nav-right > svg:hover,
.theme-wphome .cr-reviews-grid .cr-review-form-wrap .cr-review-form-nav .cr-nav-left > svg:hover,
.theme-wphome .cr-reviews-grid .cr-review-form-wrap .cr-review-form-nav .cr-nav-right > svg:hover,
.theme-wphome .cr-qna-block .cr-review-form-nav .cr-nav-left > svg:hover,
.theme-wphome .cr-qna-block .cr-review-form-nav .cr-nav-right > svg:hover {
  box-shadow: 1px 1px 2px 0 #00000052;
}

.theme-wphome .cr-all-reviews-shortcode .cr-review-form-wrap .cr-review-form-nav .cr-nav-left,
.theme-wphome .cr-all-reviews-shortcode .cr-review-form-wrap .cr-review-form-nav .cr-nav-right,
.theme-wphome .cr-ajax-reviews-review-form .cr-review-form-wrap .cr-review-form-nav .cr-nav-left,
.theme-wphome .cr-ajax-reviews-review-form .cr-review-form-wrap .cr-review-form-nav .cr-nav-right,
.theme-wphome .cr-reviews-grid .cr-review-form-wrap .cr-review-form-nav .cr-nav-left,
.theme-wphome .cr-reviews-grid .cr-review-form-wrap .cr-review-form-nav .cr-nav-right,
.theme-wphome .cr-qna-block .cr-review-form-nav .cr-nav-left,
.theme-wphome .cr-qna-block .cr-review-form-nav .cr-nav-right {
  gap: 10px;
}
