/* نظرات نوشته‌ها – استایل سفارشی (Pym) */

.comments-area-pym {
  margin: 10px 10px 20px;
}

/* محتوای اصلی کامنت - wrapper جدید */
.comment-content-wrapper-pym { 
  flex: 1;
  min-width: 0;
  margin-right: 45px;
}

.comments-header-pym {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var( --e-global-color-c1809bc );
  padding-bottom: 12px;
}

.comments-title-pym {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 32px;
  margin: 0;
}

.comments-title-pym .comments-count-pym {
  color: #8d8d8d;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var( --e-global-color-c1809bc );
  width: 20px;
  height: 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  line-height: 20px;
  align-self: center;
}

.add-comment-pym {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1b1615 !important;
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
}
.add-comment-pym .plus { font-weight: 500; font-size: 20px; }


/* لیست دیدگاه‌ها */
.comment-list-pym { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: grid; 
  gap: 24px; 
}

.comment-item-pym { 
  margin: 0; 
  padding-bottom: 24px; 
  border-bottom: 1px solid #efefef; 
}

/* ساختار اصلی کامنت - Flexbox برای آواتار و محتوا */
.comment-body-pym { 
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* آواتار */
.comment-avatar-pym {
  flex-shrink: 0;
}

.comment-avatar-pym .avatar-img-pym {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.comment-avatar-pym .avatar-img-pym:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* محتوای اصلی کامنت */
.comment-main-pym { 
  flex: 1;
  min-width: 0;
  display: grid; 
  gap: 12px; 
}

.comment-header-pym { 
  display: flex; 
  align-items: center; 
  gap: 10px;
  flex-wrap: wrap;
}

.comment-author-pym { 
  font-weight: 700;
  font-size: 15px;
  color: #1b1615;
}

.comment-badge-pym {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: var( --e-global-color-primary );
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1.2;
}

.comment-date-pym { 
  color: #989898; 
  font-size: 12px; 
  position: relative; 
  padding-right: 22px;
  margin-right: auto;
}

.comment-date-pym::before {
  content: "";
  width: 16px; 
  height: 16px; 
  display: inline-block; 
  position: absolute; 
  right: 0; 
  top: 50%; 
  transform: translateY(-50%);
  background-image: url('https://deniro.seoamoozan.ir/wp-content/uploads/2025/08/clock-hour-1.svg');
  background-repeat: no-repeat; 
  background-size: 16px 16px;
}

.comment-text-pym { 
  line-height: 1.8; 
  color: var( --e-global-color-primary );
  font-size: 14px;
}

.comment-footer-pym { 
  display: flex; 
  align-items: center; 
  justify-content: flex-start; 
  margin-top: 6px; 
}

.comment-actions-pym { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
}

.comment-actions-pym a { 
  text-decoration: none;
  transition: all 0.2s ease;
}

/* دکمه پاسخ */
.comment-actions-pym .comment-reply-link {
  color: #8B8B8B; 
  font-size: 14px; 
  font-weight: 500; 
  line-height: 1.5; 
  background: none; 
  padding: 0; 
  display: inline-flex; 
  align-items: center; 
  gap: 6px;
}

.comment-actions-pym .comment-reply-link:hover {
  color: #1b1615;
}

.comment-actions-pym .comment-reply-link::before {
  content: ""; 
  width: 18px; 
  height: 18px; 
  display: inline-block; 
  background: url('https://deniro.seoamoozan.ir/wp-content/uploads/2025/08/corner-down-left.svg') no-repeat center/18px 18px;
}

/* دکمه لایک */
.vote-like-pym { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  color: #8B8B8B; 
  font-size: 14px; 
  font-weight: 500; 
  line-height: 1.5; 
  background: none; 
  padding: 0;
  cursor: pointer;
}

.vote-like-pym:hover {
  color: #1b1615;
}

.vote-like-pym .icon { 
  display: inline-block; 
  width: 18px; 
  height: 18px; 
  background: url('https://deniro.seoamoozan.ir/wp-content/uploads/2025/08/thumbs-up.svg') no-repeat center/18px 18px; 
}

.vote-like-pym .count { 
  color: #8B8B8B; 
  font-size: 14px; 
  font-weight: 500; 
  line-height: 1.5; 
}

/* نظرات تودرتو (پاسخ‌ها) */
.children {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-right: 40px;
}

.children .comment-item-pym {
  padding-top: 20px;
}

.children .comment-avatar-pym .avatar-img-pym {
  width: 40px;
  height: 40px;
}

/* فرم ارسال نظر */
.reply-title-pym { 
  font-size: 18px; 
  font-weight: 600;
  margin: 32px 0 20px;
  color: #1b1615;
}

.comment-form-comment {
  margin-bottom: 16px;
}

.comment-form-comment textarea { 
  width: 100%; 
  min-height: 150px; 
  padding: 14px 16px; 
  border-radius: 12px; 
  border: 1px solid var( --e-global-color-c1809bc ); 
  background: #f9f9f9;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.comment-form-comment textarea:focus {
  outline: none;
  border-color: var( --e-global-color-primary );
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.comment-form-author input,
.comment-form-email input { 
  width: 100%; 
  padding: 12px 14px; 
  border-radius: 10px; 
  border: 1px solid #e5e7eb; 
  background: #f9f9f9;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
}

.comment-form-author input:focus,
.comment-form-email input:focus {
  outline: none;
  border-color: var( --e-global-color-primary );
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.submit-btn-pym { 
  background: #111827; 
  color: #fff; 
  padding: 12px 24px; 
  border-radius: 10px; 
  border: 0; 
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.submit-btn-pym:hover { 
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* صفحه‌بندی */
.comments-pagination-pym { 
  margin-top: 24px; 
}

/* ردیف کنار هم برای نام و ایمیل */
.pym-fields-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.pym-fields-row .comment-form-author,
.pym-fields-row .comment-form-email {
    flex: 1;
    margin: 0;
}

p.comment-form-cookies-consent {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: #666;
}

p.form-submit {
    margin-top: 24px;
}

span.required-field-message {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .comment-avatar-pym .avatar-img-pym {
        width: 40px;
        height: 40px;
    }
    
    /* محتوای اصلی کامنت - wrapper جدید */
    .comment-content-wrapper-pym { 
      margin-right: 0px;
    }
        .comment-body-pym {
        gap: 12px;
    }
    
    .children {
        margin-right: 30px;
    }
    
    .children .comment-avatar-pym .avatar-img-pym {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 640px) {
    .pym-fields-row {
        flex-direction: column;
        gap: 12px;
    }
        /* محتوای اصلی کامنت - wrapper جدید */
    .comment-content-wrapper-pym { 
      margin-right: 0px;
    }
    
    .comment-body-pym {
        gap: 10px;
    }
    
    .comment-avatar-pym .avatar-img-pym {
        width: 38px;
        height: 38px;
    }
    
    .children {
        margin-right: 20px;
    }
    
    .children .comment-avatar-pym .avatar-img-pym {
        width: 32px;
        height: 32px;
    }
    
    .comment-author-pym {
        font-size: 14px;
    }
    
    .comment-text-pym {
        font-size: 13px;
    }
}
/* PYM logged-in-only comment form and uploaded image - v1.0.2 */
.pym-comment-form-wrap,
.pym-comment-login-required {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
}

.pym-logged-in-as,
.pym-comment-login-required p {
  margin: 0 0 14px;
  color: #5f5f5f;
  font-size: 14px;
  line-height: 1.8;
}

.pym-comment-login-required strong {
  display: block;
  margin-bottom: 6px;
  color: #1b1615;
  font-size: 15px;
  font-weight: 700;
}

.pym-comment-login-required__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 6px 15px;
  border-radius: 12px;
  background: #111827;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.pym-comment-image-upload {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
}

.pym-comment-image-upload__label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: fit-content;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px dashed #d7d7d7;
  border-radius: 12px;
  background: #fafafa;
  color: #1b1615;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.pym-comment-image-upload__label:hover {
  border-color: #1b1615;
  background: #fff;
}

.pym-comment-image-upload__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.pym-comment-image-upload__input {
  max-width: 100%;
  font-size: 13px;
}

.pym-comment-image-upload__hint {
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.7;
}

.pym-comment-image {
  margin-top: 14px;
}

.pym-comment-image__link {
  display: inline-flex;
  max-width: 280px;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
}

.pym-comment-image__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-cookies-consent,
.pym-fields-row {
  display: none !important;
}

@media (max-width: 640px) {
  .pym-comment-form-wrap,
  .pym-comment-login-required {
    padding: 16px;
    border-radius: 16px;
  }

  .pym-comment-image__link {
    max-width: 100%;
  }
}

/* PYM blog comments/product review visual parity - v1.0.3 */
.comments-area-pym {
  direction: rtl;
  color: #111827;
}

.comments-area-pym .comments-header-pym {
  align-items: center;
  margin: 0 0 24px;
  padding: 0 0 16px;
  border-bottom: 0;
}

.comments-area-pym .comments-title-pym {
  flex-direction: row;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.comments-area-pym .comments-title-pym::before {
  content: "";
  width: 22px;
  height: 22px;
  display: inline-flex;
  border-radius: 999px;
  border: 1.7px solid #059669;
  background:
    radial-gradient(circle at 50% 50%, transparent 47%, #059669 49%, transparent 51%) center/10px 10px no-repeat;
}

.comments-area-pym .comments-count-pym {
  border: 0;
  width: auto;
  height: auto;
  color: #6b7280;
  font-size: 13px;
  border-radius: 0;
  line-height: 1.6;
}

.comments-area-pym .add-comment-pym {
  color: #111827 !important;
  font-weight: 700;
  padding: 8px 0;
}

.comment-list-pym {
  gap: 30px;
}

.comment-list-pym .comment-item-pym {
  padding: 24px 26px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.comment-list-pym .comment-body-pym {
  align-items: flex-start;
  gap: 14px;
}

.comment-list-pym .comment-content-wrapper-pym {
  margin-right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.comment-list-pym .comment-header-pym {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 52px;
}

.comment-list-pym .comment-avatar-pym .avatar-img-pym {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 2px solid #f0f0f0;
  box-shadow: none;
}

.comment-list-pym .comment-author-pym {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.comment-list-pym .comment-badge-pym {
  order: 2;
  padding: 4px 10px;
  border-radius: 7px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.comment-list-pym .comment-date-pym {
  order: 3;
  flex: 0 0 100%;
  margin: -16px 66px 0 0;
  padding-right: 0;
  color: #8b8b8b;
  font-size: 12px;
  line-height: 1.8;
}

.comment-list-pym .comment-date-pym::before {
  display: none;
}

.comment-list-pym .comment-text-pym {
  margin-top: 8px;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
}

.comment-list-pym .comment-text-pym p:last-child {
  margin-bottom: 0;
}

.comment-list-pym .comment-footer-pym {
  justify-content: flex-start;
  margin-top: 12px;
}

.comment-list-pym .comment-actions-pym,
.comment-list-pym .comment-actions-pym a,
.comment-list-pym .vote-like-pym {
  color: #8b8b8b;
  font-size: 13px;
  font-weight: 500;
}

.comment-list-pym .comment-actions-pym .comment-reply-link::before,
.comment-list-pym .vote-like-pym .icon {
  filter: grayscale(1);
  opacity: .85;
}

.pym-comment-form-wrap {
  margin-top: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pym-comment-form-wrap .reply-title-pym {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.pym-logged-in-as {
  margin: 0 0 12px;
  padding: 14px 18px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  color: #2b2b2b;
  font-size: 14px;
  line-height: 1.9;
  text-align: right;
}

.pym-comment-form .comment-form-comment {
  margin: 0 0 18px;
}

.pym-comment-form .comment-form-comment textarea {
  min-height: 180px;
  padding: 18px 20px;
  border: 0;
  border-radius: 12px;
  background: #f8f8f8;
  color: #111827;
  font-size: 15px;
  line-height: 1.9;
  box-shadow: none;
  resize: vertical;
}

.pym-comment-form .comment-form-comment textarea:focus {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 0 0 1px #e5e7eb, 0 12px 28px rgba(15, 23, 42, .05);
}

.pym-comment-image-upload {
  position: relative;
  display: block;
  margin: 18px 0 22px;
}

.pym-comment-image-upload__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 78px;
  padding: 16px 20px;
  border: 1px dashed #dcdcdc;
  border-radius: 12px;
  background: #fbfbfb;
  color: #111827;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.pym-comment-image-upload__label:hover,
.pym-comment-image-upload.is-selected .pym-comment-image-upload__label {
  border-color: #0e9f6e;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.pym-comment-image-upload__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f0fdf4;
  color: #0e9f6e;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

.pym-comment-image-upload__title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.pym-comment-file-name {
  margin-right: auto;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  color: #0e9f6e;
  text-align: left;
}

.pym-comment-image-upload__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.pym-comment-image-upload__hint {
  display: none;
}

.pym-comment-form .form-submit {
  margin-top: 14px;
  text-align: left;
}

.pym-comment-form .submit-btn-pym {
  min-width: 126px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
  transform: none;
}

.pym-comment-form .submit-btn-pym:hover {
  background: #0b1220;
  transform: none;
  box-shadow: 0 10px 22px rgba(17, 24, 39, .12);
}

.pym-comment-login-required {
  padding: 18px 20px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.pym-comment-login-required strong {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.pym-comment-login-required p {
  color: #4b5563;
}

.pym-comment-image__link {
  width: auto;
  max-width: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #ececec;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .05);
}

.pym-comment-image__img {
  width: 100%;
  height: auto;
  max-height: 165px;
  object-fit: cover;
  border-radius: 18px;
}

@media (max-width: 768px) {
  .comments-area-pym .comments-header-pym {
    margin-bottom: 18px;
  }

  .comment-list-pym .comment-item-pym {
    padding: 20px;
  }

  .comment-list-pym .comment-avatar-pym .avatar-img-pym {
    width: 46px;
    height: 46px;
  }

  .comment-list-pym .comment-date-pym {
    margin: -12px 60px 0 0;
  }
}

@media (max-width: 640px) {
  .comments-area-pym {
    margin: 0;
  }

  .comments-area-pym .comments-header-pym {
    gap: 10px;
  }

  .comments-area-pym .comments-title-pym {
    font-size: 18px;
  }

  .comment-list-pym {
    gap: 18px;
  }

  .comment-list-pym .comment-item-pym {
    padding: 18px 16px;
    border-radius: 13px;
  }

  .comment-list-pym .comment-body-pym {
    gap: 10px;
  }

  .comment-list-pym .comment-avatar-pym .avatar-img-pym {
    width: 42px;
    height: 42px;
  }

  .comment-list-pym .comment-header-pym {
    min-height: 42px;
  }

  .comment-list-pym .comment-date-pym {
    margin: -8px 52px 0 0;
    font-size: 11px;
  }

  .comment-list-pym .comment-text-pym {
    font-size: 14px;
    line-height: 1.9;
  }

  .pym-comment-form-wrap .reply-title-pym {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .pym-logged-in-as {
    padding: 12px 14px;
    font-size: 13px;
  }

  .pym-comment-form .comment-form-comment textarea {
    min-height: 155px;
    padding: 15px 16px;
  }

  .pym-comment-image-upload__label {
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    min-height: 86px;
    padding: 14px;
  }

  .pym-comment-file-name {
    flex-basis: 100%;
    margin-right: 46px;
    text-align: right;
  }

  .pym-comment-form .form-submit {
    text-align: left;
  }

  .pym-comment-form .submit-btn-pym {
    width: 100%;
  }

  .pym-comment-image__link {
    max-width: 200px;
  }

  .pym-comment-image__img {
    max-height: 150px;
  }
}

/* -------------------------------------------------------------
   PYM Blog Comments v1.0.8 — product-style structure parity
   ------------------------------------------------------------- */
.comments-area-pym .comment-list-pym {
  display: grid;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comments-area-pym .comment-list-pym .comment-item-pym.pym-blog-review-item {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.comments-area-pym .pymnwrew-blog {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.comments-area-pym .pymnwrew-blog .comment-text {
  margin: 5px !important;
  border: 1px solid #F0F0F0 !important;
  border-radius: 8px !important;
  padding: 24px 16px 14px !important;
  background: #fbfbfb !important;
  box-shadow: none !important;
  min-height: 0;
  text-align: right;
  direction: rtl;
}

.comments-area-pym .pymnwrew-blog .comment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0 0 2px;
  direction: ltr;
}

.comments-area-pym .pymnwrew-blog .star-rating-container {
  flex: 1 1 auto;
  min-width: 0;
}

.comments-area-pym .pymnwrew-blog .user-info {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 52px !important;
  direction: rtl;
  text-align: right;
  position: relative !important;
  overflow: visible !important;
}
.comments-area-pym .pymnwrew-blog .user-info .avatar,
.comments-area-pym .pymnwrew-blog .user-info .pym-blog-avatar,
.comments-area-pym .pymnwrew-blog .user-info img.avatar {
  display: block !important;
  position: static !important;
  inset: auto !important;
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  object-fit: cover !important;
  overflow: hidden;
  border: 2px solid #f0f0f0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  float: none !important;
  transform: none !important;
  flex: 0 0 52px;
}

.comments-area-pym .pymnwrew-blog .woocommerce-review__author {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 220px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
  position: static !important;
}
.comments-area-pym .pymnwrew-blog .comment-badge-pym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 7px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  order: 0;
}

.comments-area-pym .pymnwrew-blog .comment-date {
  display: block;
  margin: 2px 62px 18px 0;
  padding: 0;
  color: #8b8b8b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  text-align: right;
}

.comments-area-pym .pymnwrew-blog .description,
.comments-area-pym .pymnwrew-blog .pymnwrew-comment-text {
  margin: 0 0 14px;
  padding: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  line-height: 2;
  text-align: right;
}

.comments-area-pym .pymnwrew-blog .description p,
.comments-area-pym .pymnwrew-blog .pymnwrew-comment-text p {
  margin: 0 0 10px;
}

.comments-area-pym .pymnwrew-blog .description p:last-child,
.comments-area-pym .pymnwrew-blog .pymnwrew-comment-text p:last-child {
  margin-bottom: 0;
}

.comments-area-pym .pymnwrew-blog .comment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 16px;
  color: #8b8b8b;
  font-size: 13px;
  line-height: 1.8;
}

.comments-area-pym .pymnwrew-blog .usefulness {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  color: #8b8b8b;
  font-size: 13px;
  font-weight: 500;
}

.comments-area-pym .pymnwrew-blog .usefulness > span:first-child {
  color: #8b8b8b;
  font-size: 13px;
  font-weight: 500;
}


span.pym-blog-reply-link a {
  font-size: 12px;
  font-weight: 550;
}

.comments-area-pym .pymnwrew-blog .useful-yes,
.comments-area-pym .pymnwrew-blog .useful-no,
.comments-area-pym .pymnwrew-blog .pym-blog-reply-link .comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8b8b8b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  text-decoration: none;
  box-shadow: none;
}

.comments-area-pym .pymnwrew-blog .useful-yes img,
.comments-area-pym .pymnwrew-blog .useful-no img {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
  opacity: .9;
}

.comments-area-pym .pymnwrew-blog .pym-blog-reply-link .comment-reply-link::before {
  content: "↪";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: none;
  font-size: 15px;
  line-height: 1;
}

.comments-area-pym .pymnwrew-blog .pym-comment-image {
  margin-top: 14px;
  margin-bottom: 2px;
}

.comments-area-pym .pymnwrew-blog .pym-comment-image__link,
.pym-comment-image__link {
  display: inline-flex;
  width: auto;
  max-width: 180px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ececec;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .05);
}

.comments-area-pym .pymnwrew-blog .pym-comment-image__img,
.pym-comment-image__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 135px;
  object-fit: cover;
  border-radius: 14px;
}

.pym-comment-form-wrap .pym-logged-in-as,
.pym-logged-in-as {
  background: #fff;
  border: 1px solid #ececec;
  color: #2b2b2b;
}

.pym-logged-in-as strong {
  color: #111827;
  font-weight: 800;
}

/* Guard: keep blog comment header identical to product reviews even if theme/global CSS overrides avatar/user-info. */
.comments-area-pym .comment-list-pym .pymnwrew-blog .comment-text {
  background-color: #fbfbfb !important;
}

.comments-area-pym .comment-list-pym .pymnwrew-blog .comment-header > .user-info {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: auto !important;
  height: auto !important;
  min-height: 52px !important;
  overflow: visible !important;
}

.comments-area-pym .comment-list-pym .pymnwrew-blog .comment-header > .user-info > img.avatar,
.comments-area-pym .comment-list-pym .pymnwrew-blog .comment-header > .user-info > .pym-blog-avatar {
  position: static !important;
  inset: auto !important;
  display: block !important;
  float: none !important;
  flex: 0 0 52px !important;
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  overflow: hidden !important;
}

.comments-area-pym .comment-list-pym .pymnwrew-blog .comment-header > .user-info > .woocommerce-review__author {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  height: auto !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .comments-area-pym .pymnwrew-blog .comment-text {
    padding: 20px 16px 14px !important;
  }

  .comments-area-pym .pymnwrew-blog .user-info .avatar,
  .comments-area-pym .pymnwrew-blog .user-info .pym-blog-avatar,
  .comments-area-pym .pymnwrew-blog .user-info img.avatar {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    flex-basis: 46px;
  }

  .comments-area-pym .pymnwrew-blog .comment-date {
    margin-right: 56px;
  }
}

@media (max-width: 640px) {
  .comments-area-pym .pymnwrew-blog .comment-header {
    gap: 10px;
  }

  .comments-area-pym .pymnwrew-blog .user-info {
    gap: 8px;
  }

  .comments-area-pym .pymnwrew-blog .user-info .avatar,
  .comments-area-pym .pymnwrew-blog .user-info .pym-blog-avatar,
  .comments-area-pym .pymnwrew-blog .user-info img.avatar {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    flex-basis: 42px;
  }

  .comments-area-pym .pymnwrew-blog .woocommerce-review__author {
    max-width: 145px;
    font-size: 14px;
  }

  .comments-area-pym .pymnwrew-blog .comment-date {
    margin: 0 50px 14px 0;
    font-size: 11px;
  }

  .comments-area-pym .pymnwrew-blog .description,
  .comments-area-pym .pymnwrew-blog .pymnwrew-comment-text {
    font-size: 14px;
    line-height: 1.9;
  }

  .comments-area-pym .pymnwrew-blog .usefulness {
    gap: 7px;
    font-size: 12px;
  }

  .comments-area-pym .pymnwrew-blog .pym-comment-image__link,
  .pym-comment-image__link {
    max-width: 160px;
  }

  .comments-area-pym .pymnwrew-blog .pym-comment-image__img,
  .pym-comment-image__img {
    max-height: 120px;
  }
}

/* PYM product review login button polish v1.0.8 */
.pym-review-login-required .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 12px 15px !important;
    border-radius: 12px !important;
    background: #111827 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.pym-review-login-required .button:hover {
    background: #1f2937 !important;
    color: #fff !important;
}

/* Make the "افزودن نظر" action clearly visible — v1.0.9 */
.comments-area-pym .add-comment-pym {
    border: 1px solid #B8B8C0 !important;
    border-radius: 9px !important;
    padding: 7px 13px !important;
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.035);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.comments-area-pym .add-comment-pym:hover,
.comments-area-pym .add-comment-pym:focus-visible {
    border-color: #9999A3 !important;
    background: #F7F7F8 !important;
    box-shadow: 0 3px 8px rgba(0,0,0,.06);
}

.woocommerce-Reviews .form-submit .submit {
    border: 1px solid #B8B8C0 !important;
}
