/* استایل فرم + ستاره + نظرات */
.product-cat-reviews form {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 5px;
}

.product-cat-reviews input[type=text],
.product-cat-reviews input[type=email],
.product-cat-reviews textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
}

.product-cat-reviews textarea {
  min-height: 80px;
}

.product-cat-reviews button {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

.product-cat-reviews button:hover {
  background: #006799;
}

.product-cat-reviews .review {
  border-top: 1px solid #ddd;
  padding: 10px 0;
}

.product-cat-reviews .review strong {
  display: flex;
  margin-bottom: 3px;
}

.product-cat-reviews .review span {
  color: #555;
  font-size: 13px;
  display: block;
  margin-bottom: 5px;
}

.product-cat-reviews .star-ratings {
  display: flex !important;
  margin-bottom: 5px;
}

.product-cat-reviews .star-ratings input {
  display: none;
}

.product-cat-reviews .star-ratings label {
  font-size: 24px;
  color: #ccc;
  margin-right: 2px;
  cursor: pointer;
  transition: color .2s;
}

.product-cat-reviews .star-ratings input:checked~label,
.product-cat-reviews .star-ratings label:hover,
.product-cat-reviews .star-ratings label:hover~label {
  color: #ffd000;
}

.cat-review-form>div:nth-child(1) {
  display: flex;
  gap: 10px;
}


.cat-review-form #name {
  padding: 0 15px;
  width: 100%;
  height: 42px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: none;
  color: rgb(119, 119, 119);
  vertical-align: middle;
  font-size: 14px;
  transition: border-color 0.5s ease;
}


.cat-review-form #email {
  padding: 0 15px;
  width: 100%;
  height: 42px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: none;
  color: rgb(119, 119, 119);
  vertical-align: middle;
  font-size: 14px;
  transition: border-color 0.5s ease;
}


.cat-review-form>div:nth-child(1)>div:nth-child(1) {
  width: 100%;
}


.cat-review-form>div:nth-child(1)>div:nth-child(2) {
  width: 100%;
}


.review-ratings {
  color: #EABE12 !important;
  font-size: 20px !important;
  margin-right: auto;
}

.review>strong:nth-child(1) {
  display: flex;
  align-items: center;
}

#reviews>p:nth-child(1)>strong:nth-child(1) {
  font-weight: 700;
  color: black !important;
  font-size: 16px;
}

#reviews .review strong span:first-child {
  color: black;
  font-size: 14px;
  font-weight: bold;
  margin-left: 3px;
}

#reviews .review strong span:nth-child(2) {
  font-weight: 500 !important;
}

#reviews .review .review-ratings {
  margin-right: auto;
}

.product-cat-reviews button:hover {
  background: #006799;
  color: white !important;
}

/* فقط متن کوتاه شود */
.comment-text,
.reply-text {
  display: inline-block;
  max-width: fit-content;
  /* حداکثر عرض متن */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* دکمه‌ها همیشه نمایش داده شوند */
.comment-actions,
.reply-actions {
  display: inline-block;
  margin-left: 10px;
}

/* چک باکس */
.toplevel_page_product-cat-reviews table.widefat th:nth-child(1),
.toplevel_page_product-cat-reviews table.widefat td:nth-child(1) {
  width: 2%;
  text-align: center;
}

/* فقط پنل مدیریت نظرات دسته بندی */
.toplevel_page_product-cat-reviews table.widefat th:nth-child(2),
.toplevel_page_product-cat-reviews table.widefat td:nth-child(2) {
  width: 2%;
  text-align: center;
}

/* دسته بندی */
.toplevel_page_product-cat-reviews table.widefat th:nth-child(3),
.toplevel_page_product-cat-reviews table.widefat td:nth-child(3) {
  width: 13%;
}

/* نام */
.toplevel_page_product-cat-reviews table.widefat th:nth-child(4),
.toplevel_page_product-cat-reviews table.widefat td:nth-child(4) {
  width: 13%;
}

/* ایمیل */
.toplevel_page_product-cat-reviews table.widefat th:nth-child(5),
.toplevel_page_product-cat-reviews table.widefat td:nth-child(5) {
  width: 15%;
}

/* امتیاز */
.toplevel_page_product-cat-reviews table.widefat th:nth-child(6),
.toplevel_page_product-cat-reviews table.widefat td:nth-child(6) {
  width: 5%;
  text-align: center;
}

/* نظر کاربر */
.toplevel_page_product-cat-reviews table.widefat th:nth-child(7),
.toplevel_page_product-cat-reviews table.widefat td:nth-child(7) {
  width: 15%;

}

/* پاسخ مدیر */
.toplevel_page_product-cat-reviews table.widefat th:nth-child(8),
.toplevel_page_product-cat-reviews table.widefat td:nth-child(8) {
  width: 15%;
}

/* تاریخ */
.toplevel_page_product-cat-reviews table.widefat th:nth-child(9),
.toplevel_page_product-cat-reviews table.widefat td:nth-child(9) {
  width: 13%;
  text-align: center;
}

/* عملیات */
.toplevel_page_product-cat-reviews table.widefat th:nth-child(10),
.toplevel_page_product-cat-reviews table.widefat td:nth-child(10) {
  width: 7%;
  text-align: center;
}

.comment-text {
  width: 100%;
  display: block;
}

.reply-text {
  width: 100%;
  display: block;
}

.widefat td,
th {
  border: 1px solid #e3dede !important;
}

#select-all {
  margin-right: 0px;
}



.user-comment-div {
  border: 1px solid gainsboro;
  border-radius: 10px;
  padding: 15px;
  border-right-color: #2a91ff;
  border-right-width: 5px;
}


.admin-comment-div {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  margin-top: 5px;
  margin-right: 50px;
  border-right-color: #c4c4c4;
  border-right-width: 5px;
}


div.review>div>strong:nth-child(1)>span:nth-child(1) {
  margin-left: 3px;
  margin-bottom: 0 !important;
}


div.review>div>strong:nth-child(1)>span:nth-child(2) {
  margin-right: 3px;
  margin-bottom: 0 !important;

}

.user-comment-div > strong{
  border-bottom: 1px dashed gainsboro;
  height: 28px;
}
.user-comment{
  margin-bottom: 0 !important;
}

.admin-reply-preview {
  border-bottom: 1px dashed gainsboro;
  height: 28px;
  height: 31px;
  margin-bottom: 5px !important;
}



.admin-comment-div p:nth-child(2) {
  margin-bottom: 0 !important;
}

.admin-comment-div p:nth-child(3) {
  margin-bottom: 0 !important;
}
