
#comments {
  direction: rtl !important;
  text-align: right !important;
  font-family: inherit !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}


.comment {
  background-color: #ffffff !important;
  padding: 1.25rem !important;
  margin-bottom: 1.2rem !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #f0f0f0 !important;
  transition: all 0.3s ease !important;
  list-style: none !important;
}

.comment:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}


.comment.depth-1 {
  background-color: #ffffff !important;
  border-right: 4px solid #4F46E5 !important;
}


#comments .comment:not(.depth-1) {
  background-color: #f8fafc !important; 
  border-right: 3px solid #cbd5e1 !important;
  padding: 1rem !important;
  margin-bottom: 1rem !important;
  border-radius: 10px !important;
  margin-right: 0 !important;
  border-top: none !important;
  border-left: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}


.comment-author {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  color: #1e293b !important;
}

.comment-author .avatar {
  border-radius: 50% !important;
  width: 48px !important;
  height: 48px !important;
  object-fit: cover !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}


.comment-metadata {
  margin-top: 4px !important;
  margin-right: 60px !important; 
}

.comment-metadata time {
  font-size: 0.75rem !important;
  color: #64748b !important;
}

.comment-content {
  margin-top: 1rem !important;
  font-size: 0.95rem !important;
  line-height: 1.8 !important;
  color: #334155 !important;
}


.reply a.comment-reply-link {
  display: inline-block !important;
  background-color: #e0e7ff !important;
  color: #4F46E5 !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-top: 0.8rem !important;
  transition: all 0.3s ease !important;
}

.reply a.comment-reply-link:hover {
  background-color: #4F46E5 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}


.children {
  position: relative !important;
  margin-right: 2rem !important;
  padding-right: 0 !important;
  list-style: none !important;
}

.children::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: -1rem !important;
  bottom: 0 !important;
  width: 2px !important;
  background-color: #e2e8f0 !important;
  border-radius: 2px !important;
}



.write-a-comment {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  padding: 2rem !important;
  border-radius: 12px !important;
  direction: rtl !important;
  text-align: right !important;
  font-family: inherit !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
  margin-top: 2rem !important;
}

.write-a-comment h3, .comment-reply-title {
  font-size: 1.3rem !important;
  margin-bottom: 1.5rem !important;
  color: #0f172a !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}


.write-a-comment input[type="text"],
.write-a-comment input[type="email"],
.write-a-comment textarea {
  width: 100% !important;
  padding: 1rem !important;
  margin-bottom: 1.2rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  background-color: #f8fafc !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  transition: all 0.3s ease !important;
}

.write-a-comment input[type="text"]:focus,
.write-a-comment input[type="email"]:focus,
.write-a-comment textarea:focus {
  border-color: #4F46E5 !important;
  background-color: #ffffff !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

.write-a-comment textarea {
  min-height: 140px !important;
  resize: vertical !important;
}


.write-a-comment input[type="submit"],
.write-a-comment button[type="submit"] {
  background-color: #4F46E5 !important;
  color: #fff !important;
  padding: 0.8rem 2rem !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2) !important;
}

.write-a-comment input[type="submit"]:hover,
.write-a-comment button[type="submit"]:hover {
  background-color: #4338ca !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3) !important;
}


.write-a-comment .comment-form-email,
.write-a-comment .comment-form-url,
p.comment-notes,
p.comment-form-cookies-consent {
  display: none !important;
}

#cancel-comment-reply-link {

  background-color: #fef2f2 !important;
  color: #ef4444 !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-right: auto !important;
  transition: all 0.3s ease !important;
}

#cancel-comment-reply-link:hover {
  background-color: #ef4444 !important;
  color: #ffffff !important;
}


@media (max-width: 600px) {
  .children {
    margin-right: 1rem !important; 
  }
  
  .children::before {
    right: -0.5rem !important;
  }

  .comment {
    padding: 1rem !important;
  }

  .comment-metadata {
    margin-right: 0 !important;
    margin-top: 8px !important;
  }

  .write-a-comment {
    padding: 1.2rem !important;
  }

  .write-a-comment input[type="submit"],
  .write-a-comment button[type="submit"] {
    width: 100% !important;
  }
}

.ajax-comment-msg {
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-align: right !important;
    direction: rtl !important;
    animation: fadeInDown 0.3s ease-out !important;
}


.ajax-comment-msg.success {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #10b981 !important;
}

.ajax-comment-msg.error {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #ef4444 !important;
}


@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.form-submit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

#comment-message-box {
    margin: 0 !important; 
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#comment-message-box.comment-success-msg,
#comment-message-box.comment-error-msg {
    opacity: 1;
    animation: fadeInRight 0.4s ease forwards; 
}

.comment-success-msg {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.comment-error-msg {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
