.custom-comments-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    direction: rtl;
    font-family: 'YekanBakhFaNum'
}

/* ---------------------------------------------
   COMMENT LIST + NESTED COMMENTS
--------------------------------------------- */
.comment-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    width:110%;
}

/* No line for top-level */
.comment-item[style*="margin-right: 0"]::before {
    display: none;
}

.comment-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.comment-author-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar-wrapper {
    flex-shrink: 0;
}

.comment-avatar {
    width: 60px;
    height: 40px;
    border-radius: 50% !important;
    object-fit: cover;
}

.comment-author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-author-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.comment-datetime {
    font-size: 13px;
    color: #6b7280;
}

.comment-reply-status {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}

/* Indent shading (optional but nice) */
.comment-item[style*="margin-right: 100px"] {
    background: #fafafa;
}
.comment-item[style*="margin-right: 200px"] {
    background: #f5f5f5;
}

.comment-content-text {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 12px;
}

.comment-content-text p {
    margin: 0 0 10px 0;
}

.comment-image-wrapper {
    margin-top: 12px;
}

.comment-uploaded-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.no-comments-yet {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-size: 16px;
}

/* ---------------------------------------------
   FORM STYLES
--------------------------------------------- */
.comment-form-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

.custom-comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-input-field,
.form-textarea-field {
    width: 100%;
    padding: 14px 16px;
    background: #E1E6EB;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input-field:focus,
.form-textarea-field:focus {
    outline: none;
    background: #d1d8e0;
}

.form-textarea-field {
    min-height: 120px;
    resize: vertical;
}

.form-actions-row {
    display: flex;
    justify-content: flex-start;
}

.submit-comment-btn {
    padding: 12px 32px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.submit-comment-btn:hover {
    background: #1d4ed8;
}

.submit-comment-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.comment-error-message {
    padding: 12px 16px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

.comment-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.reply-comment-btn {
    padding: 6px 16px;
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.reply-comment-btn:hover {
    background: #2563eb;
    color: white;
}

.comment-form-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1f2937;
}

.reply-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    margin-bottom: 16px;
}

.reply-to-text {
    font-size: 14px;
    color: #1e40af;
}

.cancel-reply-btn {
    padding: 4px 12px;
    background: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-reply-btn:hover {
    background: #dc2626;
    color: white;
}

.elementor-377 .elementor-element.elementor-element-24caa99{
    display:none;
}

/* Responsive */
@media (max-width: 768px) {
    .form-fields-row {
        grid-template-columns: 1fr;
    }

    .submit-comment-btn {
        width: 100%;
    }
    
    .comment-item {
        padding: 16px;
    }
    
    .comment-avatar {
        width: 35px;
        height: 35px;
    }
    
    .comment-author-name {
        font-size: 14px;
    }
    
    .comment-datetime {
        font-size: 12px;
    }
}