/* GC Blog — ظاهر دیدگاه‌ها (فقط روی صفحه‌هایی که بخش دیدگاه دارند) */
#comments, #respond {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  max-width: 780px;
  margin: 40px auto 0;
  padding: 0 16px;
}

/* ── عنوان بخش کامنت‌ها ── */
#comments .comments-title,
#respond .comment-reply-title {
  position: relative;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0B6E6E;
  margin-bottom: 20px;
  padding-bottom: 14px;
}
#comments .comments-title::after,
#respond .comment-reply-title::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 44px; height: 4px;
  background: linear-gradient(90deg, #0B6E6E, #0E9A9A);
  border-radius: 2px;
}

/* ── لیست کامنت‌ها ── */
#comments .comment-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
#comments .comment-list .comment,
#comments .comment-list li {
  background: #fff;
  border: 1.5px solid #D3EAEA;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  list-style: none;
}
#comments .comment-list ol.children {
  list-style: none;
  margin: 12px 0 0;
  padding-right: 28px;
  border-right: 2px solid #E0F5F5;
}

#comments .comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
#comments .comment-author .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid #E0F5F5;
}
#comments .comment-author .fn {
  font-style: normal;
  font-weight: 700;
  font-size: .93rem;
  color: #0D2A2A;
}
#comments .comment-metadata {
  font-size: .76rem;
  margin-bottom: 10px;
}
#comments .comment-metadata a {
  color: #8AA5A5;
  text-decoration: none;
}
#comments .comment-content p {
  font-size: .9rem;
  color: #2A5050;
  line-height: 1.9;
  margin-bottom: 8px;
}
#comments .comment-content p:last-child { margin-bottom: 0; }

#comments .reply a,
#comments .comment-reply-link {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: #0B6E6E;
  background: #EAF6F6;
  border-radius: 50px;
  padding: 5px 16px;
  text-decoration: none;
  margin-top: 10px;
  transition: background .2s;
}
#comments .reply a:hover,
#comments .comment-reply-link:hover {
  background: #D5EEEE;
}

/* کامنت‌های در انتظار تایید */
#comments .comment-awaiting-moderation {
  display: inline-block;
  font-size: .78rem;
  color: #b8860b;
  background: #FFF9EC;
  border: 1px solid #E8CE8E;
  border-radius: 8px;
  padding: 4px 12px;
  margin-top: 8px;
}

/* پیام "بدون دیدگاه" */
#comments .no-comments {
  text-align: center;
  color: #8AA5A5;
  font-size: .9rem;
  padding: 20px 0;
}

/* ── فرم ارسال دیدگاه ── */
#respond {
  background: #F4FBFB;
  border: 1.5px solid #D3EAEA;
  border-radius: 16px;
  padding: 26px 22px;
}
#respond .comment-notes,
#respond .logged-in-as {
  font-size: .84rem;
  color: #6b8484;
  margin-bottom: 16px;
}
#respond .logged-in-as a { color: #0B6E6E; }

#respond .comment-form-comment,
#respond .comment-form-author,
#respond .comment-form-email,
#respond .comment-form-url {
  margin-bottom: 16px;
}
#respond label {
  display: block;
  font-size: .87rem;
  font-weight: 600;
  color: #0B6E6E;
  margin-bottom: 6px;
}
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #DCE9E9;
  border-radius: 10px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: .93rem;
  color: #0D2A2A;
  background: #fff;
  direction: rtl;
  transition: border-color .2s;
}
#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond input[type="url"]:focus,
#respond textarea:focus {
  outline: none;
  border-color: #0E9A9A;
  box-shadow: 0 0 0 3px rgba(14,154,154,.12);
}
#respond textarea { min-height: 130px; resize: vertical; }

#respond .form-submit {
  margin-top: 4px;
  margin-bottom: 0;
}
#respond input#submit,
#respond .submit {
  background: linear-gradient(135deg, #0E9A9A, #0B6E6E);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  box-shadow: 0 8px 20px rgba(11,110,110,.25);
  font-size: .95rem;
  font-weight: 700;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  cursor: pointer;
  transition: background .2s;
}
#respond input#submit:hover,
#respond .submit:hover {
  background: #095c5c;
}

/* چک‌باکس ذخیره اطلاعات */
#respond .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: .82rem;
  color: #6b8484;
}
#respond .comment-form-cookies-consent input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #0B6E6E;
}

@media (max-width: 560px) {
  #comments .comment-list ol.children { padding-right: 14px; }
  #respond { padding: 20px 16px; }
}
/* ===== 2.0.4: رفع بیرون‌زدگی فرم روی گوشی + بازطراحی هماهنگ با برند ===== */
.gcb-comments{overflow-x:clip}
#comments,#respond,#comments *,#respond *{box-sizing:border-box}
#comments,#respond{width:100%;max-width:780px}
#comments .comment-content{overflow-wrap:anywhere;word-break:break-word}
#comments .comment-content img,#comments .comment-content iframe{max-width:100%;height:auto}
#comments .comment-list .comment,#comments .comment-list li{box-shadow:0 8px 22px rgba(7,63,63,.05)}
#comments .comment-list .bypostauthor>article,#comments .comment-list .bypostauthor>.comment-body{border-right:4px solid #C9A24B;padding-right:12px}
#respond{background:linear-gradient(180deg,#F4FBFB,#fff);box-shadow:0 10px 30px rgba(7,63,63,.06)}
#respond .comment-reply-title{color:#073F3F}
#respond .comment-reply-title small a{font-size:.8rem;color:#C9A24B;margin-right:8px}
/* Astra ستون‌های شناور ۳۳٪ می‌سازد؛ با grid جایگزین می‌شود تا هیچ بخشی بیرون نزند */
#respond .ast-row{margin-left:0!important;margin-right:0!important;width:100%}
#respond .ast-comment-formwrap{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 6px!important}
#respond .ast-comment-formwrap>p,#respond .comment-textarea .ast-grid-common-col{float:none!important;width:auto!important;max-width:100%!important;padding:0!important;margin:0!important}
#respond .ast-comment-formwrap .comment-form-cookies-consent,#respond .comment-form-cookies-consent{grid-column:1/-1;width:100%!important;float:none!important;clear:both;display:flex;align-items:flex-start;gap:8px;margin:6px 0 14px!important}
#respond .comment-form-cookies-consent input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:4px 0 0}
#respond .comment-form-cookies-consent label{flex:1 1 auto;min-width:0;margin:0;font-weight:500;color:#5A8080;font-size:.82rem;line-height:1.8}
#respond fieldset{border:0;padding:0;margin:0 0 12px;min-width:0}
#respond input[type=text],#respond input[type=email],#respond textarea{max-width:100%;font-size:16px}
#respond textarea{min-height:140px}
#respond .form-submit input#submit,#respond .form-submit .submit{width:auto}
@media (max-width:560px){
#respond .ast-comment-formwrap{grid-template-columns:1fr}
#respond .form-submit input#submit,#respond .form-submit .submit{width:100%}
}
