/* نظرات نوشته‌ها – استایل سفارشی (Pym) */

.comments-area-pym {
  margin: 10px 10px 20px;
}

.comments-header-pym {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.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: 28px; }
.comment-item-pym { margin: 0; padding-bottom: 24px; border-bottom: 1px solid #efefef; }

.comment-body-pym { display: grid; grid-template-columns: 1fr; gap: 0; }

.comment-main-pym { display: grid; gap: 10px; }
.comment-header-pym { display: flex; align-items: center; gap: 8px; }
.comment-author-pym { font-weight: 700; }
.comment-badge-pym {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  background: var( --e-global-color-primary );
  padding: 8px 12px;
  border-radius: 8px;
}
.comment-date-pym { color: #989898; font-size: 12px; position: relative; padding-right: 22px; }
.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: 2.2; color: var( --e-global-color-primary ); }

.comment-footer-pym { display: flex; align-items: center; justify-content: flex-start; margin-top: 6px; }
.comment-actions-pym { display: flex; align-items: center; gap: 12px; }
.comment-actions-pym a { text-decoration: none; }

/* دکمه پاسخ */
.comment-actions-pym .comment-reply-link {
  color: #8B8B8B; font-size: 14px; font-weight: 500; line-height: 32px; background: none; padding: 0; display: inline-flex; align-items: center; gap: 8px;
}
.comment-actions-pym .comment-reply-link::before {
  content: ""; width: 20px; height: 20px; display: inline-block; background: url('https://deniro.seoamoozan.ir/wp-content/uploads/2025/08/corner-down-left.svg') no-repeat center/20px 20px;
}

.vote-like-pym { display: inline-flex; align-items: center; gap: 6px; color: #8B8B8B; font-size: 14px; font-weight: 500; line-height: 32px; background: none; padding: 0; }
.vote-like-pym .icon { display: inline-block; width: 20px; height: 20px; background: url('https://deniro.seoamoozan.ir/wp-content/uploads/2025/08/thumbs-up.svg') no-repeat center/20px 20px; }
.vote-like-pym .count { color: #8B8B8B; font-size: 14px; font-weight: 500; line-height: 32px; }
.comment-votes-pym a .icon { font-size: 14px; }
.comment-votes-pym a .count { font-weight: 700; color: #374151; }

/* فرم ارسال نظر */
.reply-title-pym { font-size: 18px; margin: 28px 0 14px; }
.comment-form-comment textarea { width: 100%; min-height: 150px; padding: 14px 16px; border-radius: 16px; border: 1px solid var( --e-global-color-c1809bc ); background: #f4f4f4; }
.comment-form-author input,
.comment-form-email input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fafafa; }
.submit-btn-pym { background: #111827; color: #fff; padding: 10px 16px; border-radius: 12px; border: 0; cursor: pointer; }
.submit-btn-pym:hover { background: #000; }

/* صفحه‌بندی */
.comments-pagination-pym { margin-top: 16px; }

/* جداکننده زیر هدر */
.comments-header-pym { border-bottom: 1px solid var( --e-global-color-c1809bc ); padding-bottom: 12px; }

/* ردیف کنار هم برای نام و ایمیل */
.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: 5px;
}

p.form-submit {
    margin-top: 30px;
}

span.required-field-message {
    display: none;
}

@media (max-width: 640px) {
    .pym-fields-row {
        flex-direction: column;
        gap: 12px;
    }
}