/* v4.4.51 — Chat-style comments and Q/A blocks across posts and products. */
:root{
  --psc-chat-user-bg:#f8fbff;
  --psc-chat-user-border:rgba(15,23,42,.09);
  --psc-chat-admin-bg:#eaf4ff;
  --psc-chat-admin-border:rgba(37,99,235,.22);
  --psc-chat-admin-ink:#0b4ea2;
  --psc-chat-user-ink:#111827;
  --psc-chat-muted:#64748b;
  --psc-chat-shadow:0 14px 36px rgba(15,23,42,.07);
}
.psc-article-native-comments :is(.comment-list,.commentlist),
.psc-fg-detail-card--reviews :is(.comment-list,.commentlist),
.psc-product-card--reviews :is(.comment-list,.commentlist),
.woocommerce #reviews #comments ol.commentlist{
  display:grid!important;
  gap:12px!important;
  padding:0!important;
  margin:0!important;
  list-style:none!important;
}
:is(.comment-list,.commentlist) li.psc-chat-comment,
.woocommerce #reviews #comments ol.commentlist li.psc-chat-comment{
  position:relative!important;
  width:min(88%,760px)!important;
  max-width:100%!important;
  margin-top:0!important;
  margin-bottom:10px!important;
  padding:14px!important;
  list-style:none!important;
  border-radius:22px!important;
  border:1px solid var(--psc-chat-user-border)!important;
  background:var(--psc-chat-user-bg)!important;
  color:var(--psc-chat-user-ink)!important;
  box-shadow:var(--psc-chat-shadow)!important;
  overflow:visible!important;
}
:is(.comment-list,.commentlist) li.psc-chat-comment--customer,
:is(.comment-list,.commentlist) li.psc-chat-comment--question:not(.psc-chat-comment--admin),
.woocommerce #reviews #comments ol.commentlist li.psc-chat-comment--customer{
  margin-left:0!important;
  margin-right:auto!important;
  border-bottom-left-radius:8px!important;
}
:is(.comment-list,.commentlist) li.psc-chat-comment--admin,
:is(.comment-list,.commentlist) li.bypostauthor,
:is(.comment-list,.commentlist) .children li.psc-chat-comment,
.woocommerce #reviews #comments ol.commentlist li.psc-chat-comment--admin,
.woocommerce #reviews #comments ol.commentlist li.bypostauthor,
.woocommerce #reviews #comments ol.commentlist .children li.psc-chat-comment{
  margin-left:auto!important;
  margin-right:0!important;
  border-color:var(--psc-chat-admin-border)!important;
  background:linear-gradient(180deg,#f4f9ff,var(--psc-chat-admin-bg))!important;
  color:#10243f!important;
  border-bottom-right-radius:8px!important;
}
:is(.comment-list,.commentlist) li.psc-chat-comment--customer::before,
:is(.comment-list,.commentlist) li.psc-chat-comment--question:not(.psc-chat-comment--admin)::before{
  content:"پرسش پذیرنده"!important;
  display:inline-flex!important;
  align-items:center!important;
  width:max-content!important;
  max-width:100%!important;
  margin-bottom:8px!important;
  padding:4px 9px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#475569!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1.4!important;
}
:is(.comment-list,.commentlist) li.psc-chat-comment--admin::before,
:is(.comment-list,.commentlist) li.bypostauthor::before,
:is(.comment-list,.commentlist) .children li.psc-chat-comment::before{
  content:"پاسخ پشتیبانی"!important;
  display:inline-flex!important;
  align-items:center!important;
  width:max-content!important;
  max-width:100%!important;
  margin-bottom:8px!important;
  padding:4px 9px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--psc-chat-admin-ink)!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1.4!important;
}
:is(.comment-list,.commentlist) .children{
  display:grid!important;
  gap:10px!important;
  width:100%!important;
  margin:12px 0 0!important;
  padding:0!important;
  list-style:none!important;
}
.woocommerce #reviews #comments ol.commentlist li .comment_container,
:is(.comment-list,.commentlist) li.psc-chat-comment article,
:is(.comment-list,.commentlist) li.psc-chat-comment .comment-body{
  display:grid!important;
  gap:8px!important;
}
.woocommerce #reviews #comments ol.commentlist li img.avatar,
:is(.comment-list,.commentlist) li.psc-chat-comment .avatar{
  display:none!important;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text,
:is(.comment-list,.commentlist) li.psc-chat-comment .comment-content,
:is(.comment-list,.commentlist) li.psc-chat-comment .comment-body{
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:inherit!important;
  line-height:1.9!important;
}
:is(.comment-list,.commentlist) li.psc-chat-comment :is(.comment-author,.meta,.comment-meta,.woocommerce-review__author){
  color:#334155!important;
  font-size:12px!important;
  font-weight:900!important;
}
:is(.comment-list,.commentlist) li.psc-chat-comment--admin :is(.comment-author,.meta,.comment-meta,.woocommerce-review__author),
:is(.comment-list,.commentlist) li.bypostauthor :is(.comment-author,.meta,.comment-meta,.woocommerce-review__author){
  color:var(--psc-chat-admin-ink)!important;
}
:is(.comment-list,.commentlist) li.psc-chat-comment p,
.woocommerce #reviews #comments ol.commentlist li.psc-chat-comment p{
  margin:0 0 6px!important;
  color:inherit!important;
  line-height:1.95!important;
}
:is(.comment-list,.commentlist) li.psc-chat-comment .reply a,
:is(.comment-list,.commentlist) li.psc-chat-comment .comment-reply-link{
  display:inline-flex!important;
  min-height:30px!important;
  align-items:center!important;
  justify-content:center!important;
  padding:5px 11px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#2563eb!important;
  border:1px solid rgba(37,99,235,.15)!important;
  text-decoration:none!important;
  font-size:12px!important;
  font-weight:900!important;
}
.comment-respond,
#review_form_wrapper,
.woocommerce #review_form_wrapper{
  border-radius:22px!important;
  border:1px solid rgba(15,23,42,.08)!important;
  background:#fff!important;
  box-shadow:0 12px 28px rgba(15,23,42,.06)!important;
}
.comment-respond textarea,
.comment-respond input:not([type="submit"]),
#review_form textarea,
#review_form input:not([type="submit"]),
#review_form select{
  border-radius:16px!important;
  border:1px solid rgba(15,23,42,.10)!important;
  background:#f8fbff!important;
  box-shadow:none!important;
}
.comment-respond textarea:focus,
.comment-respond input:not([type="submit"]):focus,
#review_form textarea:focus,
#review_form input:not([type="submit"]):focus{
  border-color:rgba(37,99,235,.32)!important;
  background:#fff!important;
}
.psc-comments-chat-list{display:grid!important;gap:13px!important}.psc-comment-thread-card{display:grid!important;gap:9px!important;padding:13px!important;border:1px solid rgba(15,23,42,.08)!important;border-radius:22px!important;background:#fff!important;box-shadow:0 12px 30px rgba(15,23,42,.06)!important;text-decoration:none!important;color:inherit!important}.psc-comment-thread-card__post{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-bottom:2px!important;color:#2563eb!important;font-size:12px!important;font-weight:950!important;text-decoration:none!important}.psc-chat-bubble{display:grid!important;gap:5px!important;width:min(88%,100%)!important;padding:11px 12px!important;border-radius:18px!important;border:1px solid rgba(15,23,42,.08)!important;line-height:1.85!important}.psc-chat-bubble--question{margin-left:0!important;margin-right:auto!important;background:#f8fbff!important;border-bottom-left-radius:7px!important}.psc-chat-bubble--answer{margin-left:auto!important;margin-right:0!important;background:#eaf4ff!important;border-color:rgba(37,99,235,.2)!important;border-bottom-right-radius:7px!important}.psc-chat-bubble__label{color:#64748b!important;font-size:11px!important;font-weight:950!important}.psc-chat-bubble--answer .psc-chat-bubble__label{color:#0b4ea2!important}.psc-chat-bubble strong{font-size:12px!important;color:#111827!important}.psc-chat-bubble p{margin:0!important;color:#334155!important;font-size:13px!important;line-height:1.9!important}.psc-comment-thread-card__empty-answer{margin:0!important;padding:9px 11px!important;border-radius:16px!important;background:#fff7ed!important;color:#9a3412!important;font-size:12px!important;font-weight:850!important;line-height:1.8!important}
@media (max-width:640px){
  :is(.comment-list,.commentlist) li.psc-chat-comment,
  .woocommerce #reviews #comments ol.commentlist li.psc-chat-comment,
  .psc-chat-bubble{width:94%!important}
  .psc-comment-thread-card{padding:11px!important;border-radius:19px!important}
}

/* v4.4.53 — Comment form fields: name, mobile, rating, comment. */
.comment-respond,
#review_form_wrapper,
.woocommerce #review_form_wrapper{
  overflow:hidden!important;
}
.comment-respond form,
#review_form form,
.woocommerce #review_form form{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  padding:14px!important;
}
.comment-respond .psc-comment-form-title,
.comment-respond .comment-reply-title,
#review_form .comment-reply-title{
  margin:0!important;
  padding:16px 16px 0!important;
  color:#111827!important;
  font-size:17px!important;
  line-height:1.7!important;
  font-weight:950!important;
}
.psc-comment-form-note,
.comment-notes{
  grid-column:1/-1!important;
  margin:0!important;
  padding:10px 12px!important;
  border:1px solid rgba(37,99,235,.12)!important;
  border-radius:16px!important;
  background:#f8fbff!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.9!important;
  font-weight:800!important;
}
.comment-form-author,
.comment-form-psc-mobile,
.comment-form-rating,
.comment-form-comment,
.comment-form-email,
.comment-form-cookies-consent,
.form-submit,
.comment-respond .logged-in-as{
  margin:0!important;
}
.comment-form-comment,
.form-submit,
.comment-form-cookies-consent,
.comment-respond .logged-in-as{
  grid-column:1/-1!important;
}
.psc-comment-form-row--hidden,
.comment-form-url{
  display:none!important;
}
.comment-respond label,
#review_form label{
  display:block!important;
  margin:0 0 7px!important;
  color:#0f172a!important;
  font-size:12px!important;
  line-height:1.7!important;
  font-weight:950!important;
}
.comment-respond input:not([type="submit"]),
.comment-respond textarea,
.comment-respond select,
#review_form input:not([type="submit"]),
#review_form textarea,
#review_form select{
  width:100%!important;
  min-height:46px!important;
  padding:11px 13px!important;
  border-radius:16px!important;
  border:1px solid rgba(15,23,42,.10)!important;
  background:#f8fbff!important;
  color:#111827!important;
  font-size:14px!important;
  line-height:1.8!important;
  font-weight:800!important;
  box-shadow:none!important;
  outline:0!important;
}
.comment-respond textarea,
#review_form textarea{
  min-height:124px!important;
  resize:vertical!important;
}
.comment-respond select,
#review_form select{
  appearance:auto!important;
  cursor:pointer!important;
}
.comment-respond input:not([type="submit"]):focus,
.comment-respond textarea:focus,
.comment-respond select:focus,
#review_form input:not([type="submit"]):focus,
#review_form textarea:focus,
#review_form select:focus{
  border-color:rgba(37,99,235,.38)!important;
  background:#fff!important;
  box-shadow:0 0 0 4px rgba(37,99,235,.08)!important;
}
.comment-respond .required,
#review_form .required{
  color:#e11d48!important;
  font-weight:950!important;
}
.comment-respond .form-submit input[type="submit"],
#review_form .form-submit input[type="submit"]{
  width:100%!important;
  min-height:48px!important;
  border:0!important;
  border-radius:17px!important;
  background:linear-gradient(135deg,#2563eb,#0ea5e9)!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:950!important;
  cursor:pointer!important;
  box-shadow:0 12px 26px rgba(37,99,235,.22)!important;
}
.comment-respond .form-submit input[type="submit"]:hover,
#review_form .form-submit input[type="submit"]:hover{
  filter:brightness(1.03)!important;
  transform:translateY(-1px)!important;
}
@media (max-width:640px){
  .comment-respond form,
  #review_form form,
  .woocommerce #review_form form{
    grid-template-columns:1fr!important;
    padding:12px!important;
  }
  .comment-respond .psc-comment-form-title,
  .comment-respond .comment-reply-title,
  #review_form .comment-reply-title{
    padding:14px 14px 0!important;
    font-size:16px!important;
  }
}
